Skip to content

CLI

Install the package, then use the trloom entry point (or python -m trloom).

trloom --version
trloom -v|--verbose <command>

trloom methods

List TRL training methods discovered in this environment, including experimental ones when available.

trloom methods

trloom validate

Validate a YAML config without training. Prints a JSON summary:

trloom validate path/to/config.yaml

Typical fields: ok, method, trainer, config_class, experimental, output_dir, wandb_enabled, modal_enabled.

trloom run

Run a fine-tuning job from YAML.

trloom run path/to/config.yaml
trloom run path/to/config.yaml --modal
trloom run path/to/config.yaml --local
Flag Behavior
--modal Force Modal execution (overrides YAML)
--local Force local execution (overrides YAML)

--modal and --local are mutually exclusive.

trloom modal-script

Write a standalone Modal entrypoint for a config:

trloom modal-script path/to/config.yaml -o run_modal.py
python -m modal run run_modal.py

If -o / --output is omitted, a default script path is used.