Which Interface to Use
AI Training offers three ways to work. Pick based on your needs.Quick Comparison
| Interface | Best For | What It Does |
|---|---|---|
| CLI | Training models | Run training jobs, automation |
| Chat | Testing models | Interactive chat with trained models |
| API | Building apps | Integrate training into applications |
The Three Options
CLI
Training modelsType commands to train models. Perfect for automation and scripts.
aitraining llm --train ...Chat
Testing modelsInteractive browser interface to test trained models.
aitraining chatPython API
Building appsImport and use in Python code.
from autotrain.trainers.clm import trainSimple Decision Guide
Training a model? → Use the CLI Testing a trained model? → Use the Chat interface Building an application? → Use the Python APITypical Workflow
Most users follow this pattern:- Train with CLI -
aitraining llm --train --model meta-llama/Llama-3.2-1B --data-path ./data - Test with Chat -
aitraining chat→ open browser → try your model - Iterate - Adjust training, test again
- Deploy with API - Integrate into your application
They All Work Together
The interfaces complement each other:- CLI handles the heavy lifting (training)
- Chat lets you verify results quickly
- API enables production integration
Combining Interfaces
You’re not locked into one:- Train with CLI → Test with Chat → Deploy with API
- Experiment with API → Automate with CLI
- Quick test with Chat → Full training with CLI