Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
README.md draft
Roland Tannous0bada7e758a4
diff --git a/README.md b/README.mdindex 5270b9aaf63..4d2092b3a98 100644--- a/README.md+++ b/README.md@@ -1 +1,144 @@-# new-ui-prototype+<p align="center">+ <img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20logo%20white%20text.png" alt="Unsloth Studio" width="400"/>+</p>++<h3 align="center">π¦₯ Unsloth Studio</h3>++<p align="center">+ A modern, full-stack web interface for fine-tuning, managing, and chatting with large language models β locally or in the cloud.+</p>++<p align="center">+ <a href="#features">Features</a> β’+ <a href="#quick-start">Quick Start</a> β’+ <a href="#api-reference">API Reference</a> β’+ <a href="#project-structure">Project Structure</a>+</p>++---++## Features++| Area | Capabilities |+|---|---|+| **Training** | Configure and launch LoRA / QLoRA fine-tuning jobs with real-time SSE progress streaming, live loss charts, and one-click stop / resume |+| **Model Management** | Browse, load, and manage Hugging Face hub models and local checkpoints |+| **Inference** | Interactive chat playground for testing fine-tuned models |+| **Dataset Tools** | Upload, preview, and prepare datasets (JSON, CSV, Parquet, PDF, DOCX) |+| **Export** | Export & push trained adapters to the Hugging Face Hub |+| **Auth** | Token-based authentication with JWT access / refresh flow and first-time setup token |++## Quick Start++### One-command setup++```bash+bash setup.sh+```++This script will:+1. Install **Node.js β₯ 20** via nvm (if needed)+2. Build the frontend to `studio/frontend/dist`+3. Create a Python virtual environment and install all dependencies (including `unsloth`)+4. Register a convenient `unsloth-ui` shell alias++### Launch the studio++```bash+# After setup, open a new terminal (or source ~/.bashrc), then:+unsloth-ui -H 0.0.0.0 -p 8000+```++On **first launch**, a one-time setup token is printed to the console. Use it in the browser to create your admin account.++## API Reference++All endpoints require a valid JWT `Authorization: Bearer <token>` header (except `/api/auth/*` and `/api/health`).++| Method | Endpoint | Description |+|---|---|---|+| `GET` | `/api/health` | Health check |+| `GET` | `/api/system` | System info (GPU, CPU, memory) |+| `POST` | `/api/auth/signup` | Create account (requires setup token on first run) |+| `POST` | `/api/auth/login` | Login and receive JWT tokens |+| `POST` | `/api/auth/refresh` | Refresh an expired access token |+| `GET` | `/api/auth/status` | Check if auth is initialized |+| `POST` | `/api/train/start` | Start a training job |+| `POST` | `/api/train/stop` | Stop a running training job |+| `POST` | `/api/train/reset` | Reset training state |+| `GET` | `/api/train/status` | Get current training status |+| `GET` | `/api/train/metrics` | Get training metrics (loss, LR, steps) |+| `GET` | `/api/train/stream` | SSE stream of real-time training progress |+| `GET` | `/api/models/` | List available models |+| `POST` | `/api/inference/chat` | Send a chat message for inference |+| `GET` | `/api/datasets/` | List / manage datasets |++> Full interactive docs are available at `/docs` (Swagger UI) and `/redoc` when the server is running.++## CLI Commands++The Unsloth CLI (`cli.py`) provides the following commands:++```+Usage: cli.py [COMMAND]++Commands:+ train Fine-tune a model+ inference Run inference on a trained model+ export Export a trained adapter+ list-checkpoints List saved checkpoints+ ui Launch the Unsloth Studio web UI+ studio Launch the studio (alias)+```++## Project Structure++```+new-ui-prototype/+βββ cli.py # CLI entry point+βββ cli/ # Typer CLI commands+β βββ commands/+β βββ train.py+β βββ inference.py+β βββ export.py+β βββ ui.py+β βββ studio.py+βββ setup.sh # One-command bootstrap script+βββ studio/+ βββ backend/+ β βββ main.py # FastAPI app & middleware+ β βββ run.py # Server launcher (uvicorn)+ β βββ auth/ # Auth storage & JWT logic+ β βββ routes/ # API route handlers+ β β βββ training.py+ β β βββ models.py+ β β βββ inference.py+ β β βββ datasets.py+ β β βββ auth.py+ β βββ models/ # Pydantic request/response schemas+ β βββ core/ # Training engine & config+ β βββ utils/ # Hardware detection, helpers+ β βββ requirements.txt+ βββ frontend/+ β βββ src/+ β β βββ features/ # Feature modules+ β β β βββ auth/ # Login / signup flow+ β β β βββ training/ # Training config & monitoring+ β β β βββ studio/ # Main studio workspace+ β β β βββ chat/ # Inference chat UI+ β β β βββ export/ # Model export flow+ β β β βββ onboarding/# Onboarding wizard+ β β βββ components/ # Shared UI components (shadcn)+ β β βββ hooks/ # Custom React hooks+ β β βββ stores/ # Zustand state stores+ β β βββ types/ # TypeScript type definitions+ β βββ package.json+ β βββ vite.config.ts+ βββ tests/ # Backend test suite+```++## License++This project is licensed under the [GNU Affero General Public License v3.0 (AGPL-3.0)](https://www.gnu.org/licenses/agpl-3.0.html).++Copyright Β© 2026 Unsloth AI.