Skip to main content
Training & Fine-tuningStart here

Unsloth

unslothai / unsloth

Accelerated QLoRA/LoRA fine-tuning: Triton kernels cut VRAM use and training time for 7B–70B models.

79.8k stars 7447 forks Python Language Apache-2.0 License Last push 2026-11-19

Why choose it

  • Fine-tune a 7B-class model on a single 24 GB GPU, suitable for individuals and small teams.
  • Many ready-made notebooks and recipes; your first fine-tune does not require writing a training loop from scratch.
  • Compatible with the Hugging Face ecosystem; export feeds directly into vLLM / Ollama.

Not for

For large-scale pretraining or multi-node training, look at DeepSpeed / TorchTitan instead.
New architectures may need to wait for kernel support.

Minimum setup

  1. Check GPU VRAM and CUDA version; pick the official 7B 4-bit recipe.
  2. Prepare 100–500 domain samples and run one epoch to watch loss and peak VRAM.
  3. Export the LoRA adapter and compare against the base model on the same eval set; make sure it learned more than a catchphrase.

Dependencies and cost

Python + PyTorch/CUDA; VRAM depends on model and sequence length; needs Hugging Face weight access.

License and usage boundaries

Code is Apache-2.0; model weights and datasets carry their own licenses — check each before commercial use.

Open source is not automatically commercial-use friendly: GPL / AGPL are copyleft; code, model and output licenses are separate. Read the LICENSE and model card before launch, and involve legal when needed.

Alternatives and neighbors

  • Axolotl — Production,One YAML config for fine-tuning: LoRA, QLoRA, full-parameter, DPO, GRPO and multi-node training.
  • TRL — Production,Hugging Face's RL and alignment training library: SFT, DPO, PPO, GRPO and reward models.

Next steps

  • Open GitHub and read the README, LICENSE, latest release and issues first.
  • Make an onboarding checklist for deployment dependencies, VRAM, data, network and permissions.
  • Run a small sample first, then decide on production; never start with production data.

GitHub repository ↗ Docs ↗ Add to compare

Snapshot: stars / forks / language / license / pushed_at come from the GitHub API snapshot on 2026-11-20; later changes are not written back. Tags and “fit / not fit” are editorial judgments, not GitHub metadata.
No endorsement: this site only indexes and flags risks; it does not audit code, guarantee security or make license decisions for you. Review repository scripts and model weights yourself.