Command Structure
The AITraining CLI follows a consistent pattern for all commands.Basic Syntax
Available Commands
| Command | Description |
|---|---|
llm | Train large language models (LLMs) |
chat | Launch chat interface for inference |
api | Start the training API server |
text-classification | Train text classification models |
text-regression | Train text regression models |
image-classification | Train image classification models |
image-regression | Train image regression models |
token-classification | Train NER/token classification |
seq2seq | Train sequence-to-sequence models |
tabular | Train tabular data models |
sentence-transformers | Train sentence embedding models |
object-detection | Train object detection models |
vlm | Train vision-language models |
extractive-qa | Train extractive QA models |
tools | Utility tools: merge-llm-adapter, convert_to_kohya |
setup | Initial setup and configuration |
spacerunner | Run training on Hugging Face Spaces |
SpaceRunner requirements: The
spacerunner command requires --project-name, --script-path, --username, --token, and --backend to be specified.Getting Help
General Help
Command-Specific Help
Trainer-Specific Help
For LLM training, see parameters for a specific trainer:Global Options
These options are truly global (work at the top level):| Option | Description |
|---|---|
--help, -h | Show help message |
--version, -v | Show version |
--config | Load from YAML config file |
The
--backend option is available on most training commands but is registered per-command, not globally. See Global Options for backend details.