together 1.5.16__tar.gz → 1.5.17__tar.gz

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.
Files changed (68) hide show
  1. {together-1.5.16 → together-1.5.17}/PKG-INFO +1 -1
  2. {together-1.5.16 → together-1.5.17}/pyproject.toml +1 -1
  3. {together-1.5.16 → together-1.5.17}/src/together/cli/api/finetune.py +7 -7
  4. {together-1.5.16 → together-1.5.17}/src/together/resources/finetune.py +18 -0
  5. {together-1.5.16 → together-1.5.17}/LICENSE +0 -0
  6. {together-1.5.16 → together-1.5.17}/README.md +0 -0
  7. {together-1.5.16 → together-1.5.17}/src/together/__init__.py +0 -0
  8. {together-1.5.16 → together-1.5.17}/src/together/abstract/__init__.py +0 -0
  9. {together-1.5.16 → together-1.5.17}/src/together/abstract/api_requestor.py +0 -0
  10. {together-1.5.16 → together-1.5.17}/src/together/cli/__init__.py +0 -0
  11. {together-1.5.16 → together-1.5.17}/src/together/cli/api/__init__.py +0 -0
  12. {together-1.5.16 → together-1.5.17}/src/together/cli/api/chat.py +0 -0
  13. {together-1.5.16 → together-1.5.17}/src/together/cli/api/completions.py +0 -0
  14. {together-1.5.16 → together-1.5.17}/src/together/cli/api/endpoints.py +0 -0
  15. {together-1.5.16 → together-1.5.17}/src/together/cli/api/files.py +0 -0
  16. {together-1.5.16 → together-1.5.17}/src/together/cli/api/images.py +0 -0
  17. {together-1.5.16 → together-1.5.17}/src/together/cli/api/models.py +0 -0
  18. {together-1.5.16 → together-1.5.17}/src/together/cli/api/utils.py +0 -0
  19. {together-1.5.16 → together-1.5.17}/src/together/cli/cli.py +0 -0
  20. {together-1.5.16 → together-1.5.17}/src/together/client.py +0 -0
  21. {together-1.5.16 → together-1.5.17}/src/together/constants.py +0 -0
  22. {together-1.5.16 → together-1.5.17}/src/together/error.py +0 -0
  23. {together-1.5.16 → together-1.5.17}/src/together/filemanager.py +0 -0
  24. {together-1.5.16 → together-1.5.17}/src/together/legacy/__init__.py +0 -0
  25. {together-1.5.16 → together-1.5.17}/src/together/legacy/base.py +0 -0
  26. {together-1.5.16 → together-1.5.17}/src/together/legacy/complete.py +0 -0
  27. {together-1.5.16 → together-1.5.17}/src/together/legacy/embeddings.py +0 -0
  28. {together-1.5.16 → together-1.5.17}/src/together/legacy/files.py +0 -0
  29. {together-1.5.16 → together-1.5.17}/src/together/legacy/finetune.py +0 -0
  30. {together-1.5.16 → together-1.5.17}/src/together/legacy/images.py +0 -0
  31. {together-1.5.16 → together-1.5.17}/src/together/legacy/models.py +0 -0
  32. {together-1.5.16 → together-1.5.17}/src/together/resources/__init__.py +0 -0
  33. {together-1.5.16 → together-1.5.17}/src/together/resources/audio/__init__.py +0 -0
  34. {together-1.5.16 → together-1.5.17}/src/together/resources/audio/speech.py +0 -0
  35. {together-1.5.16 → together-1.5.17}/src/together/resources/batch.py +0 -0
  36. {together-1.5.16 → together-1.5.17}/src/together/resources/chat/__init__.py +0 -0
  37. {together-1.5.16 → together-1.5.17}/src/together/resources/chat/completions.py +0 -0
  38. {together-1.5.16 → together-1.5.17}/src/together/resources/code_interpreter.py +0 -0
  39. {together-1.5.16 → together-1.5.17}/src/together/resources/completions.py +0 -0
  40. {together-1.5.16 → together-1.5.17}/src/together/resources/embeddings.py +0 -0
  41. {together-1.5.16 → together-1.5.17}/src/together/resources/endpoints.py +0 -0
  42. {together-1.5.16 → together-1.5.17}/src/together/resources/files.py +0 -0
  43. {together-1.5.16 → together-1.5.17}/src/together/resources/images.py +0 -0
  44. {together-1.5.16 → together-1.5.17}/src/together/resources/models.py +0 -0
  45. {together-1.5.16 → together-1.5.17}/src/together/resources/rerank.py +0 -0
  46. {together-1.5.16 → together-1.5.17}/src/together/together_response.py +0 -0
  47. {together-1.5.16 → together-1.5.17}/src/together/types/__init__.py +0 -0
  48. {together-1.5.16 → together-1.5.17}/src/together/types/abstract.py +0 -0
  49. {together-1.5.16 → together-1.5.17}/src/together/types/audio_speech.py +0 -0
  50. {together-1.5.16 → together-1.5.17}/src/together/types/batch.py +0 -0
  51. {together-1.5.16 → together-1.5.17}/src/together/types/chat_completions.py +0 -0
  52. {together-1.5.16 → together-1.5.17}/src/together/types/code_interpreter.py +0 -0
  53. {together-1.5.16 → together-1.5.17}/src/together/types/common.py +0 -0
  54. {together-1.5.16 → together-1.5.17}/src/together/types/completions.py +0 -0
  55. {together-1.5.16 → together-1.5.17}/src/together/types/embeddings.py +0 -0
  56. {together-1.5.16 → together-1.5.17}/src/together/types/endpoints.py +0 -0
  57. {together-1.5.16 → together-1.5.17}/src/together/types/error.py +0 -0
  58. {together-1.5.16 → together-1.5.17}/src/together/types/files.py +0 -0
  59. {together-1.5.16 → together-1.5.17}/src/together/types/finetune.py +0 -0
  60. {together-1.5.16 → together-1.5.17}/src/together/types/images.py +0 -0
  61. {together-1.5.16 → together-1.5.17}/src/together/types/models.py +0 -0
  62. {together-1.5.16 → together-1.5.17}/src/together/types/rerank.py +0 -0
  63. {together-1.5.16 → together-1.5.17}/src/together/utils/__init__.py +0 -0
  64. {together-1.5.16 → together-1.5.17}/src/together/utils/_log.py +0 -0
  65. {together-1.5.16 → together-1.5.17}/src/together/utils/api_helpers.py +0 -0
  66. {together-1.5.16 → together-1.5.17}/src/together/utils/files.py +0 -0
  67. {together-1.5.16 → together-1.5.17}/src/together/utils/tools.py +0 -0
  68. {together-1.5.16 → together-1.5.17}/src/together/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: together
3
- Version: 1.5.16
3
+ Version: 1.5.17
4
4
  Summary: Python client for Together's Cloud Platform!
5
5
  License: Apache-2.0
6
6
  Author: Together AI
@@ -12,7 +12,7 @@ build-backend = "poetry.masonry.api"
12
12
 
13
13
  [tool.poetry]
14
14
  name = "together"
15
- version = "1.5.16"
15
+ version = "1.5.17"
16
16
  authors = ["Together AI <support@together.ai>"]
17
17
  description = "Python client for Together's Cloud Platform!"
18
18
  readme = "README.md"
@@ -139,7 +139,7 @@ def fine_tuning(ctx: click.Context) -> None:
139
139
  @click.option(
140
140
  "--dpo-beta",
141
141
  type=float,
142
- default=0.1,
142
+ default=None,
143
143
  help="Beta parameter for DPO training (only used when '--training-method' is 'dpo')",
144
144
  )
145
145
  @click.option(
@@ -154,7 +154,7 @@ def fine_tuning(ctx: click.Context) -> None:
154
154
  @click.option(
155
155
  "--rpo-alpha",
156
156
  type=float,
157
- default=0.0,
157
+ default=None,
158
158
  help=(
159
159
  "RPO alpha parameter of DPO training to include NLL in the loss "
160
160
  "(only used when '--training-method' is 'dpo')"
@@ -163,7 +163,7 @@ def fine_tuning(ctx: click.Context) -> None:
163
163
  @click.option(
164
164
  "--simpo-gamma",
165
165
  type=float,
166
- default=0.0,
166
+ default=None,
167
167
  help="SimPO gamma parameter (only used when '--training-method' is 'dpo')",
168
168
  )
169
169
  @click.option(
@@ -188,7 +188,7 @@ def fine_tuning(ctx: click.Context) -> None:
188
188
  @click.option(
189
189
  "--train-on-inputs",
190
190
  type=BOOL_WITH_AUTO,
191
- default="auto",
191
+ default=None,
192
192
  help="Whether to mask the user messages in conversational data or prompts in instruction data. "
193
193
  "`auto` will automatically determine whether to mask the inputs based on the data format.",
194
194
  )
@@ -229,10 +229,10 @@ def create(
229
229
  confirm: bool,
230
230
  train_on_inputs: bool | Literal["auto"],
231
231
  training_method: str,
232
- dpo_beta: float,
232
+ dpo_beta: float | None,
233
233
  dpo_normalize_logratios_by_length: bool,
234
- rpo_alpha: float,
235
- simpo_gamma: float,
234
+ rpo_alpha: float | None,
235
+ simpo_gamma: float | None,
236
236
  from_checkpoint: str,
237
237
  ) -> None:
238
238
  """Start fine-tuning"""
@@ -183,6 +183,24 @@ def create_finetune_request(
183
183
  )
184
184
  train_on_inputs = "auto"
185
185
 
186
+ if dpo_beta is not None and training_method != "dpo":
187
+ raise ValueError("dpo_beta is only supported for DPO training")
188
+ if dpo_normalize_logratios_by_length and training_method != "dpo":
189
+ raise ValueError(
190
+ "dpo_normalize_logratios_by_length=True is only supported for DPO training"
191
+ )
192
+ if rpo_alpha is not None:
193
+ if training_method != "dpo":
194
+ raise ValueError("rpo_alpha is only supported for DPO training")
195
+ if not rpo_alpha >= 0.0:
196
+ raise ValueError(f"rpo_alpha should be non-negative (got {rpo_alpha})")
197
+
198
+ if simpo_gamma is not None:
199
+ if training_method != "dpo":
200
+ raise ValueError("simpo_gamma is only supported for DPO training")
201
+ if not simpo_gamma >= 0.0:
202
+ raise ValueError(f"simpo_gamma should be non-negative (got {simpo_gamma})")
203
+
186
204
  lr_scheduler: FinetuneLRScheduler
187
205
  if lr_scheduler_type == "cosine":
188
206
  if scheduler_num_cycles <= 0.0:
File without changes
File without changes