~/talk

Memory-Efficient AI: How PEFT and PyTorch Enable Accessible LLM Fine-Tuning

Talkat DevConf.IN 2026 · on Friday, 2026-02-13· at 11:15· VYAS - 1 - Room#VY103· [machine-learning, large-language-models]
links:none on file
slides:none on file

Full fine tuning of a 7B model needs roughly 112 GB of GPU RAM and multi‑GB checkpoints per task, while PEFT trains only 0.1–2% of parameters and cuts memory ~3–4× with per‑task checkpoints down to 2–10 MB. LoRA replaces big weight matrices with low‑rank factors (example: 16.7M → ~131k params, ~128× smaller) and generally yields better quality; prefix tuning uses virtual tokens and is even lighter. Implementation relies on PyTorch features like module wrapping, nn.ModuleDict for dynamic adapters, autograd requires_grad=False to avoid optimizer state bloat, and optional custom CUDA extensions for speed.

AI-written summary · about

  1. 0:00Introduction
  2. 0:53Full tuning costs and limits
  3. 1:58PEFT with LoRA and prefix tuning
  4. 2:20LoRA reduces memory with low-rank matrices
  5. 3:27LoRA configuration keys
  6. 4:30LoRA architecture and weight merging
  7. 5:12Prefix tuning memory gains
  8. 6:39PyTorch’s PEFT role
  9. 7:21LoRA layer injection wrapper
  10. 8:03Autograd memory savings
  11. 9:30Dynamic graphs for multi-task training
  12. 10:12PEFT setup with PyTorch
  13. 11:22Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.