mej7.comHow AI Works

LoRA / PEFT

Lesson 9 of 10 · Advanced level · interactive visualization (simplified teaching model)

PEFT

LoRA: low-rank adapters

Freeze W, train small matrices A·B so ΔW ≈ BA — millions of trainable params instead of billions.

W (frozen)+B @ A→W′
h = W @ x + (B @ A) @ x   # rank r ≪ d