Skip to content

Commit 1d234c9

Browse files
authored
Add warning about the change of the default value (#165)
* Add warning about the change * unbump the version * style
1 parent 291bd97 commit 1d234c9

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/together/cli/api/finetune.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from tabulate import tabulate
77

88
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
1010

1111

1212
@click.group(name="fine-tuning")
@@ -99,6 +99,11 @@ def create(
9999

100100
click.echo(json.dumps(response.model_dump(exclude_none=True), indent=4))
101101

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+
102107

103108
@fine_tuning.command()
104109
@click.pass_context

src/together/resources/finetune.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
TogetherRequest,
1818
TrainingType,
1919
)
20-
from together.utils import normalize_key
20+
from together.utils import log_warn, normalize_key
2121

2222

2323
class FineTuning:
@@ -103,6 +103,11 @@ def create(
103103

104104
assert isinstance(response, TogetherResponse)
105105

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+
106111
return FinetuneResponse(**response.data)
107112

108113
def list(self) -> FinetuneList:

0 commit comments

Comments
 (0)