together 2.0.0a13__py3-none-any.whl → 2.0.0a14__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.
- together/_client.py +38 -0
- together/_version.py +1 -1
- together/lib/cli/api/beta/beta.py +12 -0
- together/lib/cli/api/beta/clusters.py +357 -0
- together/lib/cli/api/beta/clusters_storage.py +152 -0
- together/lib/cli/api/utils.py +37 -1
- together/lib/cli/cli.py +2 -0
- together/resources/__init__.py +14 -0
- together/resources/beta/__init__.py +33 -0
- together/resources/beta/beta.py +102 -0
- together/resources/beta/clusters/__init__.py +33 -0
- together/resources/beta/clusters/clusters.py +628 -0
- together/resources/beta/clusters/storage.py +490 -0
- together/types/beta/__init__.py +12 -0
- together/types/beta/cluster.py +93 -0
- together/types/beta/cluster_create_params.py +51 -0
- together/types/beta/cluster_create_response.py +9 -0
- together/types/beta/cluster_delete_response.py +9 -0
- together/types/beta/cluster_list_regions_response.py +21 -0
- together/types/beta/cluster_list_response.py +12 -0
- together/types/beta/cluster_update_params.py +13 -0
- together/types/beta/cluster_update_response.py +9 -0
- together/types/beta/clusters/__init__.py +10 -0
- together/types/beta/clusters/cluster_storage.py +13 -0
- together/types/beta/clusters/storage_create_params.py +17 -0
- together/types/beta/clusters/storage_create_response.py +9 -0
- together/types/beta/clusters/storage_delete_response.py +9 -0
- together/types/beta/clusters/storage_list_response.py +12 -0
- together/types/beta/clusters/storage_update_params.py +13 -0
- {together-2.0.0a13.dist-info → together-2.0.0a14.dist-info}/METADATA +14 -8
- {together-2.0.0a13.dist-info → together-2.0.0a14.dist-info}/RECORD +34 -10
- {together-2.0.0a13.dist-info → together-2.0.0a14.dist-info}/WHEEL +0 -0
- {together-2.0.0a13.dist-info → together-2.0.0a14.dist-info}/entry_points.txt +0 -0
- {together-2.0.0a13.dist-info → together-2.0.0a14.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
|
|
5
|
+
from .cluster import Cluster
|
|
6
|
+
from ..._models import BaseModel
|
|
7
|
+
|
|
8
|
+
__all__ = ["ClusterListResponse"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ClusterListResponse(BaseModel):
|
|
12
|
+
clusters: List[Cluster]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["ClusterUpdateParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ClusterUpdateParams(TypedDict, total=False):
|
|
11
|
+
cluster_type: Literal["KUBERNETES", "SLURM"]
|
|
12
|
+
|
|
13
|
+
num_gpus: int
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .cluster_storage import ClusterStorage as ClusterStorage
|
|
6
|
+
from .storage_create_params import StorageCreateParams as StorageCreateParams
|
|
7
|
+
from .storage_list_response import StorageListResponse as StorageListResponse
|
|
8
|
+
from .storage_update_params import StorageUpdateParams as StorageUpdateParams
|
|
9
|
+
from .storage_create_response import StorageCreateResponse as StorageCreateResponse
|
|
10
|
+
from .storage_delete_response import StorageDeleteResponse as StorageDeleteResponse
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from ...._models import BaseModel
|
|
4
|
+
|
|
5
|
+
__all__ = ["ClusterStorage"]
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ClusterStorage(BaseModel):
|
|
9
|
+
size_tib: int
|
|
10
|
+
|
|
11
|
+
volume_id: str
|
|
12
|
+
|
|
13
|
+
volume_name: str
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Required, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["StorageCreateParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class StorageCreateParams(TypedDict, total=False):
|
|
11
|
+
region: Required[str]
|
|
12
|
+
"""Region name. Usable regions can be found from `client.clusters.list_regions()`"""
|
|
13
|
+
|
|
14
|
+
size_tib: Required[int]
|
|
15
|
+
"""Volume size in whole tebibytes (TiB)."""
|
|
16
|
+
|
|
17
|
+
volume_name: Required[str]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
|
|
5
|
+
from ...._models import BaseModel
|
|
6
|
+
from .cluster_storage import ClusterStorage
|
|
7
|
+
|
|
8
|
+
__all__ = ["StorageListResponse"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class StorageListResponse(BaseModel):
|
|
12
|
+
volumes: List[ClusterStorage]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["StorageUpdateParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class StorageUpdateParams(TypedDict, total=False):
|
|
11
|
+
size_tib: int
|
|
12
|
+
|
|
13
|
+
volume_id: str
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: together
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.0a14
|
|
4
4
|
Summary: The official Python library for the together API
|
|
5
5
|
Project-URL: Homepage, https://github.com/togethercomputer/together-py
|
|
6
6
|
Project-URL: Repository, https://github.com/togethercomputer/together-py
|
|
@@ -232,15 +232,21 @@ from together import Together
|
|
|
232
232
|
|
|
233
233
|
client = Together()
|
|
234
234
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
235
|
+
cluster = client.beta.clusters.create(
|
|
236
|
+
billing_type="RESERVED",
|
|
237
|
+
cluster_name="cluster_name",
|
|
238
|
+
driver_version="CUDA_12_5_555",
|
|
239
|
+
duration_days=0,
|
|
240
|
+
gpu_type="H100_SXM",
|
|
241
|
+
num_gpus=0,
|
|
242
|
+
region="us-central-8",
|
|
243
|
+
shared_volume={
|
|
244
|
+
"region": "region",
|
|
245
|
+
"size_tib": 0,
|
|
246
|
+
"volume_name": "volume_name",
|
|
239
247
|
},
|
|
240
|
-
hardware="1x_nvidia_a100_80gb_sxm",
|
|
241
|
-
model="meta-llama/Llama-3-8b-chat-hf",
|
|
242
248
|
)
|
|
243
|
-
print(
|
|
249
|
+
print(cluster.shared_volume)
|
|
244
250
|
```
|
|
245
251
|
|
|
246
252
|
The async client uses the exact same interface. If you pass a [`PathLike`](https://docs.python.org/3/library/os.html#os.PathLike) instance, the file contents will be read asynchronously automatically.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
together/__init__.py,sha256=ghwEH6EUrPERUwHVSXaCJVqS7QmLN7NsUxKJNXQrOYM,2842
|
|
2
2
|
together/_base_client.py,sha256=U6Lhqesx9l1qhaYKaP2jR-_mIyqbNhAOo2r2bgTQegI,67249
|
|
3
|
-
together/_client.py,sha256=
|
|
3
|
+
together/_client.py,sha256=SdKbatStb_gD9PQ1VFVs8_njHi7XJLOsiTjiloL4R1Q,39056
|
|
4
4
|
together/_compat.py,sha256=DQBVORjFb33zch24jzkhM14msvnzY7mmSmgDLaVFUM8,6562
|
|
5
5
|
together/_constants.py,sha256=i39tJ7BP8nnqvdHFJwMhN6LWR6-jg5LLYiFudwCD3Ic,463
|
|
6
6
|
together/_exceptions.py,sha256=cpi7uHZjLovYHSeH_aTV7vmDj3dLx7mNN6hEdOY1vjo,3224
|
|
@@ -11,7 +11,7 @@ together/_resource.py,sha256=-ZTq9O5qf2YsgjJk_gwJs-CM_OG4p6gdMLcNWjuxFwQ,1112
|
|
|
11
11
|
together/_response.py,sha256=lvqEsCbpD8SRJTjlhhUFGbnLUR_4-Qva-OApxfVdiY4,28800
|
|
12
12
|
together/_streaming.py,sha256=sk6fVYbpdO3Y-0S5iwZTHQJ3N24UkK0KaupgUTftWZk,11825
|
|
13
13
|
together/_types.py,sha256=LzaeqN09mUAEvRg_XrLzihdOaW0D_R9qrG7jKsFjnQY,7297
|
|
14
|
-
together/_version.py,sha256=
|
|
14
|
+
together/_version.py,sha256=eBB42V294H5EYV8OZ2RRxKyFR-LsnbqEGYttngDMttQ,169
|
|
15
15
|
together/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
together/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
|
|
17
17
|
together/_utils/_compat.py,sha256=rN17SSvjMoQE1GmKFTLniRuG1sKj2WAD5VjdLPeRlF0,1231
|
|
@@ -29,14 +29,17 @@ together/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
|
|
29
29
|
together/lib/__init__.py,sha256=Qtdi6geFNzxE-F51eNDk1ESXYyYDt8b82MR1POANQBQ,394
|
|
30
30
|
together/lib/constants.py,sha256=w8-zVl8XZiJxqMdhbWekigHJ0JUMPoV9R3ejUHIcUJk,2237
|
|
31
31
|
together/lib/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
32
|
-
together/lib/cli/cli.py,sha256=
|
|
32
|
+
together/lib/cli/cli.py,sha256=BYoWSu5FGedL5FMpO4-4e14Cbc6_X2Y1tItUjdTcMpY,2010
|
|
33
33
|
together/lib/cli/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
34
|
together/lib/cli/api/endpoints.py,sha256=MyliUrTuJWw2qFd80J27pFs9xTazIVAP0mqgRYxdVsw,14851
|
|
35
35
|
together/lib/cli/api/evals.py,sha256=KkSvz2wIYmPQ3sFQBte6inNBZt1aptIkMVL5TKWTW5k,19074
|
|
36
36
|
together/lib/cli/api/files.py,sha256=HbflC45PpzBIF0CE0TLucQaVr319ScL05VyAFKf2T6Y,3596
|
|
37
37
|
together/lib/cli/api/fine_tuning.py,sha256=Tb4J9_LnHZHp73zNW1lHNSl_0UQfOd0yi9-IvMHBY08,22863
|
|
38
38
|
together/lib/cli/api/models.py,sha256=Jfrl7gcbWAkbBQ1i1gCy485HHT2C4C784OMaaHZPiPw,4084
|
|
39
|
-
together/lib/cli/api/utils.py,sha256=
|
|
39
|
+
together/lib/cli/api/utils.py,sha256=9WT9euOoIGD3FPP_Y9EIAfG39Io3kxNYZM6aFrONYZo,5678
|
|
40
|
+
together/lib/cli/api/beta/beta.py,sha256=JA9dJVuqFmoqUyM6Rx4sqfrmQWjEEaHQ9xjmlL908U0,173
|
|
41
|
+
together/lib/cli/api/beta/clusters.py,sha256=yDV1ut09OtUn4XrilAfaKWhtlMbW99FsuYXTgJl2dao,11427
|
|
42
|
+
together/lib/cli/api/beta/clusters_storage.py,sha256=ydVLsylsQIEyaKAURS-NDmyUtuRaeIl3Vn-0mCA4PdQ,3804
|
|
40
43
|
together/lib/resources/__init__.py,sha256=ystIb0pBHQLuwUBtHJwhRgtjK3_TV6K0KuM8NGuuNoU,172
|
|
41
44
|
together/lib/resources/files.py,sha256=Z_D23IvjYYWBpYrfYolCNfUslJBcE4PnU0WtuLsN67M,37277
|
|
42
45
|
together/lib/resources/fine_tuning.py,sha256=A-hOJqcGSPzw24wwX6K27OqV3B-u43dfdrK4nj4ItTg,13088
|
|
@@ -48,7 +51,7 @@ together/lib/utils/_log.py,sha256=mo5tDhyFTNqEj8MOcpy3bLmLBcC0OQ67orTw_nxFdcU,19
|
|
|
48
51
|
together/lib/utils/files.py,sha256=CVTFwI7yMzpaQ-GsGr1tD4O2kXA-i369Pi0eMnlWMmI,31854
|
|
49
52
|
together/lib/utils/serializer.py,sha256=wJwySGxAL0e1giZzFpl4hHH3s9lkoNN_yzu-P_jdRIo,287
|
|
50
53
|
together/lib/utils/tools.py,sha256=rrpz3EXEVViou5GDPjVoCSt2zDPJYDzWYqTsVO1-OgI,2183
|
|
51
|
-
together/resources/__init__.py,sha256=
|
|
54
|
+
together/resources/__init__.py,sha256=GRjbTMmep-fxfaRYWazySFcfeZBaztG_skfnsSaAb1Q,8001
|
|
52
55
|
together/resources/batches.py,sha256=FTdtVrCGstua94Imd5kqPhvzTBA8MdcFXuNb9gMha8Q,15386
|
|
53
56
|
together/resources/completions.py,sha256=DHTQs7PLxjwWacEtRSmB2AKat3DaWotm8vz2Z7F_WDE,41505
|
|
54
57
|
together/resources/embeddings.py,sha256=7EU6DZQd0Nm0Sh7x7v37QQOLNuLqNmcjdJAyOTckeRo,7447
|
|
@@ -68,6 +71,11 @@ together/resources/audio/speech.py,sha256=ZavAHDhi8rKzIQ0tRTv1UOIlUJQ5_ArvH3JG1J
|
|
|
68
71
|
together/resources/audio/transcriptions.py,sha256=HtegYl2NUfx_fph-iqKkQ5GKm-3V4yQagBKueS8IIqI,13155
|
|
69
72
|
together/resources/audio/translations.py,sha256=VPkg5ZUDw5LZwiaRYqEjETKwSMMU1odTeStl5PZSrls,10443
|
|
70
73
|
together/resources/audio/voices.py,sha256=Lj9DtOcv_Dhaq3E5p7Oty1T_JkhrsGDZcDF91HHA3Yw,4905
|
|
74
|
+
together/resources/beta/__init__.py,sha256=x4J4_HKYN90Yqo_2cDzTi_SGNTIPlUFNUveTlKbF3CA,1002
|
|
75
|
+
together/resources/beta/beta.py,sha256=d6UtBwDImqbUPR572NFK9adPiiPeYKyLvp-y03NvGNk,3610
|
|
76
|
+
together/resources/beta/clusters/__init__.py,sha256=lW7cWkNzotbOcP4fSnFxvKlVrq1flpN4yC4hr-vuzKE,1041
|
|
77
|
+
together/resources/beta/clusters/clusters.py,sha256=XU_Xp4i2q5Llj7nvSAgscsL8AuQoRNGxL235cw1f_YE,24423
|
|
78
|
+
together/resources/beta/clusters/storage.py,sha256=79wtOoIkQP9Uch_gTfoAzprZhOSF9QxfdGREFTS_08E,18243
|
|
71
79
|
together/resources/chat/__init__.py,sha256=BVAfz9TM3DT5W9f_mt0P9YRxL_MsUxKCWAH6u1iogmA,1041
|
|
72
80
|
together/resources/chat/chat.py,sha256=aJQQ4Zlof2NlrG53auI5omXPJVdG3c_vwnEkj-ahLG4,3688
|
|
73
81
|
together/resources/chat/completions.py,sha256=u45dEoSvgyJZ86yI3-CZzPDOVOjBi_h9ZaxXBhXZPaw,57312
|
|
@@ -148,6 +156,22 @@ together/types/audio/transcription_create_response.py,sha256=z8_pzJlzYjP4QxJhwbK
|
|
|
148
156
|
together/types/audio/translation_create_params.py,sha256=6-iHFC2K2o72K5tj0lfD-Lb69JzV4_5t_x2sdj2Pafs,1232
|
|
149
157
|
together/types/audio/translation_create_response.py,sha256=T6SUCExVMin1qSGamHuiWGWS84MZ92tZPBHD7NYm4IU,1843
|
|
150
158
|
together/types/audio/voice_list_response.py,sha256=vS2yvGBz7U2cxnJkEr7BewT7j5ActDjn99k3QhhEKk4,517
|
|
159
|
+
together/types/beta/__init__.py,sha256=R-G7zZw0WQOGXjL9vFS1Hzo4C-tf6flC60TEIQkSbD4,749
|
|
160
|
+
together/types/beta/cluster.py,sha256=QE0KMFrKikFbz5lZytvGqai9IBPAr_3PC_kqZd4yCcA,1636
|
|
161
|
+
together/types/beta/cluster_create_params.py,sha256=hbx5CVqA9EZyC8NX_TjKpHZ_wyK4yXL-uKghJoVpyB4,1510
|
|
162
|
+
together/types/beta/cluster_create_response.py,sha256=3NZHOdgeaTPY3f7T0u9YGuAnRIWoa4VWQe7PVFztqMU,219
|
|
163
|
+
together/types/beta/cluster_delete_response.py,sha256=rQ3dxuhlCqiuJBaVUUH51tNOkT6Xl-gnp0rRUxI6fOo,219
|
|
164
|
+
together/types/beta/cluster_list_regions_response.py,sha256=QzRO4ns6nrZvMcdTKF9Tjk7wcjXvYMQgiRztLIkEzxQ,391
|
|
165
|
+
together/types/beta/cluster_list_response.py,sha256=Vctdf-x12g1Y4vJHJ06GFCBXKaVdU6m8Pyb9OV8IM1Q,277
|
|
166
|
+
together/types/beta/cluster_update_params.py,sha256=C3OIOG1IyjV4_UeH24rzVbYAmSJiBT0Hs5bb3lXZCcU,328
|
|
167
|
+
together/types/beta/cluster_update_response.py,sha256=xl7aZ6sqY5Ssgx69OGzL_5ecZvfqUmxsr1leH-6pU9s,219
|
|
168
|
+
together/types/beta/clusters/__init__.py,sha256=ZRymRrNli_b5kAZNBY18EfY6ESfjDr9kqPbho5b2uHY,587
|
|
169
|
+
together/types/beta/clusters/cluster_storage.py,sha256=lcnTy4KkRrPOplMScRxFQUyrLJlZpFUl0L7OlW8HT6k,246
|
|
170
|
+
together/types/beta/clusters/storage_create_params.py,sha256=RbGMXdNQrKEegvez0Ev-wZLMKHcuy-BYmRPGsmYaa5I,485
|
|
171
|
+
together/types/beta/clusters/storage_create_response.py,sha256=IYezSxk3npJhLk-MnEdwtejcmNIy9rddIHdAk_0txU0,219
|
|
172
|
+
together/types/beta/clusters/storage_delete_response.py,sha256=U66KfWWOZpCgpQz0QriF-DF8UsTkW7d0_IeBP3kCqqU,218
|
|
173
|
+
together/types/beta/clusters/storage_list_response.py,sha256=wVyyFEGA-I9g-U9ii64tGGgIlPs0XZ9WNKwn-JbnBgc,299
|
|
174
|
+
together/types/beta/clusters/storage_update_params.py,sha256=urq_FjfZiYcmCo6qsmaVu1JG4RsOsSMYWwe_yDQ7w-A,289
|
|
151
175
|
together/types/chat/__init__.py,sha256=XuRK_yunfmDRsbxLftYqP_yl51m8hpM6iqPGJGnUx_Y,997
|
|
152
176
|
together/types/chat/chat_completion.py,sha256=0mpjMaALiX-LHSQbtwRdKmENpHcLBi_DQksT1kIM4xU,1361
|
|
153
177
|
together/types/chat/chat_completion_chunk.py,sha256=UwCs1yDwJgRSOCwyvdbyqFyOAj0eXOSg-eswk5pSn-k,1381
|
|
@@ -159,8 +183,8 @@ together/types/chat/chat_completion_warning.py,sha256=_Dp7YKlxyY2HeZopTvT-Go7qqK
|
|
|
159
183
|
together/types/chat/completion_create_params.py,sha256=GpOQIpL2hODOV-iPoilHxo5UYP_KHJ-zdZMP-VW87-g,13755
|
|
160
184
|
together/types/code_interpreter/__init__.py,sha256=dAXfb3ryLMtcBalCfxxNu2wJVswVP8G1xXryZnahPQY,201
|
|
161
185
|
together/types/code_interpreter/session_list_response.py,sha256=TRxLGFTmIY-KLpStKjJtsrm4EI6BBvakpx43B6pkhnw,662
|
|
162
|
-
together-2.0.
|
|
163
|
-
together-2.0.
|
|
164
|
-
together-2.0.
|
|
165
|
-
together-2.0.
|
|
166
|
-
together-2.0.
|
|
186
|
+
together-2.0.0a14.dist-info/METADATA,sha256=SttmhrjLu64bLfYJpZf1i-PjHJNQP71XKcQs2BpkjXA,20374
|
|
187
|
+
together-2.0.0a14.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
188
|
+
together-2.0.0a14.dist-info/entry_points.txt,sha256=4f4RAX89wQkx3AnfHXiGrKyg2fCPnwMd2UdPX48OczA,55
|
|
189
|
+
together-2.0.0a14.dist-info/licenses/LICENSE,sha256=oSs-kmJHhMue4vIIPIxQMvXou9PbxgNdIX-r_AwfO7c,11338
|
|
190
|
+
together-2.0.0a14.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|