unsloth
by unslothai
Local app for running and fine-tuning open language models and diffusion models on your own hardware.
- Stars
- 80,206 stars
- Forks
- 7.5k forks
- Last push
- today
- Activity
- Active
# Install Unsloth Studio (macOS, Linux, WSL)$ curl -fsSL https://unsloth.ai/install.sh | sh# Launch the web UI$ unsloth studioCommands from the project's README. Run them after installing (see below).
Overview
Understand unsloth in 60 seconds
- What it does
- Unsloth lets you run and fine-tune AI models on your own computer. It comes as a desktop app, a web UI called Unsloth Studio, and Unsloth Core, a Python library that trains models faster and with less GPU memory.
- The problem it solves
- Fine-tuning language models usually needs big GPUs and a lot of setup. Unsloth's optimised training uses less memory, so models can be trained on consumer GPUs or free Colab notebooks, and its apps also run models locally.
- Why choose it
- Choose it for fast, memory-efficient fine-tuning plus an easy app to run local models. The README claims 2x faster training with 70% less VRAM; results vary by model and setup.
- Who should use it
- People fine-tuning open models on their own data
- Developers running local models for Claude Code or Codex
- Researchers doing LoRA, QLoRA or reinforcement learning
- Beginners using free Colab notebooks
- Setup difficulty
You'll need:
- Windows, macOS, Linux or WSL
- A GPU helps (NVIDIA, AMD, Intel) but CPUs are supported
- For Unsloth Core: Python 3.13 and uv
How unsloth works
Unsloth comes in three forms. Unsloth Desktop is a native app for Windows, macOS and Linux. Unsloth Studio is a web UI you install with a script, Homebrew or Docker and start with unsloth studio. Unsloth Core is the code-based Python package for training in your own scripts.
For running models, it supports LLM, GGUF, MLX, diffusion, embedding and audio models, serves them through an OpenAI-compatible API, and can connect local models to Claude Code, Codex and other agents with unsloth start. It includes web search, RAG, sandboxing for commands models run, and LAN or remote access.
For training, it supports LoRA, QLoRA, full fine-tuning, pretraining and reinforcement learning methods such as GRPO and DPO, plus FP8, and exports to formats like GGUF. Free Colab notebooks cover models like Llama, Qwen, Gemma and gpt-oss.
Features
Key features
Faster fine-tuning
Less VRAM and faster training, per the README.
Desktop app and web UI
Run and train models without writing code.
Run models locally
GGUF, MLX, diffusion, audio and more.
Connect agents
unsloth start claude or codex with a local model.
RL and alignment
GRPO, DPO and other methods.
Free notebooks
Colab notebooks for popular models.
Strengths
- Very popular, actively developed
- Lowers GPU requirements for training
- Apps for non-coders plus a library for coders
- Works across NVIDIA, AMD, Intel and CPU
Limitations
- Studio UI is AGPL-3.0 (the core package is Apache-2.0)
- Larger models still need capable GPUs
- Windows Core install needs an extra torchao step
Practical use cases
Fine-tune on your data
Train a small model on your own dataset in a free notebook.
Local coding agent
Run Claude Code against a local model with unsloth start.
Local ChatGPT-style app
Use Desktop or Studio to chat with downloaded models.
Export for deployment
Save a trained model as GGUF.
Installation
Install unsloth
Commands come from Unsloth's README. AIRepoHub hasn't run them yet. View source
Prerequisites
- A supported OS
- A GPU recommended
Supported systems
- Windows
- macOS
- Linux
- 1
Install
macOS, Linux and WSL.
Shellcurl -fsSL https://unsloth.ai/install.sh | sh - 2
Launch
Shellunsloth studio
- 1
Install with PowerShell
If endpoint protection blocks this, use winget install --id UnslothAI.Unsloth -e.
Shellirm https://unsloth.ai/install.ps1 | iex
- 1
Install
Shellbrew install --cask unsloth
- 1
Create an environment and install
Shellcurl -LsSf https://astral.sh/uv/install.sh | shuv venv unsloth_env --python 3.13source unsloth_env/bin/activateuv pip install unsloth --torch-backend=auto
Configuration and API keys
| Setting | What it's for |
|---|---|
UNSLOTH_DESKTOP_PORTOptional | Local HTTP port for Desktop; defaults to 8888. |
First run
- 1
Start the web UI
Shellunsloth studio - 2
Or connect Claude Code to a local model
Shellunsloth start claude --model unsloth/Qwen3.8-27B-GGUF:UD-Q4_K_XL
unsloth's documentation doesn't include sample output, so we don't show any. Expect the results in your terminal.
Your first project
Fine-tune a model for free in Colab
Train a small model on a sample dataset without your own GPU.
Before you start
- A Google account
- 1
Open a free notebook
For example Llama 3.1 (8B) Alpaca from the README's notebook table.
- 2
Follow the fine-tuning guide
Add your dataset, run the cells, then deploy the trained model.
- 3
Export the model
Save it, for example as GGUF, to run locally.
What to expect
A fine-tuned model trained in Colab that you can export and run.
Next steps
- Try a GRPO notebook for reasoning
- Install Studio to train locally
- Read the docs at unsloth.ai/docs
Costs and requirements
What it costs to run
- License
- Core package Apache-2.0; optional components such as Studio UI are AGPL-3.0.Free
- Software
- Free.Free
- Colab notebooks
- Free tier available; bigger runs may need paid GPUs.Depends
- Hardware
- Your own GPU or cloud GPU time.Depends
Troubleshooting
Common setup issues
irm | iex blocked on a managed Windows PC
Use winget install --id UnslothAI.Unsloth -e instead.
Windows Core install resolves an old Unsloth
Install torchao first, then uv pip install unsloth --torch-backend=auto.
Desktop port conflict
Set UNSLOTH_DESKTOP_PORT (1024 to 65515) and fully restart the app.
AMD, Intel or Blackwell GPU
Follow the matching guide linked in the README.
Alternatives
Similar AI repositories
stable-diffusion-webui
AUTOMATIC1111
Browser interface for running Stable Diffusion image generation locally.
ComfyUI
Comfy-Org
Node-based interface and backend for diffusion image and video workflows.
InvokeAI
invoke-ai
Creative application for generating and editing images with AI models.