modal 1.1.4.dev6__py3-none-any.whl → 1.1.4.dev7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- modal/_clustered_functions.py +3 -0
- modal/_clustered_functions.pyi +3 -2
- modal/client.pyi +2 -2
- {modal-1.1.4.dev6.dist-info → modal-1.1.4.dev7.dist-info}/METADATA +1 -1
- {modal-1.1.4.dev6.dist-info → modal-1.1.4.dev7.dist-info}/RECORD +10 -10
- modal_version/__init__.py +1 -1
- {modal-1.1.4.dev6.dist-info → modal-1.1.4.dev7.dist-info}/WHEEL +0 -0
- {modal-1.1.4.dev6.dist-info → modal-1.1.4.dev7.dist-info}/entry_points.txt +0 -0
- {modal-1.1.4.dev6.dist-info → modal-1.1.4.dev7.dist-info}/licenses/LICENSE +0 -0
- {modal-1.1.4.dev6.dist-info → modal-1.1.4.dev7.dist-info}/top_level.txt +0 -0
modal/_clustered_functions.py
CHANGED
@@ -14,6 +14,7 @@ from modal_proto import api_pb2
|
|
14
14
|
@dataclass
|
15
15
|
class ClusterInfo:
|
16
16
|
rank: int
|
17
|
+
cluster_id: str
|
17
18
|
container_ips: list[str]
|
18
19
|
container_ipv4_ips: list[str]
|
19
20
|
|
@@ -69,12 +70,14 @@ async def _initialize_clustered_function(client: _Client, task_id: str, world_si
|
|
69
70
|
)
|
70
71
|
cluster_info = ClusterInfo(
|
71
72
|
rank=resp.cluster_rank,
|
73
|
+
cluster_id=resp.cluster_id,
|
72
74
|
container_ips=resp.container_ips,
|
73
75
|
container_ipv4_ips=resp.container_ipv4_ips,
|
74
76
|
)
|
75
77
|
else:
|
76
78
|
cluster_info = ClusterInfo(
|
77
79
|
rank=0,
|
80
|
+
cluster_id="", # No cluster ID for single-node # TODO(irfansharif): Is this right?
|
78
81
|
container_ips=[container_ip],
|
79
82
|
container_ipv4_ips=[], # No IPv4 IPs for single-node
|
80
83
|
)
|
modal/_clustered_functions.pyi
CHANGED
@@ -3,13 +3,14 @@ import typing
|
|
3
3
|
import typing_extensions
|
4
4
|
|
5
5
|
class ClusterInfo:
|
6
|
-
"""ClusterInfo(rank: int, container_ips: list[str], container_ipv4_ips: list[str])"""
|
6
|
+
"""ClusterInfo(rank: int, cluster_id: str, container_ips: list[str], container_ipv4_ips: list[str])"""
|
7
7
|
|
8
8
|
rank: int
|
9
|
+
cluster_id: str
|
9
10
|
container_ips: list[str]
|
10
11
|
container_ipv4_ips: list[str]
|
11
12
|
|
12
|
-
def __init__(self, rank: int, container_ips: list[str], container_ipv4_ips: list[str]) -> None:
|
13
|
+
def __init__(self, rank: int, cluster_id: str, container_ips: list[str], container_ipv4_ips: list[str]) -> None:
|
13
14
|
"""Initialize self. See help(type(self)) for accurate signature."""
|
14
15
|
...
|
15
16
|
|
modal/client.pyi
CHANGED
@@ -33,7 +33,7 @@ class _Client:
|
|
33
33
|
server_url: str,
|
34
34
|
client_type: int,
|
35
35
|
credentials: typing.Optional[tuple[str, str]],
|
36
|
-
version: str = "1.1.4.
|
36
|
+
version: str = "1.1.4.dev7",
|
37
37
|
):
|
38
38
|
"""mdmd:hidden
|
39
39
|
The Modal client object is not intended to be instantiated directly by users.
|
@@ -164,7 +164,7 @@ class Client:
|
|
164
164
|
server_url: str,
|
165
165
|
client_type: int,
|
166
166
|
credentials: typing.Optional[tuple[str, str]],
|
167
|
-
version: str = "1.1.4.
|
167
|
+
version: str = "1.1.4.dev7",
|
168
168
|
):
|
169
169
|
"""mdmd:hidden
|
170
170
|
The Modal client object is not intended to be instantiated directly by users.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
modal/__init__.py,sha256=WMaRW-2IJRGA9ioNAaBhJYuyLvu-GS01L8wQD90fKBs,2682
|
2
2
|
modal/__main__.py,sha256=45H-GtwzaDfN-1nP4_HYvzN3s7AG_HXR4-ynrsjO_OI,2803
|
3
|
-
modal/_clustered_functions.py,sha256=
|
4
|
-
modal/_clustered_functions.pyi,sha256=
|
3
|
+
modal/_clustered_functions.py,sha256=Sy4Sf_17EO8OL-FUe8LYcm4hrqLyQFCssNhr3p0SroU,3013
|
4
|
+
modal/_clustered_functions.pyi,sha256=JmYwAGOLEnD5AF-gYF9O5tu-SgGjeoJz-X1j48b1Ijg,1157
|
5
5
|
modal/_container_entrypoint.py,sha256=a1HAQYh1gGpqHuhSw6AW7XDYHztbeYr5a8iNnfCnoks,29023
|
6
6
|
modal/_functions.py,sha256=wDpUpxX_K5lLRQQ5wJWq2E4UjBo9uEvuv9QSqfboplo,88890
|
7
7
|
modal/_ipython.py,sha256=TW1fkVOmZL3YYqdS2YlM1hqpf654Yf8ZyybHdBnlhSw,301
|
@@ -22,7 +22,7 @@ modal/app.py,sha256=hJU3DGzP5GwYRmBj57XajljkQtLxkKftxXih2TYRcKo,48047
|
|
22
22
|
modal/app.pyi,sha256=0U2xVKD3yfHe5l2bcihTDjPl__tzOvx1AIYOTebu-5o,43375
|
23
23
|
modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
|
24
24
|
modal/client.py,sha256=kyAIVB3Ay-XKJizQ_1ufUFB__EagV0MLmHJpyYyJ7J0,18636
|
25
|
-
modal/client.pyi,sha256=
|
25
|
+
modal/client.pyi,sha256=n0FxnWtClMaYU1e4f_KHOUHbWFrphOmkoaAWCEfl534,15829
|
26
26
|
modal/cloud_bucket_mount.py,sha256=YOe9nnvSr4ZbeCn587d7_VhE9IioZYRvF9VYQTQux08,5914
|
27
27
|
modal/cloud_bucket_mount.pyi,sha256=-qSfYAQvIoO_l2wsCCGTG5ZUwQieNKXdAO00yP1-LYU,7394
|
28
28
|
modal/cls.py,sha256=1mBcExFrLDTZwkD3Dzu8F26_CL0CGktOV9pE60Y8g_E,40689
|
@@ -153,7 +153,7 @@ modal/experimental/__init__.py,sha256=dPBPpxsmjZMLF3YjRrXoTvT01pl65wxi4UdFZsOem3
|
|
153
153
|
modal/experimental/flash.py,sha256=viXQumCIFp5VFsPFURdFTBTjP_QnsAi8nSWXAMmfjeQ,19744
|
154
154
|
modal/experimental/flash.pyi,sha256=A8_qJGtGoXEzKDdHbvhmCw7oqfneFEvJQK3ZdTOvUdU,10830
|
155
155
|
modal/experimental/ipython.py,sha256=TrCfmol9LGsRZMeDoeMPx3Hv3BFqQhYnmD_iH0pqdhk,2904
|
156
|
-
modal-1.1.4.
|
156
|
+
modal-1.1.4.dev7.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
157
157
|
modal_docs/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,28
|
158
158
|
modal_docs/gen_cli_docs.py,sha256=c1yfBS_x--gL5bs0N4ihMwqwX8l3IBWSkBAKNNIi6bQ,3801
|
159
159
|
modal_docs/gen_reference_docs.py,sha256=d_CQUGQ0rfw28u75I2mov9AlS773z9rG40-yq5o7g2U,6359
|
@@ -176,10 +176,10 @@ modal_proto/options_pb2.pyi,sha256=l7DBrbLO7q3Ir-XDkWsajm0d0TQqqrfuX54i4BMpdQg,1
|
|
176
176
|
modal_proto/options_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
177
177
|
modal_proto/options_pb2_grpc.pyi,sha256=CImmhxHsYnF09iENPoe8S4J-n93jtgUYD2JPAc0yJSI,247
|
178
178
|
modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
179
|
-
modal_version/__init__.py,sha256=
|
179
|
+
modal_version/__init__.py,sha256=cgfEjfjr2Cr3vRbd7zo-YhrgTLP1XA-taKzqtE6UrXQ,120
|
180
180
|
modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
|
181
|
-
modal-1.1.4.
|
182
|
-
modal-1.1.4.
|
183
|
-
modal-1.1.4.
|
184
|
-
modal-1.1.4.
|
185
|
-
modal-1.1.4.
|
181
|
+
modal-1.1.4.dev7.dist-info/METADATA,sha256=9ssL85oxmIDkDc4fX16uVdQhDEf4DHjcURsTIif61ZA,2459
|
182
|
+
modal-1.1.4.dev7.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
|
183
|
+
modal-1.1.4.dev7.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
|
184
|
+
modal-1.1.4.dev7.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
|
185
|
+
modal-1.1.4.dev7.dist-info/RECORD,,
|
modal_version/__init__.py
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|