LoRA and QLoRA: fine-tune an open LLM on one GPU

13 steps · about 7 h 25 min · Intermediate

  1. LoRA (Low Rank Adaptation) Explained With Code & Analogy (video, YouTube, 15 min)

    It gives you an intuitive picture of low-rank updates before you meet any formulas or library code.

  2. LoRA & QLoRA Explained Simply (video, YouTube, 30 min)

    It extends the basic idea to quantization and shows how the two fit together.

  3. Master LoRA and QLoRA: Fine-Tuning LLMs on Consumer GPUs (article, Let's Data Science, 25 min)

    It explains why full fine-tuning needs so much memory and how LoRA's A and B matrices avoid that, with code you can read before running anything.

  4. Fine-tuning LLMs Guide (doc, Unsloth, 25 min)

    It helps you choose a model and a method (LoRA, QLoRA or full fine-tuning) and explains the main settings before you train.

  5. Datasets Guide (doc, Unsloth, 20 min)

    Data quality and format decide how well a fine-tune works, so you prepare the dataset before you train.

  6. LoRA fine-tuning Hyperparameters Guide (doc, Unsloth, 20 min)

    It covers rank, alpha, learning rate and dropout, the settings you will actually tune in your run.

  7. LoRA · Hugging Face (doc, Hugging Face PEFT docs, 25 min)

    This is the official reference for LoraConfig, initialization and QLoRA-style training, so you know what each option does.

  8. huggingface/peft: State-of-the-art Parameter-Efficient Fine-Tuning (repo, GitHub / Hugging Face, 15 min)

    Its quickstart shows the whole wrap, train, save and load cycle in a few lines, so you see the shape of a LoRA project.

  9. PEFT Integration (doc, Hugging Face TRL docs, 30 min)

    It shows how to run supervised fine-tuning with LoRA or QLoRA through SFTTrainer, which is the training step in your first real run.

  10. Fine-Tuning a 7B LLM on a Single GPU Is Now a Weekend Project (article, Chirag Hasija, 1 h)

    It walks through a complete 24 GB GPU project, including evaluating against the base model and when a system prompt is enough.

  11. Tutorial about LLM Finetuning with QLORA on a Single GPU (repo, GitHub (OValery16), 1 h 30 min)

    A second end-to-end QLoRA example that you can run and compare with your first attempt.

  12. LoRA: Low-Rank Adaptation of Large Language Models (reference, arXiv (Hu et al.), 45 min)

    Once you have trained an adapter, the original paper explains why the low-rank idea works.

  13. QLoRA: Efficient Finetuning of Quantized LLMs (reference, arXiv (Dettmers et al.), 45 min)

    It covers 4-bit NF4, double quantization and paged optimizers, the tricks that let big models fit on one GPU.