How to Fine-tune LLMs with Unsloth: Complete Guide
pookie
@pookiehdAbout
The future is now old man. Channel art: https://giphy.com/dualvoidanima
Latest Posts
Video Description
In this guide, you'll learn how to fine-tune your own LLMs using Unsloth. Fine-tuning Large Language Models with LoRa and QLoRA has become popular due to its efficiency and low resource requirements. This step-by-step guide covers everything from how OpenAI (ChatGPT) and Anthropic (Claude) train their own LLMs, to practical tutorials where I show you exactly how to fine-tune your own LLMs using LoRA, QLoRA, and GRPO with Unsloth. First, I'll explain why you should fine-tune LLMs and how fine-tuning can even enhance a RAG setup. Next, we'll discuss how to select the best open-source model available on Hugging Face (such as Llama-3.3, Gemma-3 and DeepSeek) for fine-tuning. Finally, we'll dive into practical fine-tuning tutorials using Unsloth, showing you: - How to use supervised fine-tuning (SFT) to create a LoRa for a completion model capable of generating creative ASCII art. - How to use supervised fine-tuning (SFT) to create a QLoRa for a chat model. - How to fine-tune an LLM using Group Relative Policy Optimization (GRPO) to create an inference-time reasoning model like Deepseek-R1. - How to quantize and convert your fine-tuned model to GGUF - How to run your fine-tuned model locally with Ollama or llama.cpp. Github to resources used: https://github.com/vossenwout/llm-finetuning-resources Timestamps: 00:00:00 - Intro 00:02:00 - Why fine-tune your own LLM? 00:05:50 - Fine-tuning vs RAG 00:12:30 - How is ChatGPT trained? 00:16:25 - QLoRA fine-tuning explained 00:19:20 - Which LLM should I use? 00:26:53 - How to create a dataset? 00:31:26 - How to train for free? 00:34:30 - How to save and quantize model as GGUF 00:37:20 - Inference with Ollama 00:38:20 - LoRa fine-tuning a completion model with Unsloth 00:59:50 - QloRa fine-tuning a chat model with Unsloth 01:16:22 - Using GRPO to create a QloRa reasoning model with Unsloth #unsloth #finetuning #llm #lora #qlora #grpo #ollama #chatgpt #ai
Master LLM Tuning: Must-Have Essentials
AI-recommended products based on this video

Lenovo LOQ 15.6" FHD 144Hz Gaming Laptop, Intel Core i5-12450HX, NVIDIA GeForce RTX 2050, 16GB DDR5, 2TB Storage (1TB SSD+1TB Docking Station Set), Number Pad, 720p Camera, Wi-Fi 6, Win 11, Gray

MSI Ultra-Slim Thin 15 VR-Ready High FPS Gaming Laptop, 15.6 FHD 144Hz, Intel Core i5-13420H, NVIDIA GeForce RTX 4060, 32GB RAM, 2TB SSD, Backlit KB, Wi-Fi 6, Bundle with PCO Notebook Fold Radiator

acer Nitro 50 N50-620-UA91 Gaming Desktop | 11th Gen Intel Core i5-11400F 6-Core Processor | NVIDIA GeForce GTX 1650 | 8GB DDR4 | 512GB NVMe M.2 SSD | Intel Wi-Fi 6 AX201 | Keyboard and Mouse

Skytech Blaze 3.0 Gaming PC Desktop – Intel Core i5 12400F 2.5 GHz, NVIDIA RTX 3060, 500GB NVME SSD, 16GB DDR4 RAM 3200, 600W Gold PSU, 11AC Wi-Fi, Windows 11 Home 64-bit

MSI Ultra-Slim Thin 15 VR-Ready High FPS Gaming Laptop, 15.6 FHD 144Hz, Intel Core i5-13420H, NVIDIA GeForce RTX 4060, 32GB RAM, 2TB SSD, Backlit KB, Wi-Fi 6, Bundle with PCO Notebook Fold Radiator

Dell 24 Monitor - SE2425HM - 23.8-inch Full HD (1920x1080) 16:9 100Hz Display, IPS Panel, 16.70 Million Colors, Anti-Glare, 1 HDMI / 1 VGA Port, TÜV Rheinland 3-Star*, Comfortview Plus - Black

Dell S2425HS Monitor - 23.8 Inch, FHD (1920x1080) Display, 100Hz Refresh Rate 1500:1 Contrast Ratio, TÜV Rheinland Eye Comfort 4 Star, Integrated 2x5W Speaker, Height/Tilt/Swivel/Pivot - Ash White

USB C Docking Station Dual Monitor for Dell Hp,15-in-1 Laptop Docking Station 3 Monitors USB C Hub with Dual 4K HDMI,8K DP,Button,PD Charging,Ethernet,6 USB A&C,SD/TF, Audio USB-C Multiport Adapter

Dell G16 Gaming Laptop 7630-16-inch QHD+ 240Hz 3ms Display, Intel Core i9-13900HX, 32GB DDR5 RAM, 1TB SSD, NVIDIA GeForce RTX 4060 8GB GDDR6, Windows 11 Home, Onsite Service - Metallic Nightshade

Logitech M185 Wireless Mouse, 2.4GHz with USB Mini Receiver, 12-Month Battery Life, 1000 DPI Optical Tracking, Ambidextrous, Compatible with PC, Mac, Laptop - Black

Logitech G203 Wired Gaming Mouse, 8,000 DPI, Rainbow Optical Effect LIGHTSYNC RGB, 6 Programmable Buttons, On-Board Memory, Screen Mapping, PC/Mac Computer and Laptop Compatible - Black

Logitech G305 Lightspeed Wireless Gaming Mouse, Hero 12K Sensor, 12,000 DPI, Lightweight, 6 Programmable Buttons, 250h Battery Life, On-Board Memory, PC/Mac - Black


