2 artifacts
Tap to collapse details
Fine-tuning adapts pre-trained LLMs to specific tasks by updating weights on custom data. Learn Supervised Fine-Tuning (SFT), LoRA/QLoRA for efficiency (train ~1% parameters, 70% less VRAM).
Use Google Colab (free GPU) or local setup:
pip install "unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git" pip install --no-deps trl peft accelerate bitsandbytes xformers datasets
Login to Hugging Face:
from huggingface_hub import login login()
Why? Builds foundation to avoid errors later.
❌ Skipping HF login for gated models
→Run login() early and accept model licenses
❌ Using incompatible CUDA/PyTorch versions
→Use Unsloth's [colab-new] for latest compat
Tap to expand details
Spin up a personalized “learn fine-tuning LLMs” plan you can save, check off, and return to anytime — unlimited on the free trial.
DeepLearning.AI
Coursera
by DVG
by Sebastian Raschka
Official guide with Trainer API examples
Efficient QLoRA tutorials and notebooks
API-based fine-tuning for GPT models
2x faster fine-tuning with 70% less VRAM
Core library for loading/training LLMs
SFTTrainer for supervised fine-tuning