You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b2f88c5
Browse filesBrowse the repository at this point in the historyBrowse files
feat(train): add list_hyperparameters() for pre-trainer HP discovery (#6149)
* feat(train): add list_hyperparameters() for pre-trainer HP discovery
Add a public utility function that returns available hyperparameters
for a model/technique/training_type combination without requiring a
fully constructed trainer object.
This enables tools and scripts to discover valid hyperparameter names,
defaults, and ranges before setting up training infrastructure (model
package groups, datasets, roles, etc.).
Motivation: COE 398545 identified that hardcoded HP names in downstream
consumers break when recipe templates rename parameters. Dynamic
discovery at code-generation time prevents this class of failure.
Usage:
from sagemaker.train import list_hyperparameters
hp = list_hyperparameters('model-name', 'SFT', 'LORA')
hp.get_info() # display all params
hp.get_info('learning_rate') # display one param
* test: use meta-textgeneration-llama-3-2-1b-instruct in integ tests
Switch to the same model used by ~80% of existing integ tests to
avoid deprecation risk. Llama 3.2 1B is the most battle-tested model
in the repo's test infrastructure.
---------
Co-authored-by: Joshua Towner <josh@tonwer.xyz>
0 commit comments