Skip to content

fix: pass step parameter in TrackioTracker.log()#3970

Merged
SunMarc merged 1 commit intohuggingface:mainfrom
liuyun7345:fix-trackio-log-step-3963
Apr 9, 2026
Merged

fix: pass step parameter in TrackioTracker.log()#3970
SunMarc merged 1 commit intohuggingface:mainfrom
liuyun7345:fix-trackio-log-step-3963

Conversation

@liuyun7345
Copy link
Copy Markdown
Contributor

What does this PR do?

TrackioTracker.log() accepts a step parameter but never forwards it to self.run.log(), causing step values to be silently auto-incremented instead of using the user-provided values.

All other trackers (WandB, TensorBoard, CometML, Aim, MLflow, SwanLab) correctly pass step=step to their respective logging backends. This was simply missed when TrackioTracker was added.

Fix

One-line change: pass step=step to self.run.log() in TrackioTracker.log().

Before submitting

Fixes #3963

TrackioTracker.log() accepts a step parameter but never forwards it
to self.run.log(), causing step values to be silently auto-incremented
instead of using the user-provided values.

All other trackers (WandB, TensorBoard, CometML, Aim, MLflow, SwanLab)
correctly pass step=step. This was simply missed when TrackioTracker
was added.

Fixes huggingface#3963

Made-with: Cursor
Copy link
Copy Markdown
Member

@SunMarc SunMarc left a comment

Choose a reason for hiding this comment

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

Thanks !

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

@SunMarc SunMarc merged commit 94f975d into huggingface:main Apr 9, 2026
25 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.

[Bug] TrackioTracker.log() ignores step parameter

2 participants