Unsloth
Open-source platform for fine-tuning and running LLMs locally — 2x faster training with 70% less VRAM. Supports LoRA, QLoRA, DPO, GRPO.
Unsloth is an open-source platform for fine-tuning and running large language models locally. Built on PyTorch with custom Triton and CUDA kernels, it claims up to 2x faster training while using 70% less VRAM than standard Hugging Face + TRL setups. The project supports the full fine-tuning workflow — LoRA, QLoRA, full fine-tuning, continued pretraining, DPO, GRPO, and reinforcement learning — across transformer models from Llama, Mistral, Qwen, Gemma, DeepSeek, and others.
The Unsloth Desktop app wraps the core library in a cross-platform GUI (Windows, macOS, Linux) with one-click model downloads, an OpenAI-compatible local API server, and tools for building datasets from PDFs, CSVs, and other documents. Unsloth Studio is the more featured web UI, with support for AMD GPUs, MLX on Apple Silicon, and a chat interface. The project also ships Unsloth Start, which connects local models to coding agents like Claude Code, Codex, and OpenCode as drop-in subagents.
Unsloth is dual-licensed: the core Python library and CLI ship under Apache 2.0, while the Unsloth Studio UI is AGPL-3.0. Models trained with Unsloth can be exported to GGUF, NVFP4, FP8, and standard PyTorch formats for deployment in llama.cpp, vLLM, Ollama, or back into Hugging Face Transformers. The project also publishes pre-quantized Dynamic GGUF models on Hugging Face.
Categories:
Tags:
Build with:
Frequently Asked Questions
What is Unsloth?
Unsloth is an open-source Python library and desktop application for fine-tuning large language models. It uses optimized Triton and CUDA kernels to deliver up to 2x faster training with 70% less VRAM consumption than standard Hugging Face + TRL workflows.
Does Unsloth support LoRA and QLoRA?
Yes. Unsloth supports LoRA, QLoRA, full fine-tuning, continued pretraining, DPO, KTO, GRPO, and reinforcement learning. It also supports vision-language models, TTS models, and embedding models for fine-tuning.
Can I run Unsloth on macOS or AMD GPUs?
Yes. Unsloth supports NVIDIA GPUs, AMD GPUs (via ROCm on Windows, WSL, and Linux), and macOS via MLX on Apple Silicon. CPU and Vulkan GGUF inference are also supported for compatible hardware.
Is Unsloth really free?
Yes. The core Unsloth Python library and CLI are free and open-source under Apache 2.0. The Unsloth Studio UI is AGPL-3.0. There are no API fees or usage limits.
How do I deploy a model trained with Unsloth?
Unsloth exports models to GGUF (for llama.cpp, Ollama), NVFP4, FP8, and standard PyTorch formats. You can also serve models through the built-in OpenAI-compatible local API server, or push to Hugging Face for distribution.
Repository details
Updated 8/12/2026, 5:00:15 AM
View RepositorySponsor Unsloth
Sponsor Unsloth on GitHub Sponsors
https://github.com/sponsors/unslothai


