Skip to content

Conversation

@t0278611
Copy link

@t0278611 t0278611 commented Nov 4, 2025

Solves #2604

  • added val-interval argument. Eval and checkpointing is only applied every val-interval epochs.
  • Changed float to Optional[float] in typing Scheduler step function parameter metric
  • Skipping step of base scheduler in plateau scheduler to avoid TypeError when converting None to float
  • added or last_batch so the logging during training now happens if update_idx % args.log_interval or last_batch

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

- added val-interval argument. Eval and checkpointing is only applied every val-interval epochs.
- Changed `float` to `Optional[float]` in typing Scheduler step function parameter `metric`
- Skipping step of base scheduler in plateau scheduler to avoid `TypeError` when converting `None` to `float`
- added `or last_batch` to logging logic during training to be consistent with validation
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