Inference Mode
Run inference using your trained models from the CLI.LLM Inference
Basic Usage
Multiple Prompts
Comma-separated:Generation Parameters
Parameters
CLI vs Chat UI defaults differ: CLI uses temperature=1.0 and top_p=1.0 for more deterministic output, while the Chat UI defaults to temperature=0.7 and top_p=0.95 for more natural conversation.
Output
Results are saved to JSON:Chat Interface
For interactive testing, use the Chat interface:http://localhost:7860/inference in your browser. The Chat UI lets you load and test any local or Hub model interactively.
Using Hub Models
Test Hugging Face models directly:API Inference
The AITraining API provides batch inference endpoints:Batch Inference Request
API Parameters
API defaults differ from CLI: The API uses max_new_tokens=100 (not 256) and temperature=0.7 (not 1.0) by default.
Batch Inference
Script Example
Performance Tips
GPU Acceleration
Ensure CUDA is available:Memory Optimization
For large models:Batching
For many prompts, batch processing is faster:Next Steps
Model Serving
Serve models as API
Chat Interface
Interactive testing