Which Interface to Use
AI Training offers three ways to work. Pick based on your needs.Quick Comparison
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
Migration is Easy
The interfaces share the same underlying settings: CLI uses flags → API uses parametersNext Steps
Ready to choose? Dive into your interface:When to Use CLI
Command line training
When to Use Chat
Testing models
When to Use API
Python integration