Unsloth

Unsloth

Fast open-source Python LLM fine-tuning library and local studio UI cutting GPU VRAM usage up to 70% with handwritten Triton kernels.

★ 80.9K

Fine-tune open-weights LLMs 2x faster using 70% less VRAM on a single consumer GPU

Fine-tuning a 7B or 32B language model on your own domain data used to require renting expensive multi-GPU A100 clusters just to avoid out-of-memory crashes. Unsloth rewrites critical backpropagation math and LoRA/QLoRA kernels by hand in OpenAI Triton, slashing memory usage up to 70% with zero accuracy approximation. Surging to 80.9K GitHub stars and 7,600 forks (Apache-2.0 core library, optional AGPL-3.0 Studio UI), it now includes a local desktop/web Studio to run and train LLMs and diffusion models across Windows, Linux, and macOS.

What Unsloth unlocks on modest hardware

  • Hand-tuned Triton kernels accelerate LoRA, QLoRA, full fine-tuning, DPO, and GRPO reinforcement learning on single NVIDIA, AMD, or Apple Silicon machines.
  • One-line model export writes your fine-tuned weights directly to GGUF for Ollama/llama.cpp, FP8, or vLLM-ready Hugging Face safetensors.
  • Unsloth Studio adds a local visual interface with dataset builders from PDFs/DOCX/CSVs, private RAG, and OpenAI-compatible local API serving.
  • Drop-in compatibility with Hugging Face TRL (`SFTTrainer`, `GRPOTrainer`) means existing fine-tuning notebooks convert in three lines of code.

Security note for Unsloth Studio

Unsloth Studio enables local tool execution by default, so keep it bound to `127.0.0.1` or set a strong admin password and `–disable-tools` before exposing it over LAN or Cloudflare tunnels. Open a free Colab notebook or run `uv pip install unsloth` locally today to fine-tune your first custom model.

Ready to try Unsloth?

Experience the full capabilities on their official website.

Visit Official Website