Skip to main content

Launching the Chat Interface

The Chat interface lets you interact with your trained models in a browser.

Quick Start

The browser will open automatically to http://localhost:7860/inference.

Command Options

Examples

Requirements

Before launching, you need:
  • A trained model (local path or Hugging Face model ID)
  • Sufficient memory to load the model

Typical Workflow

  1. Train a model:
  2. Launch chat:
  3. Browser opens automatically to localhost:7860/inference
  4. Load your trained model from ./my-model
  5. Start chatting

Stopping the Server

Press Ctrl+C in the terminal to stop the chat server.

Troubleshooting

Another process is using port 7860. Either:
  • Stop the other process
  • Use a different port: aitraining chat --port 3000
Check:
  • Model path is correct
  • Sufficient GPU/RAM memory
  • Model format is compatible (Hugging Face format)
Use --host 0.0.0.0 to bind to all interfaces:

Next Steps

Interface Overview

Learn the chat interface

Loading Models

Load and switch models