Add checkpoint_name_prefix to RL training Config #192
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.
Summary
Adds an optional
checkpoint_name_prefixfield to the RL training Config that prefixes all saved checkpoint names.Motivation
When running multiple experiments, checkpoints saved to Tinker are difficult to identify because they're named only by batch number (e.g.,
000042). This change allows prefixing with an experiment identifier (e.g.,my_exp_dec19_000042), making it easy to match checkpoints to WandB runs.Changes
checkpoint_name_prefix: str | None = NonetoConfigclasssave_checkpoint_and_get_sampling_clientto accept and use the prefixUsage
Config(
checkpoint_name_prefix="exp_rl_dec19",
wandb_name="exp_rl_dec19",
...
)
Backward Compatibility
Fully backward compatible - the field defaults to None, preserving existing behavior.