Unsloth is a local UI for training and running Gemma 4, Qwen3.6, DeepSeek, Kimi, GLM and other models.
https://unsloth.ai/docs
agent
deepseek
fine-tuning
gemma
gemma3
gpt-oss
llama
llama3
llm
llms
mistral
openai
qwen
reinforcement-learning
self-hosted
text-to-speech
tts
ui
unsloth
- Python 71.5%
- TypeScript 22.7%
- Shell 1.9%
- PowerShell 1.6%
- Rust 1.5%
- Other 0.7%
| unsloth | ||
| .gitignore | ||
| LICENSE | ||
| pyproject.toml | ||
| README.md | ||
Unsloth
2x faster 50% less memory LLM finetuning on a single GPU.
Installation Instructions
Unsloth currently only supports Linux* and Pytorch >= 2.1.
- Find your CUDA version via
import torch; torch.version.cuda
- For CUDA 11.8:
pip install "unsloth[cu118] @ git+https://github.com/unslothai/unsloth.git"
- For CUDA 12.1:
pip install "unsloth[cu121] @ git+https://github.com/unslothai/unsloth.git"
To update Pytorch to 2.1:
conda install cudatoolkit xformers bitsandbytes pytorch pytorch-cuda=12.1 \
-c pytorch -c nvidia -c xformers -c conda-forge -y
or
pip install --upgrade --force-reinstall --no-cache-dir torch triton \
--index-url https://download.pytorch.org/whl/cu121
Change cu121 to cu118 for CUDA version 11.8 or 12.1. Go to https://pytorch.org/ to learn more.
Then install Unsloth.
For Google Colab and Kaggle instances:
- Try our Colab example:
- Try our Kaggle example:
Future Milestones
Troubleshooting
- Sometimes
bitsandbytesorxformersdoes not link properly. Try running:
!ldconfig /usr/lib64-nvidia
- Windows is not supported as of yet - we rely on Xformers and Triton support, so until both packages support Windows officially, Unsloth will then support Windows.