Save this video free

UUtah CS 6340 NLP | Fall 2026 | LLM efficiency: QLoRA, Caching, Speculative Decoding

UofU Data Science · 1:21:04 · Watch on YouTube

Part of University of Utah CS 6340. See all 25 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

The lecture explains how QLoRA makes fine-tuning large language models more accessible by combining low-rank adapters with 4-bit quantization, then covers inference techniques that reduce recomputation or latency. It details NF4, double quantization, paged optimizers, KV caching and its memory costs, prompt caching, and speculative decoding, including a reported 65-billion-parameter QLoRA run on a 48 GB GPU and speculative-decoding speedups of up to 3× for summarization and 5× for coding tasks.

Key takeaways

Chapters

0:00 LoRA Adapters, Target Modules, and Rank Choices
6:00 Why LoRA Saves Training Memory Without Adding Inference Latency
7:30 QLoRA Stores Frozen Base Weights in Four Bits
11:00 NF4, Double Quantization, and Paged Optimizers
17:00 QLoRA Computation and the 65B-on-48GB Result
20:00 QLoRA Works with Different Fine-Tuning Objectives
26:00 Configuring QLoRA with Transformers and PEFT
32:00 Choosing Full Fine-Tuning, LoRA, or QLoRA
38:00 Autoregressive Decoding and the Need for KV Caching
43:00 KV Caching Reuses Earlier Keys and Values
48:00 KV Cache Memory Costs and Quantized Caches
54:00 Prompt Processing, Time to First Token, and Prompt Caching
59:00 Arrange Prompts to Maximize Exact-Prefix Cache Hits
1:04:00 Speculative Decoding Drafts Tokens with a Smaller Model
1:10:00 Speculative Decoding Rejection and Faster Variants
1:15:00 Efficiency Recap and Architectural Methods Ahead

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 So, we started to talk about parameter efficient fine tuning and then I introduced one approach to do so called LoRA, which if you remember is has those two adapters we called A and B which decompose each uh weight matrix uh into a product of those two and we assume they are low rank, so they together have less parameters than the full matrix uh has. And we change their weights rather than the uh you know the the full uh matrices weights. Uh so we introduced that but uh there are certain hyper parameters involved in uh LoRA. Uh so the first question is do we have uh adapters A and B for every single weight uh in our transformer architecture and we have many of such

0:48 weight matrices. In the original LoRA paper they have actually um recommended um to apply adapters only to attention heads. Uh they tried to add more that didn't really uh improve performance, so by having less adapters you have less parameters to train and everything is uh faster, right? Because you have uh less memory uh uh that that you you have less less uh consumption uh of the GPU memory. Um however for Q LoRA which is an advancement atop of LoRA that will I will introduce um today. Um Q LoRA authors have recommended to actually uh change the weights of all linear transformations, so all weight

1:39 matrices that are involved in a linear mapping of token representations. So their recommendation is a is a is a uh bit different. So you're not just changing attention heads which themselves have query, key and value linear transformations but all linear transformation in the um in the transformer and they found that is especially important for larger models. So, I would say this is yet

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, UofU Data Science.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.