Skip to content

Update example command lines in the module docstring of train_sft.py to remove weight_dtype=bfloat16 argument; this shouldn't be the default weight_dtype for SFT because of potential loss of gradient updates w/master weights in bfloat16. - #4710

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_958383174
Aug 4, 2026

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Update example command lines in the module docstring of train_sft.py to remove weight_dtype=bfloat16 argument; this shouldn't be the default weight_dtype for SFT because of potential loss of gradient updates w/master weights in bfloat16.

@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@copybara-service
copybara-service Bot force-pushed the test_958383174 branch 3 times, most recently from d0d0b34 to 704728a Compare August 4, 2026 18:39
…to remove weight_dtype=bfloat16 argument; this shouldn't be the default weight_dtype for SFT because of potential loss of gradient updates w/master weights in bfloat16.

PiperOrigin-RevId: 959272551
@copybara-service
copybara-service Bot requested a review from shuningjin as a code owner August 4, 2026 22:49
@copybara-service
copybara-service Bot merged commit 5ae391c into main Aug 4, 2026
@copybara-service
copybara-service Bot deleted the test_958383174 branch August 4, 2026 22:49
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.

1 participant