Allow train.max_steps for profiling runs #2193
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #2187
What does this PR do?
Allows
--train.max_stepsto be passed via the CLI for pretraining runs.Previously, this argument caused a validation error in
pretrain.py.The argument is now accepted and emits a warning clarifying that it is intended
for profiling, debugging, or minimal sanity-check runs.
Motivation
Users may want to run a very small number of training steps (e.g.
max_steps=1)to measure memory usage or execution time without committing to full pretraining.
Changes
train.max_stepsfrom the unsupported argument list inpretrain.pytrain.max_stepsis provided to clarify intended usageTests
HF_TOKENdatasets,bitsandbytes,lm_eval) not run locally