AutoTrain CLI and config routing
Use this sub-skill for command discovery, package-level checks, autotrain --config, autotrain setup, and deciding which task-specific sub-skill should own a request.
Safe entry points
autotrain --help
autotrain --version
autotrain <subcommand> --help
autotrain --config path/to/config.yml
autotrain setup --help
Bundled helpers from the root skill:
../../scripts/check_install.py — import/version check.
../../scripts/inspect_cli.py — run CLI help through the current interpreter.
../../scripts/validate_config.py — parse a YAML config without launching training.
Routing rules
- Start with the top-level help or config parser if the user is not sure which task family they need.
- If the request is
autotrain --config, validate the file first, then route by parsed task and backend.
- If the task is LLM-like (
llm, YAML aliases such as llm-sft/llm-dpo, or app/API keys such as llm:sft/llm:dpo), go to ../llm-training/.
- If the task is text, token, seq2seq, extractive QA, sentence-transformers, or tabular, go to
../text-and-tabular/.
- If the task is image classification/regression, object detection, or VLM, go to
../vision-multimodal/.
- If the user asks about
app, api, spacerunner, jobs, logs, or hosted backends, go to ../app-backends/.
- If the user asks about
autotrain tools, go to ../model-tools/.
Important exception: VLM is supported in the task registry/app/config path but is not a registered top-level autotrain vlm command in this checkout.
Config workflow
For a YAML config:
python skills/disco/autotrain-advanced/scripts/validate_config.py path/to/config.yml
Then check:
task: the owning trainer family.
backend: local, local-cli, local-ui, spaces-*, ep-*, ngc-*, or nvcf-*.
params: task-specific fields and column mappings.
Do not call AutoTrainConfigParser(...).run() until the user explicitly wants to launch a job.
Setup command caution
autotrain setup is not a passive inspection command. It mutates the environment by changing xformers; with --update-torch it installs CUDA 12.1 PyTorch wheels. Use it only when the user explicitly wants this environment change.
References
references/workflows.md — CLI inventory and config decision flow.
references/troubleshooting.md — invalid subcommands, parser errors, and setup/environment problems.
1---2name: cli-config3description: "Operate AutoTrain Advanced top-level CLI, setup command, config4 parser, and task routing."5disable-model-invocation: true6metadata:7 source: https://skillmd.com/skills/vectorspacelab/cli-config8 disco-role: operating9 parent-skill: autotrain-advanced10license: Apache 2.011---1213# AutoTrain CLI and config routing1415Use this sub-skill for command discovery, package-level checks, `autotrain --config`, `autotrain setup`, and deciding which task-specific sub-skill should own a request.1617## Safe entry points1819- `autotrain --help`20- `autotrain --version`21- `autotrain <subcommand> --help`22- `autotrain --config path/to/config.yml`23- `autotrain setup --help`2425Bundled helpers from the root skill:2627- `../../scripts/check_install.py` — import/version check.28- `../../scripts/inspect_cli.py` — run CLI help through the current interpreter.29- `../../scripts/validate_config.py` — parse a YAML config without launching training.3031## Routing rules32331. Start with the top-level help or config parser if the user is not sure which task family they need.342. If the request is `autotrain --config`, validate the file first, then route by parsed `task` and `backend`.353. If the task is LLM-like (`llm`, YAML aliases such as `llm-sft`/`llm-dpo`, or app/API keys such as `llm:sft`/`llm:dpo`), go to `../llm-training/`.364. If the task is text, token, seq2seq, extractive QA, sentence-transformers, or tabular, go to `../text-and-tabular/`.375. If the task is image classification/regression, object detection, or VLM, go to `../vision-multimodal/`.386. If the user asks about `app`, `api`, `spacerunner`, jobs, logs, or hosted backends, go to `../app-backends/`.397. If the user asks about `autotrain tools`, go to `../model-tools/`.4041Important exception: VLM is supported in the task registry/app/config path but is not a registered top-level `autotrain vlm` command in this checkout.4243## Config workflow4445For a YAML config:4647```bash48python skills/disco/autotrain-advanced/scripts/validate_config.py path/to/config.yml49```5051Then check:5253- `task`: the owning trainer family.54- `backend`: `local`, `local-cli`, `local-ui`, `spaces-*`, `ep-*`, `ngc-*`, or `nvcf-*`.55- `params`: task-specific fields and column mappings.5657Do not call `AutoTrainConfigParser(...).run()` until the user explicitly wants to launch a job.5859## Setup command caution6061`autotrain setup` is not a passive inspection command. It mutates the environment by changing `xformers`; with `--update-torch` it installs CUDA 12.1 PyTorch wheels. Use it only when the user explicitly wants this environment change.6263## References6465- `references/workflows.md` — CLI inventory and config decision flow.66- `references/troubleshooting.md` — invalid subcommands, parser errors, and setup/environment problems.