Repo Models & Inference

unslothai/unsloth

Desktop app, web UI (Studio) and Python library to run, fine-tune and export LLMs, diffusion and audio models locally on Windows, macOS, Linux and WSL.

  • 80.2k GitHub stars
  • Python
  • ⚖️ Apache-2.0
  • 🎯 Intermediate

Last verified: repo last pushed

curl -fsSL https://unsloth.ai/install.sh | sh
unslothai/unsloth preview image

What it is

Unsloth is a desktop app for running and training models, also available as Unsloth Studio (a web UI) and Unsloth Core (a code-based Python install). It can run and train LLMs, MLX, GGUF, diffusion, embedding and audio models, and can serve them through an OpenAI-compatible API. It supports fine-tuning methods such as LoRA, QLoRA, full fine tuning, RL, GRPO and DPO, and can export to GGUF, NVFP4, FP8 and other formats.

Who it's for

  • Developers who want to run LLMs and diffusion models locally with a UI
  • Practitioners fine-tuning models (LoRA, QLoRA, GRPO, DPO) with lower VRAM use
  • Users who want local models behind Claude Code, Codex, MCP or an OpenAI-compatible API
  • Teams wanting to serve local models over LAN or via a Cloudflare HTTPS link

Requirements

Requirements

  • Windows, Linux, WSL or macOS
  • Supports multi-GPU setups, NVIDIA, AMD, Intel GPUs, CPUs and the Vulkan backend
  • Unsloth Core install uses uv with Python 3.13 (per the install commands)
  • Docker route: NVIDIA GPU access on Linux is set up once with the provided install_nvidia_toolkit.sh script; Windows uses Docker Desktop with WSL 2

Setup

  1. Install Unsloth Studio on macOS, Linux or WSL

    Run the install script. On macOS you can alternatively install the desktop app with Homebrew.

    bash
    curl -fsSL https://unsloth.ai/install.sh | sh
  2. Install on Windows

    Run the PowerShell installer.

    powershell
    irm https://unsloth.ai/install.ps1 | iex
  3. Launch Studio

    Start the web UI after installation.

    bash
    unsloth studio
  4. Install Unsloth Core (Linux, WSL)

    Code-based install using uv and a virtual environment.

    bash
    curl -LsSf https://astral.sh/uv/install.sh | sh
    uv venv unsloth_env --python 3.13
    source unsloth_env/bin/activate
    uv pip install unsloth --torch-backend=auto
  5. Run with Docker

    Run the unsloth/unsloth image with GPU access, exposing Studio on port 8000 and JupyterLab on 8888.

    bash
    docker run -d --name unsloth --gpus all --ipc=host \
      -p 8000:8000 -p 8888:8888 \
      -v "$PWD":/workspace/host \
      -v "$HOME/.cache/huggingface":/workspace/.cache/huggingface \
      -v unsloth-studio:/opt/unsloth-studio \
      unsloth/unsloth && docker logs -f unsloth

Examples

Connect Claude Code to a local model

bash
bash
unsloth start claude --model unsloth/Qwen3.8-27B-GGUF:UD-Q4_K_XL

What it does: Unsloth Start connects Claude Code to a local model with one command.

Expose Studio via secure Cloudflare link

bash
bash
unsloth studio --secure

What it does: Creates a free Cloudflare link serving Unsloth that is accessible globally. The README warns that server-side tools are on by default, so keep your password safe or use --disable-tools.

Headless start with a password

bash
bash
UNSLOTH_STUDIO_PASSWORD='your-strong-password' unsloth studio --secure   # via env var

What it does: Sets the admin password non-interactively for headless starts.

Force the Vulkan backend at install

bash
bash
export UNSLOTH_LLAMA_CPP_BACKEND=vulkan   # or cpu, cuda, rocm, auto
curl -fsSL https://unsloth.ai/install.sh | sh

What it does: Overrides the llama.cpp backend during installation; other options are cpu, cuda, rocm or auto.

Skip PyTorch (GGUF-only mode)

bash
bash
curl -fsSL https://unsloth.ai/install.sh | UNSLOTH_NO_TORCH=1 sh

What it does: Installs without PyTorch for GGUF-only use.

Pros & cons

Pros

  • Pro:Multiple install paths: native desktop app, web UI, pip-style Core and Docker
  • Pro:Covers both inference and training, including LoRA, QLoRA, GRPO, DPO and FP8, with export to GGUF and other formats
  • Pro:Serves an OpenAI-compatible API and integrates with agents such as Claude Code, Codex and MCP via unsloth start
  • Pro:Broad hardware support: NVIDIA, AMD, Intel, CPU, Vulkan and multi-GPU

Cons

  • Con:Server-side tools are on by default, so exposing it (LAN or remote) requires care with passwords or --disable-tools
  • Con:Windows Core install needs a specific two-step process (torchao first) or it can silently resolve an old Unsloth version
  • Con:AMD uses a separate Docker image and AMD/Intel installs follow separate guides, adding setup complexity

Images