Skip to content

Fix missing f-string in logging - #1032

Merged
danielvegamyhre merged 1 commit into
pytorch:mainfrom
danielvegamyhre:fstring
Mar 29, 2025
Merged

danielvegamyhre merged 1 commit into
pytorch:mainfrom
danielvegamyhre:fstring

Conversation

@danielvegamyhre

Copy link
Copy Markdown
Contributor

Summary

I noticed this log line when running a torchtitan training run, which seemed to indicate a missing f-string:

Training starts at step {self.step + 1}.

I took a look at the code and it does seem to be a case of accidentally using a string literal instead of f-string, so I fixed it.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Mar 29, 2025

@lessw2020 lessw2020 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

after a long and extensive review - lgtm.
Hard to believe this slipped in but thanks for fixing it!

@danielvegamyhre
danielvegamyhre merged commit ecf26c8 into pytorch:main Mar 29, 2025
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 13, 2026
### Summary

I noticed this log line when running a torchtitan training run, which
seemed to indicate a missing f-string:

`Training starts at step {self.step + 1}.`

I took a look at the code and it does seem to be a case of accidentally
using a string literal instead of f-string, so I fixed it.
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 25, 2026
### Summary

I noticed this log line when running a torchtitan training run, which
seemed to indicate a missing f-string:

`Training starts at step {self.step + 1}.`

I took a look at the code and it does seem to be a case of accidentally
using a string literal instead of f-string, so I fixed it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants