Skip to content

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

Open
liuyun7345 wants to merge 1 commit intohuggingface:mainfrom
liuyun7345:fix-trackio-log-step-3963
Open

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

Conversation

@liuyun7345
Copy link

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
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 !

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