together 2.0.0a10__py3-none-any.whl → 2.0.0a12__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.
@@ -1,6 +1,7 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  from typing import List, Union, Optional
4
+ from datetime import datetime
4
5
  from typing_extensions import Literal, TypeAlias
5
6
 
6
7
  from pydantic import Field as FieldInfo
@@ -14,6 +15,8 @@ __all__ = [
14
15
  "LrSchedulerLrSchedulerArgs",
15
16
  "LrSchedulerLrSchedulerArgsLinearLrSchedulerArgs",
16
17
  "LrSchedulerLrSchedulerArgsCosineLrSchedulerArgs",
18
+ "MultimodalParams",
19
+ "Progress",
17
20
  "TrainingMethod",
18
21
  "TrainingMethodTrainingMethodSft",
19
22
  "TrainingMethodTrainingMethodDpo",
@@ -47,6 +50,24 @@ class LrScheduler(BaseModel):
47
50
  lr_scheduler_args: Optional[LrSchedulerLrSchedulerArgs] = None
48
51
 
49
52
 
53
+ class MultimodalParams(BaseModel):
54
+ train_vision: Optional[bool] = None
55
+ """Whether to train the vision encoder of the model.
56
+
57
+ Only available for multimodal models.
58
+ """
59
+
60
+
61
+ class Progress(BaseModel):
62
+ """Progress information for a fine-tuning job"""
63
+
64
+ estimate_available: bool
65
+ """Whether time estimate is available"""
66
+
67
+ seconds_remaining: int
68
+ """Estimated time remaining in seconds for the fine-tuning job to next state"""
69
+
70
+
50
71
  class TrainingMethodTrainingMethodSft(BaseModel):
51
72
  method: Literal["sft"]
52
73
 
@@ -110,7 +131,7 @@ class FinetuneResponse(BaseModel):
110
131
 
111
132
  batch_size: Union[int, Literal["max"], None] = None
112
133
 
113
- created_at: Optional[str] = None
134
+ created_at: Optional[datetime] = None
114
135
 
115
136
  epochs_completed: Optional[int] = None
116
137
 
@@ -138,6 +159,8 @@ class FinetuneResponse(BaseModel):
138
159
 
139
160
  x_model_output_path: Optional[str] = FieldInfo(alias="model_output_path", default=None)
140
161
 
162
+ multimodal_params: Optional[MultimodalParams] = None
163
+
141
164
  n_checkpoints: Optional[int] = None
142
165
 
143
166
  n_epochs: Optional[int] = None
@@ -146,6 +169,9 @@ class FinetuneResponse(BaseModel):
146
169
 
147
170
  param_count: Optional[int] = None
148
171
 
172
+ progress: Optional[Progress] = None
173
+ """Progress information for a fine-tuning job"""
174
+
149
175
  queue_depth: Optional[int] = None
150
176
 
151
177
  token_count: Optional[int] = None
@@ -164,7 +190,7 @@ class FinetuneResponse(BaseModel):
164
190
 
165
191
  trainingfile_size: Optional[int] = None
166
192
 
167
- updated_at: Optional[str] = None
193
+ updated_at: Optional[datetime] = None
168
194
 
169
195
  validation_file: Optional[str] = None
170
196
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: together
3
- Version: 2.0.0a10
3
+ Version: 2.0.0a12
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
@@ -183,7 +183,7 @@ stream = client.chat.completions.create(
183
183
  messages=[
184
184
  {
185
185
  "role": "user",
186
- "content": "Say this is a test",
186
+ "content": "Say this is a test!",
187
187
  }
188
188
  ],
189
189
  model="meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
@@ -204,7 +204,7 @@ stream = await client.chat.completions.create(
204
204
  messages=[
205
205
  {
206
206
  "role": "user",
207
- "content": "Say this is a test",
207
+ "content": "Say this is a test!",
208
208
  }
209
209
  ],
210
210
  model="meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
@@ -1,5 +1,5 @@
1
1
  together/__init__.py,sha256=ghwEH6EUrPERUwHVSXaCJVqS7QmLN7NsUxKJNXQrOYM,2842
2
- together/_base_client.py,sha256=D18Ze-MTwyuEjCRc8jPXF8Iv7G0exCB3XzMHz6HCsgI,67049
2
+ together/_base_client.py,sha256=U6Lhqesx9l1qhaYKaP2jR-_mIyqbNhAOo2r2bgTQegI,67249
3
3
  together/_client.py,sha256=Nw2fyh2kf3RABNaHuqWKKhTujaHttGXoUZENECGaqyI,37788
4
4
  together/_compat.py,sha256=DQBVORjFb33zch24jzkhM14msvnzY7mmSmgDLaVFUM8,6562
5
5
  together/_constants.py,sha256=i39tJ7BP8nnqvdHFJwMhN6LWR6-jg5LLYiFudwCD3Ic,463
@@ -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=XmBi_Hs7NKx8HCFG-ERQy7tKZ3NfYmSV0kJTKf_6-o0,169
14
+ together/_version.py,sha256=OH5dGztmdGmTCfPzpSFY8dmywHPRzyc6lLUVwFJNg8w,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
@@ -27,25 +27,25 @@ together/_utils/_typing.py,sha256=N_5PPuFNsaygbtA_npZd98SVN1LQQvFTKL6bkWPBZGU,47
27
27
  together/_utils/_utils.py,sha256=g9ftElB09kVT6EVfCIlD_nUfANhDX5_vZO61FDWoIQI,12334
28
28
  together/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
29
29
  together/lib/__init__.py,sha256=Qtdi6geFNzxE-F51eNDk1ESXYyYDt8b82MR1POANQBQ,394
30
- together/lib/constants.py,sha256=EgcTlmk4QqVqjZjGej5k5JEwoRqidlITQ8LQqzW0dXI,1795
30
+ together/lib/constants.py,sha256=w8-zVl8XZiJxqMdhbWekigHJ0JUMPoV9R3ejUHIcUJk,2237
31
31
  together/lib/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
32
  together/lib/cli/cli.py,sha256=bNzYeLF8JdlMnSmIqFClp28MzjLGCwQ9hqSpaXHBQ0s,1939
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
- together/lib/cli/api/fine_tuning.py,sha256=XlkS8cUrlKIJAsPgtlSitDSCd66X86zRcT4bTk-36u4,22202
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=qppHd3MdATVA7MI32e_--OVeFQdftCq9s9tvKz8xaNY,1317
39
+ together/lib/cli/api/utils.py,sha256=j4IYurqcoqisstAQuqWMsUKbMQITNX8ax2Vv6U6qF7I,4381
40
40
  together/lib/resources/__init__.py,sha256=ystIb0pBHQLuwUBtHJwhRgtjK3_TV6K0KuM8NGuuNoU,172
41
- together/lib/resources/files.py,sha256=jM7Ra43eCKAa4pu9xA-1rPtP-0fXs8CkUq-hc6X8CaA,34418
42
- together/lib/resources/fine_tuning.py,sha256=-yCS6AIbgXpAcUkeqJcia8CPrnVcmyiaUN4dvksEjcc,12642
41
+ together/lib/resources/files.py,sha256=Z_D23IvjYYWBpYrfYolCNfUslJBcE4PnU0WtuLsN67M,37277
42
+ together/lib/resources/fine_tuning.py,sha256=A-hOJqcGSPzw24wwX6K27OqV3B-u43dfdrK4nj4ItTg,13088
43
43
  together/lib/types/__init__.py,sha256=1-kHsAp9Sh9HxjTGKfdHnF1nTS_cM_Tazv-3Z9hrEbY,205
44
44
  together/lib/types/error.py,sha256=i-rnTZPRZuJDUf1lM-52abG2JHWOUBTCh55zPNGoakg,135
45
- together/lib/types/fine_tuning.py,sha256=DN8mTSna3ptO-gQJBy_MnAZ-Zw6jOwZNuA73eVBt5l8,12555
45
+ together/lib/types/fine_tuning.py,sha256=gTB66x4jrmxyWuKJGcqX_4aYcI2iGgZvL3MzMLePDC8,13325
46
46
  together/lib/utils/__init__.py,sha256=F_CVqnvK-aEshMg-5FLFincPbhuVbsM6IKSCNyEByKs,545
47
47
  together/lib/utils/_log.py,sha256=mo5tDhyFTNqEj8MOcpy3bLmLBcC0OQ67orTw_nxFdcU,1930
48
- together/lib/utils/files.py,sha256=S6orZixBPeRtV_iq_IktuYHIm41irrHuOuexz_NYZJ0,24863
48
+ together/lib/utils/files.py,sha256=CVTFwI7yMzpaQ-GsGr1tD4O2kXA-i369Pi0eMnlWMmI,31854
49
49
  together/lib/utils/serializer.py,sha256=wJwySGxAL0e1giZzFpl4hHH3s9lkoNN_yzu-P_jdRIo,287
50
50
  together/lib/utils/tools.py,sha256=rrpz3EXEVViou5GDPjVoCSt2zDPJYDzWYqTsVO1-OgI,2183
51
51
  together/resources/__init__.py,sha256=Cuiy4FcdrfUzb0N-jZbl8Phqjvlzt12Iq7BhI9tFsXw,7577
@@ -55,7 +55,7 @@ together/resources/embeddings.py,sha256=7EU6DZQd0Nm0Sh7x7v37QQOLNuLqNmcjdJAyOTck
55
55
  together/resources/endpoints.py,sha256=dYdLlAJ0P7HJNhzZGxlbzEQYpUWsh35cjAMVfdWiifw,27884
56
56
  together/resources/evals.py,sha256=FPjvkbsBY5rrzLyQ-X1G9fWt2QmivI9ol5GExGtqYVA,16216
57
57
  together/resources/files.py,sha256=0paHeVqNt3NQCXoztCgFS8PEIg_-mMVto-ulHTr7GzE,16854
58
- together/resources/fine_tuning.py,sha256=rpdUFb2p7_AGn8TIn7dPuhcFCCsuE-yuUGzo8S-epO8,54170
58
+ together/resources/fine_tuning.py,sha256=BiCxQpdTjW5ArBufmWHNQoYY4z7Ulge8dI9GDCa5Dow,54795
59
59
  together/resources/hardware.py,sha256=xgfCmMrrwF5o1igax0JGec8RY7kkS0s4kKm62RdC3ME,6850
60
60
  together/resources/images.py,sha256=mVPQYpDHKBjLVO_Sv0uT62zYXdtWKN2PW3fCvfQLQCs,12612
61
61
  together/resources/jobs.py,sha256=TnzSnvJw4x5pqo1xzrkYH8f0viZrzyOqT-_w7xc0NzY,7797
@@ -65,8 +65,8 @@ together/resources/videos.py,sha256=AdcC08JrUtbcEJV-G0viH4CF1qU9oNjdjQ7U38QCEkU,
65
65
  together/resources/audio/__init__.py,sha256=MKUWFwFsAdCf9LrO8AiUCeIzdknPNDPr4lpAt-pkYSw,2521
66
66
  together/resources/audio/audio.py,sha256=stpvzuxIwMnAQLQnqW1KRxx3G_DI-oDSnx3uDN_X1R8,7180
67
67
  together/resources/audio/speech.py,sha256=ZavAHDhi8rKzIQ0tRTv1UOIlUJQ5_ArvH3JG1JdN41M,27560
68
- together/resources/audio/transcriptions.py,sha256=k5zLDKXNqISjeieSyi1FKbyKsWyhnkeIkApG3l7QzeY,12965
69
- together/resources/audio/translations.py,sha256=zeV1wJPGzBmQGGgSPNA_vigy_4yuV3aBq6sSLa19-jg,10251
68
+ together/resources/audio/transcriptions.py,sha256=HtegYl2NUfx_fph-iqKkQ5GKm-3V4yQagBKueS8IIqI,13155
69
+ together/resources/audio/translations.py,sha256=VPkg5ZUDw5LZwiaRYqEjETKwSMMU1odTeStl5PZSrls,10443
70
70
  together/resources/audio/voices.py,sha256=Lj9DtOcv_Dhaq3E5p7Oty1T_JkhrsGDZcDF91HHA3Yw,4905
71
71
  together/resources/chat/__init__.py,sha256=BVAfz9TM3DT5W9f_mt0P9YRxL_MsUxKCWAH6u1iogmA,1041
72
72
  together/resources/chat/chat.py,sha256=aJQQ4Zlof2NlrG53auI5omXPJVdG3c_vwnEkj-ahLG4,3688
@@ -106,7 +106,7 @@ together/types/file_list.py,sha256=AE9muto7B4HyABgt3k9obSbUG1GW09pVvB0POnEQeUg,2
106
106
  together/types/file_purpose.py,sha256=9sHEbQ1qy4V99KMT7R5Ya_VXutu1ZZG1pho-w2ZZ9OM,302
107
107
  together/types/file_response.py,sha256=Abmu-Ph-masbhAFePB64VhiswHEFmExWF34jaiTm4Lg,626
108
108
  together/types/file_type.py,sha256=lrvFtcJr0Wn5thWP4NihmrmK23AouK2e6Ev4LCCPg5A,218
109
- together/types/fine_tuning_cancel_response.py,sha256=POZIRboDF3WBj6IHGaKpyUvKux7Kt3Fkuwo9TRKJn5Q,5423
109
+ together/types/fine_tuning_cancel_response.py,sha256=gTrdjW-UdZ1nN151V4YJeDlozcq8FhKEZV6fw2pCflU,5806
110
110
  together/types/fine_tuning_content_params.py,sha256=_5rqZ2lk6FShmX-5Hj4A9jQdpPZP6lcgjXvnrC30G8k,711
111
111
  together/types/fine_tuning_delete_params.py,sha256=YwUcN_gFl9N2zuUJqyOrE0ngONL2N_OgfVw6h-sH2RE,273
112
112
  together/types/fine_tuning_delete_response.py,sha256=oWoJM51-2b_RIINhJSMyMelSKQkHFYrJjDLeD51dUgo,323
@@ -114,10 +114,10 @@ together/types/fine_tuning_estimate_price_params.py,sha256=LIlP1Z5C1EAQgOg3b3BZ1
114
114
  together/types/fine_tuning_estimate_price_response.py,sha256=lA2MUesE_C_Ia8U-rJRsqRGRzkZJno2dsIsrMmoQMIo,770
115
115
  together/types/fine_tuning_list_checkpoints_response.py,sha256=9S0kRl7ItqFU6CeodrB9jb1zgf7-Ehb7VGjsbKq_hBY,377
116
116
  together/types/fine_tuning_list_events_response.py,sha256=DeDJLF1IxQV47HOwfuVt8Zis5W2CKs3iKkKvwDxyswk,309
117
- together/types/fine_tuning_list_response.py,sha256=4owaCLVcmOWWlSVEQ7x3DZlJ-PPMlIymWkfj8vZ8ObI,5597
117
+ together/types/fine_tuning_list_response.py,sha256=vdVZBQ4V1GFzHUBiRR0drEvKg1ASTyG5g84P0oM1S_c,5992
118
118
  together/types/finetune_event.py,sha256=0apAXe6Anx2_ffse2pOBJDxngCeuSvuDMYczZ0DtzZg,787
119
119
  together/types/finetune_event_type.py,sha256=Bm4lkBhsLI_kaD5yabsvW6BpnjXzZO_lwDtiEeMNXnw,824
120
- together/types/finetune_response.py,sha256=BrdlilnNFAenIR73cbu9Oj2IIIgudqTD_Qcpo_KGqmg,4289
120
+ together/types/finetune_response.py,sha256=klN6uuZt1tQ_PJ3rt7OSd_Cf7f0MuUnFZ4uJ6ISdrEU,4975
121
121
  together/types/hardware_list_params.py,sha256=BbfiigtdQE0QNGFGr6o-Twg912x_riH5mbUNpZWYWO4,435
122
122
  together/types/hardware_list_response.py,sha256=KfGhnEy7qEW2Bzt4Q8b-JSvxG-IKIIFfcpWEQHS9YdM,1732
123
123
  together/types/image_data_b64.py,sha256=pLY7JDBb1HF1T29ACbae_xn6JQfttpqQVeG_jJeenZU,284
@@ -143,9 +143,9 @@ together/types/video_create_params.py,sha256=9Mx7TWTaPHOOpaMezz9FD5VC7hN6jGbnynG
143
143
  together/types/video_job.py,sha256=49S_V4lygUJUZR2x8vr_L39mUZV6YisXK3kuHEQXHOo,1740
144
144
  together/types/audio/__init__.py,sha256=FRPjWqhXrrSZgg615cnF6cWNqEowSovw__2V7BR3kgo,654
145
145
  together/types/audio/speech_create_params.py,sha256=SwoTcRMG5NnO_LpT3eAXFfOqqxyFh6C-cU8mtY2v4lk,2867
146
- together/types/audio/transcription_create_params.py,sha256=utzevQa2y_fiznVYVIUK7J76HzH_YWgLsvtbtFIH_Gs,2156
146
+ together/types/audio/transcription_create_params.py,sha256=pAC6G0jQHpgRBa17T-gNFbZl-FbSJ8ZUEZDqKx6kEkU,2247
147
147
  together/types/audio/transcription_create_response.py,sha256=z8_pzJlzYjP4QxJhwbKuDgAeVpWbgee6jt3QLFVVSjM,3059
148
- together/types/audio/translation_create_params.py,sha256=RjKaaR2RNSE4DxuBHCBKDURxxqalZJmApIhtmDV7MBM,1140
148
+ together/types/audio/translation_create_params.py,sha256=6-iHFC2K2o72K5tj0lfD-Lb69JzV4_5t_x2sdj2Pafs,1232
149
149
  together/types/audio/translation_create_response.py,sha256=T6SUCExVMin1qSGamHuiWGWS84MZ92tZPBHD7NYm4IU,1843
150
150
  together/types/audio/voice_list_response.py,sha256=vS2yvGBz7U2cxnJkEr7BewT7j5ActDjn99k3QhhEKk4,517
151
151
  together/types/chat/__init__.py,sha256=XuRK_yunfmDRsbxLftYqP_yl51m8hpM6iqPGJGnUx_Y,997
@@ -159,8 +159,8 @@ together/types/chat/chat_completion_warning.py,sha256=_Dp7YKlxyY2HeZopTvT-Go7qqK
159
159
  together/types/chat/completion_create_params.py,sha256=Ia2dWuVxjderCRfpqV4Zpl-9rVng0p8deILUXVC3O0s,13687
160
160
  together/types/code_interpreter/__init__.py,sha256=dAXfb3ryLMtcBalCfxxNu2wJVswVP8G1xXryZnahPQY,201
161
161
  together/types/code_interpreter/session_list_response.py,sha256=TRxLGFTmIY-KLpStKjJtsrm4EI6BBvakpx43B6pkhnw,662
162
- together-2.0.0a10.dist-info/METADATA,sha256=w9kCFvckPuJ7x5S6JIi7g6O9-Ah9ixwOVCgQajuHp9Q,20247
163
- together-2.0.0a10.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
164
- together-2.0.0a10.dist-info/entry_points.txt,sha256=4f4RAX89wQkx3AnfHXiGrKyg2fCPnwMd2UdPX48OczA,55
165
- together-2.0.0a10.dist-info/licenses/LICENSE,sha256=5I5MO2DiiBFcD_p4ZF2T4GDb-WeBMD591ALtADdtXDc,11338
166
- together-2.0.0a10.dist-info/RECORD,,
162
+ together-2.0.0a12.dist-info/METADATA,sha256=9QxYAaPhjBTRxpvWRO3CIFG_ebYHjTzRwgQ2f2QJwko,20249
163
+ together-2.0.0a12.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
164
+ together-2.0.0a12.dist-info/entry_points.txt,sha256=4f4RAX89wQkx3AnfHXiGrKyg2fCPnwMd2UdPX48OczA,55
165
+ together-2.0.0a12.dist-info/licenses/LICENSE,sha256=oSs-kmJHhMue4vIIPIxQMvXou9PbxgNdIX-r_AwfO7c,11338
166
+ together-2.0.0a12.dist-info/RECORD,,
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright 2025 Together
189
+ Copyright 2026 Together
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.