Skip to content

fix(cli): Fix CLI FT issues#304

Merged
nikita-smetanin merged 1 commit intomainfrom
nikita/ft_fixes
Mar 18, 2026
Merged

fix(cli): Fix CLI FT issues#304
nikita-smetanin merged 1 commit intomainfrom
nikita/ft_fixes

Conversation

@nikita-smetanin
Copy link
Contributor

  • Fix checkpoint step propagation
  • Fix minor issues with parameters and docstrings


for arg in default_values:
arg_source = ctx.get_parameter_source("arg") # type: ignore[attr-defined]
arg_source = ctx.get_parameter_source(arg) # type: ignore[attr-defined]
Copy link
Contributor

Choose a reason for hiding this comment

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

lol that should have been more obvious in the past

client: Together = ctx.obj

checkpoints = client.fine_tuning.list_checkpoints(fine_tune_id)
checkpoints.data = checkpoints.data or []
Copy link
Contributor

Choose a reason for hiding this comment

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

could we fix this server side to make sure data is always returned as an array? I'm fine with having this in here temporarily. But the api should be stable in it's response shape

Copy link
Contributor

@blainekasten blainekasten left a comment

Choose a reason for hiding this comment

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

Looks good to me!


rprint(JSON.from_data(response.model_dump(exclude_none=True), default=datetime_serializer))
progress_text = generate_progress_bar(response, datetime.now().astimezone(), use_rich=True)
progress_text = generate_progress_bar(response, datetime.now(timezone.utc), use_rich=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There was some complaint from claude about issues on systems with no timezone set.

@nikita-smetanin nikita-smetanin merged commit 3f03f51 into main Mar 18, 2026
8 of 10 checks passed
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.

3 participants