unsloth README

README проекта с github.com/unslothai/unsloth. Одним файлом markdown: README.md.

Unsloth logo

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

Features • Quickstart • Notebooks • Documentation

unsloth desktop

⚡ 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

🚀 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
Agent Command
Claude Code unsloth start claude
OpenAI Codex unsloth start codex
Visual Studio Code unsloth start vscode
DeepSeek Harness unsloth start dsh
OpenCode unsloth start opencode
Hermes Agent unsloth start hermes
Pi unsloth start pi
OpenClaw unsloth start openclaw
Mistral Vibe unsloth 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.

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.

Model Free Notebooks Performance Memory use
Unsloth Studio ▶️ Start for free
Decision model (Qwen3.5-4B) ▶️ Start for free 1.5x faster 60% less
Gemma 4 (E2B) ▶️ Start for free 1.5x faster 50% less
Qwen3.5 (4B) ▶️ Start for free 1.5x faster 60% less
gpt-oss (20B) ▶️ Start for free 2x faster 70% less
Qwen3.5 GSPO ▶️ Start for free 2x faster 70% less
gpt-oss (20B): GRPO ▶️ Start for free 2x faster 80% less
Qwen3: Advanced GRPO ▶️ Start for free 2x faster 70% less
embeddinggemma (300M) ▶️ Start for free 2x faster 20% less
Llama 3.1 (8B) Alpaca ▶️ Start for free 2x faster 70% less
Llama 3.2 Conversational ▶️ Start for free 2x faster 70% less
Orpheus-TTS (3B) ▶️ Start for free 1.5x faster 50% 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.

git clone https://github.com/unslothai/unsloth
cd unsloth
./install.sh --local
unsloth studio -p 8888

To install into an isolated location, set UNSLOTH_STUDIO_HOME:

UNSLOTH_STUDIO_HOME="$PWD/.studio" ./install.sh --local
UNSLOTH_STUDIO_HOME="$PWD/.studio" unsloth studio -p 8888

Then to update:

cd unsloth && git pull
./install.sh --local
unsloth studio -p 8888

Developer / Nightly / Experimental installs: Windows PowerShell:

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

git clone https://github.com/unslothai/unsloth.git
cd unsloth
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned
.\install.ps1 --local
unsloth studio -p 8888

To install into an isolated location, set UNSLOTH_STUDIO_HOME:

$env:UNSLOTH_STUDIO_HOME="$PWD\.studio"; .\install.ps1 --local
$env:UNSLOTH_STUDIO_HOME="$PWD\.studio"; unsloth studio -p 8888

Then to update:

cd unsloth; git pull
.\install.ps1 --local
unsloth studio -p 8888

Advanced launch options

Installer options are environment variables. Set them in front of the install command, for example to skip PyTorch:

curl -fsSL https://unsloth.ai/install.sh | UNSLOTH_NO_TORCH=1 sh
$env:UNSLOTH_NO_TORCH=1; irm https://unsloth.ai/install.ps1 | iex

In PowerShell, quote text values, e.g. $env:UNSLOTH_STUDIO_HOME='C:\path'.

Variable Effect
UNSLOTH_NO_TORCH=1 Skip PyTorch. Chat only mode: GGUF models, plus MLX models on Apple Silicon.
UNSLOTH_LLAMA_CPP_BACKEND=vulkan Pick the llama.cpp build for GGUF chat: vulkan, cpu, cuda, rocm or auto. PyTorch is chosen separately.
UNSLOTH_PYTHON=3.12 Pin the Python version.
UNSLOTH_STUDIO_HOME=/abs/path Install to a custom location (C:\path on Windows).
UNSLOTH_SKIP_AUTOSTART=1 Skip the post-install prompt that starts Unsloth, for automated installs: curl -fsSL https://unsloth.ai/install.sh | UNSLOTH_SKIP_AUTOSTART=1 sh or $env:UNSLOTH_SKIP_AUTOSTART=1; irm https://unsloth.ai/install.ps1 | iex.

Cap Unsloth's native CPU thread pools on high-core hosts at launch: UNSLOTH_CPU_THREADS=8 unsloth studio -p 8888.

More installer options: PyTorch index, uv cache, rollback, npm mirror, audio.cpp
Variable Local flag Effect
UNSLOTH_TORCH_INDEX_FAMILY=cpu Set the PyTorch index family, e.g. cpu or rocm7.2.
UNSLOTH_ISOLATE_UV_CACHE=1 --isolated-uv-cache Keep the package cache under the Studio directory instead of reusing an existing uv cache. Slower first download; an explicit UV_CACHE_DIR still wins.
UNSLOTH_INSTALL_NO_ROLLBACK=1 --no-rollback Discard the previous environment immediately on reinstall. Needs disk room for one environment instead of two, but a failed install cannot be undone.
UNSLOTH_NPM_REGISTRY=https://... Point the frontend build at a corporate npm mirror or proxy (./install.sh --local).

Local flags go after --local, e.g. ./install.sh --local --no-rollback or .\install.ps1 --local --no-rollback.

Setup also installs audio.cpp (prebuilt by unslothai/audio.cpp) for the speech, music and speech-to-text models on the Audio page, in Voice settings and behind /v1/audio/*. It is optional and never blocks setup:

  • UNSLOTH_SKIP_AUDIO_CPP_INSTALL=1 skips it.
  • UNSLOTH_AUDIO_CPP_ACCELERATOR=cpu (or cuda, vulkan, metal) picks the bundle instead of auto-detecting.
  • AUDIOCPP_SERVER_PATH=/path/to/audiocpp_server uses your own build.

Uninstall

MacOS, WSL, Linux: curl -fsSL https://raw.githubusercontent.com/unslothai/unsloth/main/scripts/uninstall.sh | sh

Windows (PowerShell): irm https://raw.githubusercontent.com/unslothai/unsloth/main/scripts/uninstall.ps1 | iex

For more info, see our docs.

Deleting model files

You can delete old model files either from the bin icon in model search or by removing the relevant cached model folder from the default Hugging Face cache directory. By default, HF uses:

MacOS, Linux, WSL: ~/.cache/huggingface/hub/

Windows: %USERPROFILE%\.cache\huggingface\hub\

Type Links
  Discord Join Discord server
  r/unsloth Reddit Join Reddit community
📚 Documentation & Wiki Read Our Docs
  Twitter (aka X) Follow us on X
🔮 Our Models Unsloth Catalog
✍️ Blog Read our Blogs

Citation

You can cite the Unsloth repo as follows:

@software{unsloth,
  author = {Daniel Han, Michael Han and Unsloth team},
  title = {Unsloth},
  url = {https://github.com/unslothai/unsloth},
  year = {2023}
}

If you trained a model with 🦥Unsloth, you can use this cool sticker!  

License

Unsloth uses a dual-licensing model of Apache 2.0 and AGPL-3.0. The core Unsloth package remains licensed under Apache 2.0, while certain optional components, such as the Unsloth Studio UI are licensed under the open-source license AGPL-3.0.

This structure helps support ongoing Unsloth development while keeping the project open source and enabling the broader ecosystem to continue growing.

Thank You to

unsloth (unslothai/unsloth)

Ищем в базе…

Что это такое?Unsloth — это приложение с приоритетом локальной работы для запуска и обучения LLM, диффузионных моделей, TTS и моделей эмбеддингов на вашем компьютере, включая такие модели, как Qwen3.8, DeepSeek-V4, MiniMax-H3, Gemma 4 и FLUX.
Это десктопное приложение, веб-интерфейс или библиотека для кода?Он выпускается в трёх вариантах: Unsloth Desktop — нативное приложение; Unsloth Studio — веб-интерфейс, который вы разворачиваете на собственном сервере; и Unsloth Core — Python-библиотека для обучения моделей по скриптам.
Нужна ли мне определённая марка видеокарты, чтобы пользоваться им?Нет, привязки к одному производителю нет: Unsloth поддерживает конфигурации с несколькими GPU от NVIDIA, AMD и Intel, обычные CPU и бэкенд Vulkan, а также есть отдельные руководства по оборудованию AMD, Intel, DGX Spark и Blackwell.
Безопасно ли открывать Unsloth Studio в интернет по умолчанию?Нет, по умолчанию это небезопасно: серверные инструменты включены по умолчанию, когда вы открываете Studio удалённо, поэтому нужно надёжно хранить пароль или запускать его с флагом --disable-tools.
Что такое Unsloth Start?Unsloth Start — это мост, запускаемый одной командой, который подключает агентов для программирования, таких как Claude Code, Codex, Hermes Agent, OpenClaw, OpenCode и DeepSeek Harness, к вашим локальным моделям, например: 'unsloth start claude'.
Насколько быстрее работает дообучение с Unsloth?Unsloth дообучает модели в 2 раза быстрее, используя до 70% меньше VRAM без потери точности, а MoE-LLM, такие как DeepSeek, GLM и Qwen, может обучать в 12 раз быстрее с 35% меньшим объёмом VRAM.
Можно ли совмещать локальные модели с облачными API-провайдерами?Да, Unsloth позволяет использовать вместе локальные модели и облачных провайдеров, таких как OpenAI и Anthropic, или серверы вроде vLLM и Ollama, в одном интерфейсе.
Какие методы обучения поддерживаются помимо базового дообучения?Поддерживаются LoRA, QLoRA, полное дообучение, предобучение, обучение с подкреплением, GRPO, DPO и обучение в FP8, а также экспорт в форматы GGUF, NVFP4 и другие.
Какие есть похожие проекты?MoE4All, Soup, halo, verl, airllm, Qwen3.8-Flash-Next, ART, verl
В каких он темах?kaggle, dpo, qlora, pretraining, intel, grpo, gemma, wsl, jupyter, mlx, stable-diffusion, llama
Автор
unslothai
Размер
778 MB
Звёзды
80.4K
Возраст
3 г
Коммиты · 90 дней