together 1.3.9__py3-none-any.whl → 1.3.11__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.
@@ -197,10 +197,7 @@ def create(
197
197
  "batch_size": model_limits.lora_training.max_batch_size,
198
198
  "learning_rate": 1e-3,
199
199
  }
200
- log_warn_once(
201
- f"The default LoRA rank for {model} has been changed to {default_values['lora_r']} as the max available.\n"
202
- f"Also, the default learning rate for LoRA fine-tuning has been changed to {default_values['learning_rate']}."
203
- )
200
+
204
201
  for arg in default_values:
205
202
  arg_source = ctx.get_parameter_source("arg") # type: ignore[attr-defined]
206
203
  if arg_source == ParameterSource.DEFAULT:
together/utils/files.py CHANGED
@@ -177,6 +177,14 @@ def _check_jsonl(file: Path) -> Dict[str, Any]:
177
177
  error_source="key_value",
178
178
  )
179
179
 
180
+ if len(json_line[message_column]) == 0:
181
+ raise InvalidFileFormatError(
182
+ message=f"Invalid format on line {idx + 1} of the input file. "
183
+ f"Expected a non-empty list of messages. Found empty list",
184
+ line_number=idx + 1,
185
+ error_source="key_value",
186
+ )
187
+
180
188
  for turn_id, turn in enumerate(json_line[message_column]):
181
189
  if not isinstance(turn, dict):
182
190
  raise InvalidFileFormatError(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: together
3
- Version: 1.3.9
3
+ Version: 1.3.11
4
4
  Summary: Python client for Together's Cloud Platform!
5
5
  Home-page: https://github.com/togethercomputer/together-python
6
6
  License: Apache-2.0
@@ -29,7 +29,7 @@ Requires-Dist: requests (>=2.31.0,<3.0.0)
29
29
  Requires-Dist: rich (>=13.8.1,<14.0.0)
30
30
  Requires-Dist: tabulate (>=0.9.0,<0.10.0)
31
31
  Requires-Dist: tqdm (>=4.66.2,<5.0.0)
32
- Requires-Dist: typer (>=0.9,<0.14)
32
+ Requires-Dist: typer (>=0.9,<0.16)
33
33
  Project-URL: Bug Tracker, https://github.com/togethercomputer/together-python/issues
34
34
  Project-URL: Repository, https://github.com/togethercomputer/together-python
35
35
  Description-Content-Type: text/markdown
@@ -6,7 +6,7 @@ together/cli/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
6
6
  together/cli/api/chat.py,sha256=2PHRb-9T-lUEKhUJFtc7SxJv3shCVx40gq_8pzfsewM,9234
7
7
  together/cli/api/completions.py,sha256=l-Zw5t7hojL3w8xd_mitS2NRB72i5Z0xwkzH0rT5XMc,4263
8
8
  together/cli/api/files.py,sha256=QLYEXRkY8J2Gg1SbTCtzGfoTMvosoeACNK83L_oLubs,3397
9
- together/cli/api/finetune.py,sha256=dcpGJBXLrsZc5EwRExyfsg0puWiook-muTQD9RP9L40,13198
9
+ together/cli/api/finetune.py,sha256=FWHENGE86oLNCVXEJN9AAU3FlSTtnO96aShhB2xVrsk,12923
10
10
  together/cli/api/images.py,sha256=GADSeaNUHUVMtWovmccGuKc28IJ9E_v4vAEwYHJhu5o,2645
11
11
  together/cli/api/models.py,sha256=xWEzu8ZpxM_Pz9KEjRPRVuv_v22RayYZ4QcgiezT5tE,1126
12
12
  together/cli/api/utils.py,sha256=IuqYWPnLI38_Bqd7lj8V_SnGdYc59pRmMbQmciS4FsM,1326
@@ -49,11 +49,11 @@ together/types/rerank.py,sha256=qZfuXOn7MZ6ly8hpJ_MZ7OU_Bi1-cgYNSB20Wja8Qkk,1061
49
49
  together/utils/__init__.py,sha256=n1kmLiaExT9YOKT5ye--dC4tW2qcHeicKX0GR86U640,698
50
50
  together/utils/_log.py,sha256=5IYNI-jYzxyIS-pUvhb0vE_Muo3MA7GgBhsu66TKP2w,1951
51
51
  together/utils/api_helpers.py,sha256=RSF7SRhbjHzroMOSWAXscflByM1r1ta_1SpxkAT22iE,2407
52
- together/utils/files.py,sha256=EJaziXezArb4cKtNodqaOsNJT-FWb1qIfMmSCFqPPm8,13745
52
+ together/utils/files.py,sha256=4SxxrTYfVoWvsD0n7O73LVjexAxYCWvXUBgmzrJY5-s,14169
53
53
  together/utils/tools.py,sha256=3-lXWP3cBCzOVSZg9tr5zOT1jaVeKAKVWxO2fcXZTh8,1788
54
54
  together/version.py,sha256=p03ivHyE0SyWU4jAnRTBi_sOwywVWoZPU4g2gzRgG-Y,126
55
- together-1.3.9.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
56
- together-1.3.9.dist-info/METADATA,sha256=wcvLZbn15o_pE0BJcJ9xtEdMn49EOsG8KYoypxtacxY,11829
57
- together-1.3.9.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
58
- together-1.3.9.dist-info/entry_points.txt,sha256=G-b5NKW6lUUf1V1fH8IPTBb7jXnK7lhbX9H1zTEJXPs,50
59
- together-1.3.9.dist-info/RECORD,,
55
+ together-1.3.11.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
56
+ together-1.3.11.dist-info/METADATA,sha256=o-H2tGNGU_ekHhGbyLQy5whnIznKnaX5TdecbRKVGew,11830
57
+ together-1.3.11.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
58
+ together-1.3.11.dist-info/entry_points.txt,sha256=G-b5NKW6lUUf1V1fH8IPTBb7jXnK7lhbX9H1zTEJXPs,50
59
+ together-1.3.11.dist-info/RECORD,,