together 1.2.5__tar.gz → 1.2.7__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 (55) hide show
  1. {together-1.2.5 → together-1.2.7}/PKG-INFO +1 -1
  2. {together-1.2.5 → together-1.2.7}/pyproject.toml +2 -2
  3. {together-1.2.5 → together-1.2.7}/src/together/cli/api/finetune.py +7 -2
  4. {together-1.2.5 → together-1.2.7}/src/together/resources/finetune.py +14 -3
  5. {together-1.2.5 → together-1.2.7}/LICENSE +0 -0
  6. {together-1.2.5 → together-1.2.7}/README.md +0 -0
  7. {together-1.2.5 → together-1.2.7}/src/together/__init__.py +0 -0
  8. {together-1.2.5 → together-1.2.7}/src/together/abstract/__init__.py +0 -0
  9. {together-1.2.5 → together-1.2.7}/src/together/abstract/api_requestor.py +0 -0
  10. {together-1.2.5 → together-1.2.7}/src/together/cli/__init__.py +0 -0
  11. {together-1.2.5 → together-1.2.7}/src/together/cli/api/__init__.py +0 -0
  12. {together-1.2.5 → together-1.2.7}/src/together/cli/api/chat.py +0 -0
  13. {together-1.2.5 → together-1.2.7}/src/together/cli/api/completions.py +0 -0
  14. {together-1.2.5 → together-1.2.7}/src/together/cli/api/files.py +0 -0
  15. {together-1.2.5 → together-1.2.7}/src/together/cli/api/images.py +0 -0
  16. {together-1.2.5 → together-1.2.7}/src/together/cli/api/models.py +0 -0
  17. {together-1.2.5 → together-1.2.7}/src/together/cli/cli.py +0 -0
  18. {together-1.2.5 → together-1.2.7}/src/together/client.py +0 -0
  19. {together-1.2.5 → together-1.2.7}/src/together/constants.py +0 -0
  20. {together-1.2.5 → together-1.2.7}/src/together/error.py +0 -0
  21. {together-1.2.5 → together-1.2.7}/src/together/filemanager.py +0 -0
  22. {together-1.2.5 → together-1.2.7}/src/together/legacy/__init__.py +0 -0
  23. {together-1.2.5 → together-1.2.7}/src/together/legacy/base.py +0 -0
  24. {together-1.2.5 → together-1.2.7}/src/together/legacy/complete.py +0 -0
  25. {together-1.2.5 → together-1.2.7}/src/together/legacy/embeddings.py +0 -0
  26. {together-1.2.5 → together-1.2.7}/src/together/legacy/files.py +0 -0
  27. {together-1.2.5 → together-1.2.7}/src/together/legacy/finetune.py +0 -0
  28. {together-1.2.5 → together-1.2.7}/src/together/legacy/images.py +0 -0
  29. {together-1.2.5 → together-1.2.7}/src/together/legacy/models.py +0 -0
  30. {together-1.2.5 → together-1.2.7}/src/together/resources/__init__.py +0 -0
  31. {together-1.2.5 → together-1.2.7}/src/together/resources/chat/__init__.py +0 -0
  32. {together-1.2.5 → together-1.2.7}/src/together/resources/chat/completions.py +0 -0
  33. {together-1.2.5 → together-1.2.7}/src/together/resources/completions.py +0 -0
  34. {together-1.2.5 → together-1.2.7}/src/together/resources/embeddings.py +0 -0
  35. {together-1.2.5 → together-1.2.7}/src/together/resources/files.py +0 -0
  36. {together-1.2.5 → together-1.2.7}/src/together/resources/images.py +0 -0
  37. {together-1.2.5 → together-1.2.7}/src/together/resources/models.py +0 -0
  38. {together-1.2.5 → together-1.2.7}/src/together/together_response.py +0 -0
  39. {together-1.2.5 → together-1.2.7}/src/together/types/__init__.py +0 -0
  40. {together-1.2.5 → together-1.2.7}/src/together/types/abstract.py +0 -0
  41. {together-1.2.5 → together-1.2.7}/src/together/types/chat_completions.py +0 -0
  42. {together-1.2.5 → together-1.2.7}/src/together/types/common.py +0 -0
  43. {together-1.2.5 → together-1.2.7}/src/together/types/completions.py +0 -0
  44. {together-1.2.5 → together-1.2.7}/src/together/types/embeddings.py +0 -0
  45. {together-1.2.5 → together-1.2.7}/src/together/types/error.py +0 -0
  46. {together-1.2.5 → together-1.2.7}/src/together/types/files.py +0 -0
  47. {together-1.2.5 → together-1.2.7}/src/together/types/finetune.py +0 -0
  48. {together-1.2.5 → together-1.2.7}/src/together/types/images.py +0 -0
  49. {together-1.2.5 → together-1.2.7}/src/together/types/models.py +0 -0
  50. {together-1.2.5 → together-1.2.7}/src/together/utils/__init__.py +0 -0
  51. {together-1.2.5 → together-1.2.7}/src/together/utils/_log.py +0 -0
  52. {together-1.2.5 → together-1.2.7}/src/together/utils/api_helpers.py +0 -0
  53. {together-1.2.5 → together-1.2.7}/src/together/utils/files.py +0 -0
  54. {together-1.2.5 → together-1.2.7}/src/together/utils/tools.py +0 -0
  55. {together-1.2.5 → together-1.2.7}/src/together/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: together
3
- Version: 1.2.5
3
+ Version: 1.2.7
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
@@ -12,7 +12,7 @@ build-backend = "poetry.masonry.api"
12
12
 
13
13
  [tool.poetry]
14
14
  name = "together"
15
- version = "1.2.5"
15
+ version = "1.2.7"
16
16
  authors = [
17
17
  "Together AI <support@together.ai>"
18
18
  ]
@@ -50,7 +50,7 @@ optional = true
50
50
 
51
51
  [tool.poetry.group.quality.dependencies]
52
52
  black = ">=23.1,<25.0"
53
- ruff = ">=0.3.2,<0.5.0"
53
+ ruff = ">=0.3.2,<0.6.0"
54
54
  types-tqdm = "^4.65.0.0"
55
55
  types-tabulate = "^0.9.0.3"
56
56
  pre-commit = "3.5.0"
@@ -6,7 +6,7 @@ from click.core import ParameterSource # type: ignore[attr-defined]
6
6
  from tabulate import tabulate
7
7
 
8
8
  from together import Together
9
- from together.utils import finetune_price_to_dollars, parse_timestamp
9
+ from together.utils import finetune_price_to_dollars, log_warn, parse_timestamp
10
10
 
11
11
 
12
12
  @click.group(name="fine-tuning")
@@ -26,7 +26,7 @@ def fine_tuning(ctx: click.Context) -> None:
26
26
  @click.option(
27
27
  "--n-checkpoints", type=int, default=1, help="Number of checkpoints to save"
28
28
  )
29
- @click.option("--batch-size", type=int, default=32, help="Train batch size")
29
+ @click.option("--batch-size", type=int, default=16, help="Train batch size")
30
30
  @click.option("--learning-rate", type=float, default=1e-5, help="Learning rate")
31
31
  @click.option(
32
32
  "--lora/--no-lora",
@@ -99,6 +99,11 @@ def create(
99
99
 
100
100
  click.echo(json.dumps(response.model_dump(exclude_none=True), indent=4))
101
101
 
102
+ # TODO: Remove it after the 21st of August
103
+ log_warn(
104
+ "The default value of batch size has been changed from 32 to 16 since together version >= 1.2.6"
105
+ )
106
+
102
107
 
103
108
  @fine_tuning.command()
104
109
  @click.pass_context
@@ -17,7 +17,7 @@ from together.types import (
17
17
  TogetherRequest,
18
18
  TrainingType,
19
19
  )
20
- from together.utils import normalize_key
20
+ from together.utils import log_warn, normalize_key
21
21
 
22
22
 
23
23
  class FineTuning:
@@ -31,9 +31,9 @@ class FineTuning:
31
31
  model: str,
32
32
  n_epochs: int = 1,
33
33
  n_checkpoints: int | None = 1,
34
- batch_size: int | None = 32,
34
+ batch_size: int | None = 16,
35
35
  learning_rate: float | None = 0.00001,
36
- lora: bool = True,
36
+ lora: bool = False,
37
37
  lora_r: int | None = 8,
38
38
  lora_dropout: float | None = 0,
39
39
  lora_alpha: float | None = 8,
@@ -103,6 +103,17 @@ class FineTuning:
103
103
 
104
104
  assert isinstance(response, TogetherResponse)
105
105
 
106
+ # TODO: Remove it after the 21st of August
107
+ log_warn(
108
+ "The default value of batch size has been changed from 32 to 16 since together version >= 1.2.6"
109
+ )
110
+
111
+ # TODO: Remove after next LoRA default change
112
+ log_warn(
113
+ "Some of the jobs run _directly_ from the together-python library might be trained using LoRA adapters. "
114
+ "The version range when this change occurred is from 1.2.3 to 1.2.6."
115
+ )
116
+
106
117
  return FinetuneResponse(**response.data)
107
118
 
108
119
  def list(self) -> FinetuneList:
File without changes
File without changes
File without changes