Skip to content

chore: Add example usage to fine-tuning CLI help pages#357

Merged
blainekasten merged 2 commits into
nextfrom
blaine/dx-537-add-help-examples-for-ft-commands
May 8, 2026
Merged

chore: Add example usage to fine-tuning CLI help pages#357
blainekasten merged 2 commits into
nextfrom
blaine/dx-537-add-help-examples-for-ft-commands

Conversation

@blainekasten
Copy link
Copy Markdown
Contributor

@blainekasten blainekasten commented May 7, 2026

command output
tg ft create image
tg ft retrieve image
tg ft --help image
tg ft create --help image
tg ft download --help image

@blainekasten blainekasten force-pushed the blaine/dx-537-add-help-examples-for-ft-commands branch 2 times, most recently from 1a3e355 to b5259d0 Compare May 8, 2026 14:53
@blainekasten blainekasten requested a review from zainhas May 8, 2026 14:57
Comment thread src/together/lib/cli/utils/_help_examples.py Outdated
output_dir: OutputDirParam = None,
checkpoint_step: CheckpointStepParam = None,
checkpoint_type: CheckpointTypeParam = "merged",
checkpoint_type: CheckpointTypeParam = None,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a checkpoint type can't be None, it can only be one of: [merged | adapter | default]

lets do default here which will turn into adapter for lora finetunes or merged for full finetunes?

Suggested change
checkpoint_type: CheckpointTypeParam = None,
checkpoint_type: CheckpointTypeParam = "default",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you read the body logic below, we do resolve it to an actual value before forwarding on to the API. So we never pass nothing

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But in my experience with trying to download some lora checkpoints, the previous default was causing issues. This has worked better in my local testing with different models

@blainekasten blainekasten force-pushed the blaine/dx-537-add-help-examples-for-ft-commands branch from dd94673 to 36d7ca4 Compare May 8, 2026 16:36
@blainekasten blainekasten merged commit ad3cdb2 into next May 8, 2026
9 checks passed
@stainless-app stainless-app Bot mentioned this pull request May 8, 2026
blainekasten added a commit that referenced this pull request May 11, 2026
* chore: Switch to an async version of DownloadManager (#353)

* chore: Switch to an async version of DownloadManager

* Update src/together/lib/resources/files.py

Co-authored-by: Zain Hasan <zain_has@hotmail.com>

* Update src/together/lib/resources/files.py

Co-authored-by: Zain Hasan <zain_has@hotmail.com>

* Update src/together/lib/resources/files.py

Co-authored-by: Zain Hasan <zain_has@hotmail.com>

* Update src/together/lib/resources/files.py

Co-authored-by: Zain Hasan <zain_has@hotmail.com>

---------

Co-authored-by: Zain Hasan <zain_has@hotmail.com>

* docs(api): add .ogg, .opus, .aac to supported formats in audio transcriptions/translations

* docs(api): clarify prompt parameter support in audio transcriptions/translations

* fix(api): remove task field from audio transcription/translation responses

* feat(api): add max_tokens and temperature to eval judge parameters

* fix(client): add missing f-string prefix in file type error message

* chore: Add help examples to evals commands (#356)

* chore: Add help examples to evals commands

* Update src/together/lib/cli/api/evals/create.py

Co-authored-by: Zain Hasan <zain_has@hotmail.com>

* Update src/together/lib/cli/api/evals/create.py

Co-authored-by: Zain Hasan <zain_has@hotmail.com>

* Update src/together/lib/cli/api/evals/create.py

Co-authored-by: Zain Hasan <zain_has@hotmail.com>

---------

Co-authored-by: Zain Hasan <zain_has@hotmail.com>

* chore: Add example usage to fine-tuning CLI help pages (#357)

* chore: Add example usage to fine-tuning CLI help pages

* Update src/together/lib/cli/utils/_help_examples.py

Co-authored-by: Zain Hasan <zain_has@hotmail.com>

---------

Co-authored-by: Zain Hasan <zain_has@hotmail.com>

* chore: Add example usage for model commands (#358)

* chore: Add example usage for file commands (#359)

* chore: Add example usage for clusters commands (#360)

* codegen metadata

* codegen metadata

* feat(internal/types): support eagerly validating pydantic iterators

* docs(api): reword docstrings to present tense across resources

* fix(types): constrain endpoint parameter to literals in batches

* chore: Add usage examples for jig commands (#361)

* release: 2.13.0

---------

Co-authored-by: Blaine Kasten <blainekasten@gmail.com>
Co-authored-by: Zain Hasan <zain_has@hotmail.com>
Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants