AI Card Bao AICARDBAO.COM
Home / 开源 / Unsloth
AI TOOL / #12810

Unsloth

An open-source local desktop application designed for running and training LLMs and diffusion models on the user's computer.

Introduction

Unsloth is the first desktop app to run and train models.

Features • Quickstart • Notebooks • Documentation

⚡ Get started

Download the native Unsloth Desktop app for your operating system:

Platform Link

Windows (x64 and ARM64) Download

macOS Download

Linux / Ubuntu (deb) Download

Linux / Ubuntu (ARM64) (deb) Download

Linux (AppImage) Download

Download from Unsloth or GitHub Releases.

Or if you prefer to install manually:

macOS, Linux, WSL:

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

Windows:

irm https://unsloth.ai/install.ps1 | iex

Docker:

The Unsloth Docker image unsloth/unsloth is available on Docker. Read guide.

Homebrew:

brew install --cask unsloth

Winget (Windows):

winget install --id UnslothAI.Unsloth -e

If endpoint protection blocks irm ... | iex on a managed PC, use winget.

Community:

⭐ Features

Unsloth works on Windows, Linux, WSL and macOS. We support Multi GPU setups, NVIDIA, AMD, Intel GPUs, CPUs and the Vulkan backend.

Run & Build with AI

Train & Deploy

  • Fine-tuning: Train LLMs, diffusion, decision, TTS, and embedding models 2× faster with 70% less VRAM with no accuracy loss
  • Complete support: Supports reinforcement learning, LoRA, QLoRA, full fine tuning, pretraining, RL, GRPO, DPO, and FP8.
  • Export & Deploy: Export or Deploy models including GGUF, NVFP4, FP8 and more formats.
  • Datasets: Build datasets from PDFs, CSVs, DOCX files, and more with Data Recipes.

🚀 Unsloth Start

Unsloth Start connects Claude Code, Codex and other agents to local models with one command.

unsloth start claude --model unsloth/Qwen3.8-27B-GGUF:UD-Q4_K_XL
AgentCommand
Claude Codeunsloth start claude
OpenAI Codexunsloth start codex
Visual Studio Codeunsloth start vscode
DeepSeek Harnessunsloth start dsh
OpenCodeunsloth start opencode
Hermes Agentunsloth start hermes
Piunsloth start pi
OpenClawunsloth start openclaw
Mistral Vibeunsloth start vibe

📥 Install

Unsloth can be used in three ways: Unsloth Desktop, the desktop app; Unsloth Studio, the web UI; or Unsloth Core, the code based version.

Unsloth Desktop (recommended)

Platform Link

Windows (x64 and ARM64) Download

macOS Download

Linux / Ubuntu (deb) Download

Linux / Ubuntu (ARM64) (deb) Download

Linux (AppImage) Download

For Desktop's local HTTP port, set UNSLOTH_DESKTOP_PORT=9000 in its launch environment and fully restart the app. Unset or empty uses 8888. Choose 1024–65515. If the port is busy, Desktop tries the next 20. It rejects ranges with browser-restricted ports. This covers backend restarts after updates. unsloth studio -p and LAN use separate ports.

Unsloth Studio (web UI)

macOS, Linux, WSL:

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

Windows:

irm https://unsloth.ai/install.ps1 | iex

Homebrew:

brew install --cask unsloth

Docker

Use our Docker image ``unsloth/unsloth``. On Linux and Mac, set up GPU access once with

curl -fsSL https://raw.githubusercontent.com/unslothai/unsloth/main/docker/install_nvidia_toolkit.sh -o install_nvidia_toolkit.sh && sudo -E bash install_nvidia_toolkit.sh

For Windows instructions and more information, read our Unsloth Docker Guide.

Linux / WSL (Bash):

# for a public Cloudflare HTTPS link: use  -e UNSLOTH_STUDIO_SECURE=1  instead of -p 8000:8000, and  -p 127.0.0.1:8888:8888  instead of -p 8888:8888
docker run -d --name unsloth --gpus all --ipc=host \
  -p 8000:8000 -p 8888:8888 \
  -v "$PWD":/workspace/host \
  -v unsloth-workspace:/workspace \
  -v "$HOME/.cache/huggingface":/workspace/.cache/huggingface \
  -v unsloth-studio:/opt/unsloth-studio \
  unsloth/unsloth && docker logs -f unsloth

See Docker docs for more information. For notebooks only, use the unsloth/unsloth:core tag; all tags and options are on Docker Hub. For AMD there is a separate image: unsloth/unsloth-rocm.


Launch

unsloth studio

HTTP Secure Deployment

unsloth studio --secure

Remote HTTPS & LAN Access

Server-side tools are on by default - so be careful! Keep your password safe, or use --disable-tools when exposing Unsloth.

Global HTTPS Access: Creates a free Cloudflare link that serves Unsloth - you can access the link globally (even on your phone!)

unsloth studio --secure

-H 0.0.0.0 and different ports also work:

unsloth studio -H 0.0.0.0 -p 8888

LAN Access (home network): Settings > API keys > LAN access

For a reverse proxy or custom domain, run the proxy on the same machine as Desktop (e.g., Cloudflare Named Tunnel, nginx, or Caddy). Set a comma-separated list of allowed hostnames, then quit and reopen Desktop.

export UNSLOTH_STUDIO_PROXY_HOSTS=studio.example.com            # Linux: start Unsloth Desktop from this shell
launchctl setenv UNSLOTH_STUDIO_PROXY_HOSTS studio.example.com  # macOS
setx UNSLOTH_STUDIO_PROXY_HOSTS studio.example.com              # Windows

Forward the allowed hostname in Host or X-Forwarded-Host. In cloudflared, leave the HTTP Host Header override unset. Sign in with the password under Settings > Remote access > Remote password.

For HTTPS with your own certificate, set both variables before unsloth studio (Docker or systemd). Either --ssl-certfile or --ssl-keyfile overrides both.

UNSLOTH_STUDIO_SSL_CERTFILE=/path/to/full-chain.pem \
UNSLOTH_STUDIO_SSL_KEYFILE=/path/to/private-key.pem \
unsloth studio

Password management & headless starts

Exposing Unsloth (--secure, --cloudflare, or a non-loopback -H) asks once at the terminal for a new admin password. Ctrl+C there aborts the launch rather than exposing the auto-generated one; set a password non-interactively instead, or use -H 127.0.0.1 to stay off the network.

Headless starts:

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

Reset your password:

unsloth studio reset-password

Developer, Nightly, Uninstall

To see developer, nightly and uninstallation etc. instructions, see advanced installation.

Unsloth Core (code-based)

Linux, WSL:

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

Windows:

winget install -e --id Python.Python.3.13
winget install --id=astral-sh.uv  -e
uv venv unsloth_env --python 3.13
.\unsloth_env\Scripts\activate
uv pip install torchao
uv pip install unsloth --torch-backend=auto

Install torchao first on Windows: --torch-backend looks for it only on the PyTorch index, which has no recent Windows torchao, so a one-step install silently resolves an old Unsloth.

AMD, Intel, DGX Spark, Blackwell:

See our Blackwell guide and DGX Spark guide.

To install Unsloth on AMD and Intel GPUs, follow our AMD Guide, NPU Guide, and Intel Guide.

📒 Free Notebooks

Train for free with our notebooks. Read our guide. Add dataset, run, then deploy your trained model.

ModelFree NotebooksPerformanceMemory use
Unsloth Studio▶️ Start for free
Decision model (Qwen3.5-4B)▶️ Start for free-Decision.ipynb)1.5x faster60% less
Gemma 4 (E2B)▶️ Start for free-Vision.ipynb)1.5x faster50% less
Qwen3.5 (4B)▶️ Start for free_Vision.ipynb)1.5x faster60% less
gpt-oss (20B)▶️ Start for free-Fine-tuning.ipynb)2x faster70% less
Qwen3.5 GSPO▶️ Start for free_Vision_GRPO.ipynb)2x faster70% less
gpt-oss (20B): GRPO▶️ Start for free-GRPO.ipynb)2x faster80% less
Qwen3: Advanced GRPO▶️ Start for free-GRPO.ipynb)2x faster70% less
embeddinggemma (300M)▶️ Start for free.ipynb)2x faster20% less
Llama 3.1 (8B) Alpaca▶️ Start for free-Alpaca.ipynb)2x faster70% less
Llama 3.2 Conversational▶️ Start for free-Conversational.ipynb)2x faster70% less
Orpheus-TTS (3B)▶️ Start for free-TTS.ipynb)1.5x faster50% less

📥 Advanced Installation

The below advanced instructions are for Unsloth Studio. For Unsloth Core advanced installation, view our docs.

Developer / Nightly / Experimental installs: macOS, Linux, WSL:

The developer install builds from the main branch, which is the latest (nightly) source.

<
Visits:1 Updated:2026-12-02 AI tools

Related