Unsloth

Unsloth

Open Source

Fine-tune LLMs 2x faster with 70% less memory.

Data & ML Libraries
Fine-Tuning

Published 27 September 2026

Scores

Popularity4/5

One of the most-starred projects in the fine-tuning space and a common default in tutorials, with widely used quantized model releases on Hugging Face.

Learning Curve3/5

The prebuilt Colab and Kaggle notebooks make a first fine-tune approachable, but producing a genuinely good model still requires dataset preparation, hyperparameter tuning, and evaluation skill.

Flexibility4/5

Covers LoRA, QLoRA, full fine-tuning, pretraining, and RL methods across many model families, though it is purpose-built for fine-tuning rather than a general training framework.

Performance5/5

Hand-written fused kernels deliver roughly 70% memory reduction and about 2x faster training with no accuracy loss, best-in-class for efficient fine-tuning.

Portability5/5

Apache 2.0 licensed, self-hostable on any compatible GPU, and exports adapters to GGUF, Ollama, and vLLM, so trained models run anywhere with no lock-in.

About Unsloth

Unsloth is an open-source library for fine-tuning open-weight language models far more efficiently than standard pipelines. It rewrites the compute-heavy parts of the training stack — attention, backpropagation steps, and other operations — as hand-written fused kernels (built on OpenAI's Triton) that produce mathematically identical results with no accuracy loss, while cutting memory use by roughly 70% versus full fine-tuning and running about twice as fast as a standard LoRA setup. The practical effect is that fine-tuning that would otherwise need a data-center GPU becomes feasible on a single consumer or cloud GPU.

It supports the full range of adaptation methods — LoRA and QLoRA (4-bit), full fine-tuning, continued pretraining, and reinforcement-learning approaches such as GRPO and DPO — across a wide catalog of open-weight model families including Llama, Qwen, Mistral, Phi, Gemma, and DeepSeek, plus some vision and diffusion models. Unsloth drops into the Hugging Face ecosystem, works with the TRL trainer APIs, and is most commonly used through ready-made Google Colab and Kaggle notebooks, which is a large part of its appeal for people learning to fine-tune. Trained adapters export to GGUF, Ollama, and vLLM for local or production serving.

The core package is Apache 2.0 licensed and free; some optional components, such as the Unsloth Studio UI, are AGPL-3.0. Unsloth AI also offers paid Pro and Enterprise tiers with additional performance, multi-GPU scaling, and support on top of the free open-source library.

Key Features

  • Custom Triton fused kernels — ~70% less VRAM, ~2x faster training, no accuracy loss
  • LoRA, QLoRA (4-bit), full fine-tuning, continued pretraining, and RL (GRPO, DPO)
  • Supports Llama, Qwen, Mistral, Phi, Gemma, DeepSeek, and more open-weight families
  • Drops into the Hugging Face and TRL ecosystem with ready-made Colab/Kaggle notebooks
  • Adapter export to GGUF, Ollama, and vLLM for local and production serving
  • Apache 2.0 core library, free to use commercially

Pros

  • Makes fine-tuning viable on a single consumer or cloud GPU
  • Large real speed and memory gains with no loss in output quality
  • Beginner-friendly notebooks lower the barrier to a first fine-tune
  • Apache 2.0 licensed and free, with broad open-weight model coverage

Cons

  • Free open-source version focuses on single-GPU; multi-GPU scaling is a paid tier
  • Fine-tuning still requires understanding of datasets, hyperparameters, and evaluation
  • Bleeding-edge model support can arrive faster than stable documentation
  • Optional Studio UI carries a different (AGPL-3.0) license from the Apache 2.0 core

Unsloth Pricing

Open Source
Open SourceFree
  • · Free, Apache 2.0 core library for single-GPU fine-tuning
  • · Full LoRA/QLoRA, full fine-tuning, pretraining, and RL support
Pro / EnterpriseContact sales
  • · Paid tiers adding multi-GPU scaling and additional performance
  • · Priority support for teams running fine-tuning in production

Tools Related to Unsloth

Works well with Unsloth(10)

Unsloth builds directly on the Hugging Face Transformers and TRL ecosystem, loading base models from the Hub and exporting fine-tuned adapters back to it.

Unsloth exports fine-tuned models to GGUF for local serving in Ollama, a common last step after training.

Unsloth ships Dynamic GGUFs and fine-tuning support for the GLM family, GLM-4.5 and newer.

Unsloth provides optimized, memory-efficient fine-tuning support for Llama models, one of its most common training targets.

Unsloth maintains Dynamic GGUF builds and fine-tuning guides across the Gemma line.

Unsloth publishes fine-tuning notebooks and Dynamic GGUF builds for the DeepSeek V3/R1 line and successors.

Learning Resources

No resources yet — check back soon.

Vendor

Tags

PythonOpen SourceSelf-hostableAI-poweredMachine LearningData Science

Details

Maintained
Yes