markdown stringlengths 945 38.3k | metadata dict |
|---|---|
Qwen3, full fine-tuning & all models are now supported! 🦥
[Unsloth](https://github.com/unslothai/unsloth) makes finetuning large language models like Llama-3, Mistral, Phi-4 and Gemma 2x faster, use 70% less memory, and with no degradation in accuracy!
Our docs will guide you through training your own custom model. ... | {
"color-scheme": "light dark",
"description": "New to Unsloth?",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topgVLGCZY%252Fsites%252Fsite_mXXTe%252Ficon%252FUdYqQdRpLXMz6O8e... |
Qwen3, full fine-tuning & all models are now supported! 🦥
Microsoft's new Phi-4 reasoning models are now supported in Unsloth. The 'plus' variant performs on par with OpenAI's o1-mini, o3-mini and Sonnet 3.7. The 'plus' and standard reasoning models are 14B parameters while the 'mini' has 4B parameters.
All Phi-4 re... | {
"color-scheme": "light dark",
"description": "Learn to run & fine-tune Phi-4 reasoning models locally with Unsloth + our Dynamic 2.0 quants",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%2... |
Qwen3, full fine-tuning & all models are now supported! 🦥
Unsloth supports natively 2x faster inference. For our inference only notebook, click [here](https://colab.research.google.com/drive/1aqlNQi7MMJbynFDyOQteD2t0yVfjb9Zh?usp=sharing).
All QLoRA, LoRA and non LoRA inference paths are 2x faster. This requires no c... | {
"color-scheme": "light dark",
"description": "Learn how to run your finetuned model.",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topgVLGCZY%252Fsites%252Fsite_mXXTe%252Fic... |
Qwen3, full fine-tuning & all models are now supported! 🦥
You must edit the `Trainer` first to add `save_strategy` and `save_steps`. Below saves a checkpoint every 50 steps to the folder `outputs`.
Copy
```inline-grid min-w-full grid-cols-[auto_1fr] p-2 [count-reset:line]
trainer = SFTTrainer(
....
args = T... | {
"color-scheme": "light dark",
"description": "Checkpointing allows you to save your finetuning progress so you can pause it and then continue.",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganization... |
Qwen3, full fine-tuning & all models are now supported! 🦥
## [Direct link to heading](https://docs.unsloth.ai/get-started/fine-tuning-guide/what-model-should-i-use\#llama-qwen-mistral-phi-or) Llama, Qwen, Mistral, Phi or?
When preparing for fine-tuning, one of the first decisions you'll face is selecting the righ... | {
"color-scheme": "light dark",
"description": null,
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topgVLGCZY%252Fsites%252Fsite_mXXTe%252Ficon%252FUdYqQdRpLXMz6O8ejTLD%252Funsl... |
Qwen3, full fine-tuning & all models are now supported! 🦥
A guide on how you can run our 1.58-bit Dynamic Quants for DeepSeek-R1 using llama.cpp.
## [Direct link to heading](https://docs.unsloth.ai/basics/tutorials-how-to-fine-tune-and-run-llms/deepseek-r1-how-to-run-locally\#using-llama.cpp-recommended) Using ll... | {
"color-scheme": "light dark",
"description": null,
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topgVLGCZY%252Fsites%252Fsite_mXXTe%252Ficon%252FUdYqQdRpLXMz6O8ejTLD%252Funsl... |
Qwen3, full fine-tuning & all models are now supported! 🦥
We're excited to introduce our Dynamic v2.0 quantization method - a major upgrade to our previous quants. This new method outperforms leading quantization methods and sets new benchmarks for 5-shot MMLU and KL Divergence.
This means you can now run + fine-tun... | {
"color-scheme": "light dark",
"description": "A big new upgrade to our Dynamic Quants!",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topgVLGCZY%252Fsites%252Fsite_mXXTe%252F... |
Qwen3, full fine-tuning & all models are now supported! 🦥
## [Direct link to heading](https://docs.unsloth.ai/get-started/installing-+-updating/pip-install\#recommended-installation) **Recommended installation:**
**Install with pip (recommended)** for Linux devices:
Copy
```inline-grid min-w-full grid-cols-[aut... | {
"color-scheme": "light dark",
"description": "To install Unsloth locally via Pip, follow the steps below:",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topgVLGCZY%252Fsites%... |
Qwen3, full fine-tuning & all models are now supported! 🦥
Read our full DeepSeek-R1 blogpost here: [unsloth.ai/blog/deepseekr1-dynamic](https://unsloth.ai/blog/deepseekr1-dynamic)
### [Direct link to heading](https://docs.unsloth.ai/basics/tutorials-how-to-fine-tune-and-run-llms/deepseek-r1-how-to-run-locally/deepse... | {
"color-scheme": "light dark",
"description": "See performance comparison tables for Unsloth's Dynamic GGUF Quants vs Standard IMatrix Quants.",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations... |
Qwen3, full fine-tuning & all models are now supported! 🦥
Qwen's new Qwen3 models deliver state-of-the-art advancements in reasoning, instruction-following, agent capabilities, and multilingual support.
All Qwen3 uploads use our new Unsloth [Dynamic 2.0](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) meth... | {
"color-scheme": "light dark",
"description": "Learn to run & fine-tune Qwen3 locally with Unsloth + our Dynamic 2.0 quants",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topg... |
Qwen3, full fine-tuning & all models are now supported! 🦥
.
**Recommended installation method:**
Copy
```inline-grid min-w-full grid-co... | {
"color-scheme": "light dark",
"description": "Learn to install Unsloth locally or online.",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topgVLGCZY%252Fsites%252Fsite_mXXTe%2... |
Qwen3, full fine-tuning & all models are now supported! 🦥
Fine-tuning TTS models enable it to adapt it on your own dataset, specific use case or style/tone. This process helps customize the model for unique voices, speaking styles, new languages or specific types of content.
With Unsloth, we allow you to fine-tune T... | {
"color-scheme": "light dark",
"description": "Learn how to to fine-tune TTS voice models with Unsloth.",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topgVLGCZY%252Fsites%252... |
Qwen3, full fine-tuning & all models are now supported! 🦥
To save to 16bit for VLLM, use:
Copy
```inline-grid min-w-full grid-cols-[auto_1fr] p-2 [count-reset:line]
model.save_pretrained_merged("model", tokenizer, save_method = "merged_16bit",)
model.push_to_hub_merged("hf/model", tokenizer, save_method = "merged_1... | {
"color-scheme": "light dark",
"description": "Saving models to 16bit for VLLM",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topgVLGCZY%252Fsites%252Fsite_mXXTe%252Ficon%252F... |
Qwen3, full fine-tuning & all models are now supported! 🦥
There are millions of possible hyperparameter combinations, and choosing the right values is crucial for fine-tuning. You'll learn the best practices for hyperparameters - based on insights from hundreds of research paper/experiments and how they impact the mo... | {
"color-scheme": "light dark",
"description": "Best practices for LoRA hyperparameters and learn how they affect the finetuning process.",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FH... |
Qwen3, full fine-tuning & all models are now supported! 🦥
Google released Gemma 3 in 4 sizes - 1B, 4B, 12B and 27B models! The smallest 1B model is text only, whilst the rest are capable of vision and text input! We provide GGUFs, and a guide of how to run it effectively, and how to finetune & do reasoning finetuning... | {
"color-scheme": "light dark",
"description": "How to run Gemma 3 effectively with our GGUFs on llama.cpp, Ollama, Open WebUI and how to fine-tune with Unsloth!",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2... |
Qwen3, full fine-tuning & all models are now supported! 🦥
LocallyManual Saving
To save to GGUF, use the below to save locally:
Copy
```inline-grid min-w-full grid-cols-[auto_1fr] p-2 [count-reset:line]
model.save_pretrained_gguf("dir", tokenizer, quantization_method = "q4_k_m")
model.save_pretrained_gguf("dir", to... | {
"color-scheme": "light dark",
"description": "Saving models to 16bit for GGUF so you can use it for Ollama, Jan AI, Open WebUI and more!",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252F... |
Qwen3, full fine-tuning & all models are now supported! 🦥
## [Direct link to heading](https://docs.unsloth.ai/basics/errors-troubleshooting\#running-in-unsloth-works-well-but-after-exporting-and-running-on-other-platforms-the-results-are-poo) Running in Unsloth works well, but after exporting & running on other pl... | {
"color-scheme": "light dark",
"description": "To fix any errors with your setup, see below:",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topgVLGCZY%252Fsites%252Fsite_mXXTe... |
Qwen3, full fine-tuning & all models are now supported! 🦥
## [Direct link to heading](https://docs.unsloth.ai/get-started/fine-tuning-guide\#id-1.-understand-fine-tuning) 1\. Understand Fine-tuning
Fine-tuning an LLM customizes its behavior, enhances + injects knowledge, and optimizes performance for domains/spec... | {
"color-scheme": "light dark",
"description": "Learn all the basics and best practices of fine-tuning. Beginner-friendly.",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topgVL... |
Qwen3, full fine-tuning & all models are now supported! 🦥
If you're a beginner, here might be the first questions you'll ask before your first fine-tune. You can also always ask our community by joining our [Discord server](https://discord.gg/unsloth).
[🧬](https://docs.unsloth.ai/basics/tutorial-how-to-finetune-lla... | {
"color-scheme": "light dark",
"description": null,
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topgVLGCZY%252Fsites%252Fsite_mXXTe%252Ficon%252FUdYqQdRpLXMz6O8ejTLD%252Funsl... |
Qwen3, full fine-tuning & all models are now supported! 🦥
## [Direct link to heading](https://docs.unsloth.ai/basics/datasets-guide\#what-is-a-dataset) What is a Dataset?
For LLMs, datasets are collections of data that can be used to train our models. In order to be useful for training, text data needs to be in a... | {
"color-scheme": "light dark",
"description": "Learn how to create & prepare a dataset for fine-tuning.",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topgVLGCZY%252Fsites%252... |
Qwen3, full fine-tuning & all models are now supported! 🦥
By the end of this tutorial, you will create a custom chatbot by **finetuning Llama-3** with [**Unsloth**](https://github.com/unslothai/unsloth) for free. It can run locally via [**Ollama**](https://github.com/ollama/ollama) on your PC, or in a free GPU instan... | {
"color-scheme": "light dark",
"description": "Beginner's Guide for creating a customized personal assistant (like ChatGPT) to run locally on Ollama",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganiz... |
Qwen3, full fine-tuning & all models are now supported! 🦥
See the table below for all [Dynamic](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) GGUF, 4-bit, 16-bit uploaded models on [Hugging Face](https://huggingface.co/unsloth).
- GGUFs can be used to run in your favorite places like Ollama, Open WebUI a... | {
"color-scheme": "light dark",
"description": null,
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topgVLGCZY%252Fsites%252Fsite_mXXTe%252Ficon%252FUdYqQdRpLXMz6O8ejTLD%252Funsl... |
Qwen3, full fine-tuning & all models are now supported! 🦥
Fine-tuning vision models has numerous use cases across various industries, enabling models to adapt to specific tasks and datasets. We provided 3 example notebooks for vision finetuning.
Note: [Gemma 3](https://docs.unsloth.ai/basics/gemma-3-how-to-run-and-f... | {
"color-scheme": "light dark",
"description": "Learn how to fine-tune vision/multimodal LLMs with Unsloth",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topgVLGCZY%252Fsites%2... |
Qwen3, full fine-tuning & all models are now supported! 🦥
DPO (Direct Preference Optimization), ORPO (Odds Ratio Preference Optimization), PPO, KTO Reward Modelling all work with Unsloth.
We have Google Colab notebooks for reproducing ORPO, DPO Zephyr, KTO and SimPO:
- [ORPO notebook](https://colab.research.google.... | {
"color-scheme": "light dark",
"description": "To use the reward modelling functions for DPO, ORPO or KTO with Unsloth, follow the steps below:",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganization... |
Qwen3, full fine-tuning & all models are now supported! 🦥
### [Direct link to heading](https://docs.unsloth.ai/basics/chat-templates\#list-of-colab-chat-template-notebooks) List of Colab chat template notebooks:
- [Conversational](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.2_... | {
"color-scheme": "light dark",
"description": "Learn the basics and customization options for chat templates including the Alpaca format.",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252F... |
Qwen3, full fine-tuning & all models are now supported! 🦥
- The [text completion notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_(7B)-Text_Completion.ipynb) is for continued pretraining/raw text.
- The [continued pretraining notebook](https://colab.research.google.com/gith... | {
"color-scheme": "light dark",
"description": "AKA as Continued Finetuning. Unsloth allows you to continually pretrain so a model can learn a new language.",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2F... |
Qwen3, full fine-tuning & all models are now supported! 🦥
## [Direct link to heading](https://docs.unsloth.ai/basics/running-and-saving-models/troubleshooting\#running-in-unsloth-works-well-but-after-exporting-and-running-on-other-platforms-the-results-are-poo) Running in Unsloth works well, but after exporting & ... | {
"color-scheme": "light dark",
"description": "If you're experiencing issues when running or saving your model.",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topgVLGCZY%252Fs... |
Qwen3, full fine-tuning & all models are now supported! 🦥
[ Method \#1 - Windows directly:
Python 3.13 does not support Unsloth. Use 3.12, 3.11 or 3.10.
Need help or experiencing a... | {
"color-scheme": "light dark",
"description": "See how to install Unsloth on Windows with or without WSL.",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topgVLGCZY%252Fsites%2... |
Qwen3, full fine-tuning & all models are now supported! 🦥
## [Direct link to heading](https://docs.unsloth.ai/get-started/installing-+-updating/updating\#standard-updating-recommended) Standard Updating (recommended):
Copy
```inline-grid min-w-full grid-cols-[auto_1fr] p-2 [count-reset:line]
pip install --upgrad... | {
"color-scheme": "light dark",
"description": "To update or use an old version of Unsloth, follow the steps below:",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topgVLGCZY%25... |
Qwen3, full fine-tuning & all models are now supported! 🦥
You can also run your fine-tuned models by using [Unsloth's 2x faster inference](https://docs.unsloth.ai/basics/running-and-saving-models/inference).
[Saving to GGUF](https://docs.unsloth.ai/basics/running-and-saving-models/saving-to-gguf)
[Saving to Ollama]... | {
"color-scheme": "light dark",
"description": "Learn how to save your finetuned model so you can run it in your favorite inference engine.",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252... |
Qwen3, full fine-tuning & all models are now supported! 🦥
See our guide below for the complete process on how to save to [Ollama](https://github.com/ollama/ollama):
[🦙Tutorial: How to Finetune Llama-3 and Use In Ollama](https://docs.unsloth.ai/basics/tutorial-how-to-finetune-llama-3-and-use-in-ollama)
## [Direct l... | {
"color-scheme": "light dark",
"description": null,
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topgVLGCZY%252Fsites%252Fsite_mXXTe%252Ficon%252FUdYqQdRpLXMz6O8ejTLD%252Funsl... |
Qwen3, full fine-tuning & all models are now supported! 🦥
Qwen released QwQ-32B - a reasoning model with performance comparable to DeepSeek-R1 on many [benchmarks](https://qwenlm.github.io/blog/qwq-32b/). However, people have been experiencing **infinite generations**, **many repetitions**, <think> token issues and f... | {
"color-scheme": "light dark",
"description": "How to run QwQ-32B effectively with our bug fixes and without endless generations + GGUFs.",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252F... |
Qwen3, full fine-tuning & all models are now supported! 🦥
## [Direct link to heading](https://docs.unsloth.ai/get-started/beginner-start-here/unsloth-requirements\#system-requirements) System Requirements
- **Operating System**: Works on Linux and Windows.
- Supports NVIDIA GPUs since 2018+. Minimum CUDA Capabil... | {
"color-scheme": "light dark",
"description": "Here are Unsloth's requirements including system and GPU VRAM requirements.",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topgV... |
Qwen3, full fine-tuning & all models are now supported! 🦥
The Llama-4-Scout model has 109B parameters, while Maverick has 402B parameters. Currently, only text is supported via llama.cpp. The full unquantized version requires 113GB of disk space whilst the 1.78-bit version uses 33.8GB (-75% reduction in size). **Mave... | {
"color-scheme": "light dark",
"description": "How to run Llama 4 locally using our dynamic GGUFs which recovers accuracy compared to standard quantization.",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2... |
Qwen3, full fine-tuning & all models are now supported! 🦥
This article covers everything you need to know about GRPO, Reinforcement Learning (RL) and reward functions, along with tips, and the basics of using GRPO with Unsloth. If you're looking for a quickstart tutorial for using GRPO, see our guide [here](https://d... | {
"color-scheme": "light dark",
"description": "Train your own DeepSeek-R1 reasoning model with Unsloth using GRPO.",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topgVLGCZY%25... |
Qwen3, full fine-tuning & all models are now supported! 🦥
## [Direct link to heading](https://docs.unsloth.ai/get-started/beginner-start-here/faq-+-is-fine-tuning-right-for-me\#understanding-fine-tuning) Understanding Fine-Tuning
Fine-tuning an LLM customizes its behavior, deepens its domain expertise, and optimi... | {
"color-scheme": "light dark",
"description": "If you're stuck on if fine-tuning is right for you, see here! Learn about fine-tuning misconceptions, how it compared to RAG and more:",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook... |
Qwen3, full fine-tuning & all models are now supported! 🦥
• [**GRPO (Reasoning)**](https://docs.unsloth.ai/get-started/unsloth-notebooks#grpo-reasoning-notebooks)
• [**Text-to-Speech (TTS)**](https://docs.unsloth.ai/get-started/unsloth-notebooks#text-to-speech-tts-notebooks)
• [**Vision (Multimodal)**](https://docs... | {
"color-scheme": "light dark",
"description": "Below is a list of all our notebooks:",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topgVLGCZY%252Fsites%252Fsite_mXXTe%252Fico... |
Qwen3, full fine-tuning & all models are now supported! 🦥
DeepSeek developed [GRPO](https://unsloth.ai/blog/grpo) (Group Relative Policy Optimization) to train their R1 reasoning models.
## [Direct link to heading](https://docs.unsloth.ai/basics/reasoning-grpo-and-rl/tutorial-train-your-own-reasoning-model-with-grpo... | {
"color-scheme": "light dark",
"description": "Beginner's Guide to transforming a model like Llama 3.1 (8B) into a reasoning model by using Unsloth and GRPO.",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%... |
Qwen3, full fine-tuning & all models are now supported! 🦥
Only use Conda if you have it. If not, use [Pip](https://docs.unsloth.ai/get-started/installing-+-updating/pip-install).
Select either `pytorch-cuda=11.8,12.1` for CUDA 11.8 or CUDA 12.1. We support `python=3.10,3.11,3.12`.
Copy
```inline-grid min-w-full gr... | {
"color-scheme": "light dark",
"description": "To install Unsloth locally on Conda, follow the steps below:",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topgVLGCZY%252Fsites... |
Qwen3, full fine-tuning & all models are now supported! 🦥
DeepSeek is at it again! After releasing V3, R1 Zero and R1 back in December 2024 and January 2025, DeepSeek updated their checkpoints / models for V3, and released a March update!
According to DeepSeek, MMLU-Pro jumped +5.3% to 81.2%. **GPQA +9.3% points**. ... | {
"color-scheme": "light dark",
"description": "How to run DeepSeek-V3-0324 locally using our dynamic quants which recovers accuracy",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELz... |
Qwen3, full fine-tuning & all models are now supported! 🦥
Environment variable
Purpose
`os.environ["UNSLOTH_RETURN_LOGITS"] = "1"`
Forcibly returns logits - useful for evaluation if logits are needed.
`os.environ["UNSLOTH_COMPILE_DISABLE"] = "1"`
Disables auto compiler. Could be useful to debug incorrect finetun... | {
"color-scheme": "light dark",
"description": "Advanced flags which might be useful if you see breaking finetunes, or you want to turn stuff off.",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizati... |
Qwen3, full fine-tuning & all models are now supported! 🦥
- For our most detailed benchmarks, read our [Llama 3.3 Blog](https://unsloth.ai/blog/llama3-3).
- Benchmarking of Unsloth was also conducted by [🤗Hugging Face](https://huggingface.co/blog/unsloth-trl).
We tested using the Alpaca Dataset, a batch size of 2... | {
"color-scheme": "light dark",
"description": "Want to know how fast Unsloth is?",
"favicon": "https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F2815821428-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Forganizations%252FHpyELzcNe0topgVLGCZY%252Fsites%252Fsite_mXXTe%252Ficon%25... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.