Skip to content

Commit

Permalink
Add warning about the change of the default value (#165)
Browse files Browse the repository at this point in the history
* Add warning about the change

* unbump the version

* style
  • Loading branch information
artek0chumak authored Aug 7, 2024
1 parent 291bd97 commit 1d234c9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/together/cli/api/finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from tabulate import tabulate

from together import Together
from together.utils import finetune_price_to_dollars, parse_timestamp
from together.utils import finetune_price_to_dollars, log_warn, parse_timestamp


@click.group(name="fine-tuning")
Expand Down Expand Up @@ -99,6 +99,11 @@ def create(

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

# TODO: Remove it after the 21st of August
log_warn(
"The default value of batch size has been changed from 32 to 16 since together version >= 1.2.6"
)


@fine_tuning.command()
@click.pass_context
Expand Down
7 changes: 6 additions & 1 deletion src/together/resources/finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
TogetherRequest,
TrainingType,
)
from together.utils import normalize_key
from together.utils import log_warn, normalize_key


class FineTuning:
Expand Down Expand Up @@ -103,6 +103,11 @@ def create(

assert isinstance(response, TogetherResponse)

# TODO: Remove it after the 21st of August
log_warn(
"The default value of batch size has been changed from 32 to 16 since together version >= 1.2.6"
)

return FinetuneResponse(**response.data)

def list(self) -> FinetuneList:
Expand Down

0 comments on commit 1d234c9

Please sign in to comment.