CLI Reference¶
Usage¶
pretrain-experiments <config.yaml> [options]
Or equivalently:
python -m pretrain_experiments <config.yaml> [options]
Flags¶
Flag |
Description |
|---|---|
|
Resume a previous W&B run by its run ID. Also use this to add new evaluations to an existing run. |
|
Append the checkpoint step number to the W&B run name. |
|
Delete the experiment output folder before starting. |
|
Process configs and print commands without running training or evaluation scripts. |
Config overrides¶
Any config parameter can be overridden from the command line using dot notation. The override value replaces the corresponding key in the parsed YAML config.
pretrain-experiments config.yaml --training.num_steps 100
pretrain-experiments config.yaml --wandb.name my-run
pretrain-experiments config.yaml --model.checkpoint_step 5000
Multiple overrides can be combined:
pretrain-experiments config.yaml --training.num_steps 50 --wandb.name short-run
Environment variables¶
These variables are set automatically at startup and can be used in config files via ${VAR_NAME}:
Variable |
Description |
|---|---|
|
Root directory of the pretrain-experiments repository |
|
Root of the OLMo repository (if |
|
Root of the OLMo-Core repository (if |
These variables must be set by the user as needed:
Variable |
Description |
Default |
|---|---|---|
|
Base directory for experiment outputs |
|
|
Path to OLMo-Private repository |
|
|
Path to the |
— |
|
Path to inference engine defaults YAML file |
— |