esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • AI papersPages
  • Interview KitPages
  • Book a callContact
  • Download ResumeContact
Let’s talk

I’ll build the agent for it.

What Is PEFT?

What PEFT is, why it saves memory and storage, and how LoRA and adapters work, for your AI interview.

In short

PEFT, parameter-efficient fine-tuning, adapts a large pre-trained model by training only a small number of its parameters, often as a small add-on. The original weights usually stay frozen, so training and storage cost far less, and results can be comparable to full fine-tuning.

11 min readIntermediateCommon · estimateFacts checked 26 November 2026

Say it out loud

Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.

PEFT stands for parameter-efficient fine-tuning. Instead of retraining every weight in a large model, you freeze most of the original weights and train a small part, often an add-on. LoRA is one such version. It adds two small matrices to each layer, so only a tiny share of the weights get trained. The gain is lower memory and storage, and results can be comparable to full fine-tuning. Comparable is not the same as identical, so you still test it on your own task.

What is PEFT, in plain words?

A bank hires a senior analyst who already knows finance. Rather than send them back to school for every new desk, the bank gives them one short course on that desk's own rules. Their old knowledge stays where it was.

A large model works the same way: it is pre-trained, so it already knows a lot of language. Fine-tuning is a short course on your task: you train the model further on your own examples. Full fine-tuning updates every weight, the numbers inside the model that training adjusts. Weights are also called parameters. PEFT updates only a small part.

Key words

Pre-trained model
A model already trained on a large, general set of text, before your task.
Fine-tuning
Further training on your own examples, so the model fits your task.
Frozen weights
Weights locked on purpose, so training does not change them.
Add-on
A small set of new weights trained on top of the frozen model.
Matrix
A grid of numbers. LoRA trains two small grids beside each layer.

A survey first submitted in March 2024 defines PEFT as adjusting a pre-trained large model for a specific task while minimising the number of additional parameters and the computing resources it needs. The Hugging Face PEFT library collects many such methods, and it is integrated with the Transformers, Diffusers and Accelerate libraries.

Why is full fine-tuning too heavy?

Full fine-tuning updates every weight, so every task ends up with its own full copy of the model. The LoRA paper says this gets harder as models grow. The adapter paper, from 2019, said the same about many tasks:

  • “As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible.”

    LoRA paper, 2021

  • “fine-tuning is parameter inefficient: an entire new model is required for every task.”

    Adapter paper, 2019

So there are two costs: the compute to train every weight, and the storage and serving of one full copy per task. PEFT aims at both.

Twelve teams, two ways to store them

Full fine-tuning

12 full copies

Each team keeps every weight

PEFT with LoRA

1 base, 12 add-ons

Base shared, add-ons small

Heavy to store

6,442,450,944 weights (made-up)

Light to store

562,036,736 weights in total

  1. 1Each team stores its own full copy, so storage grows by a whole model per team.
  2. 2Storage grows only by one small add-on per team, on top of one shared base.
Twelve full copies of a model store far more weights than one shared base with twelve small add-ons. The numbers come from the made-up example further down.

How does LoRA make a small add-on?

LoRA is one PEFT method, and the one this answer explains in detail. The paper proposes freezing the pre-trained weights and injecting trainable rank decomposition matrices into each layer, so far fewer parameters get trained.

  1. 1

    Freeze the base

    The base model's weights are locked. Training never changes them.

  2. 2

    Add two small matrices

    For each weight table, add a tall, thin matrix and a short, wide one. Their narrow middle is the rank r, a small number you choose.

  3. 3

    Train only those

    Normal training updates just the two small matrices, not the table itself.

  4. 4

    Save the small file

    The output is the base output plus the add-on's change. You store only the small file per team.

How LoRA adds a small trained part

Your input

Same input for both paths

Base model

Pre-trained, frozen

Small add-on

Matrix A

Shrinks input to a few numbers

Matrix B

Grows it back to full width

Tuned answer

Base output plus the change

  1. 1The input goes into the frozen base model.
  2. 2The add-on reads that same input at the same time.
  3. 3Matrix A shrinks it to a few numbers, then matrix B grows it back.
  4. 4The add-on's change is sent on to the answer.
  5. 5The base output goes to the same answer, and the two are added.
The same input feeds the frozen base model and a pair of small matrices. Their two outputs are added. Only the matrices are trained.

Here is the arithmetic for one weight table, then for a bank with twelve teams. The numbers are made up. The arithmetic is real.

Python
# A made-up bank: 12 teams each want their own tuned version of one base model.
# Every number here is made up, to show the shape of the saving.
TABLES = 32   # weight tables in the base model (made-up)
WIDTH = 4096  # rows and columns in each table (made-up)
RANK = 8      # size of the LoRA add-on for each table (made-up)
TEAMS = 12

one_table = WIDTH * WIDTH                     # weights in one table
one_addon = RANK * (WIDTH + WIDTH)            # trained weights for one table
print(f"One table, full training: {one_table:,} weights")
print(f"One table, LoRA add-on:   {one_addon:,} weights ({one_addon / one_table:.2%})")

base = TABLES * one_table                     # the frozen base model
addon = TABLES * one_addon                    # what each team trains and stores
full_copies = TEAMS * base
peft_total = base + TEAMS * addon
print(f"Full copies for {TEAMS} teams: {full_copies:,} weights")
print(f"One base plus {TEAMS} add-ons:  {peft_total:,} weights")
print(f"Weights saved: {full_copies - peft_total:,}")

Output

One table, full training: 16,777,216 weights
One table, LoRA add-on:   65,536 weights (0.39%)
Full copies for 12 teams: 6,442,450,944 weights
One base plus 12 add-ons:  562,036,736 weights
Weights saved: 5,880,414,208

Read the last lines as the bank's storage bill. Twelve full copies hold 6,442,450,944 weights. One base plus twelve add-ons holds 562,036,736. That is far less to train and store, and the results still need measuring.

What are the other PEFT methods?

  • Adapters

    Small layers inside the model

    Adapter modules are added per task. In the 2019 adapter paper's tests, they came within 0.4% of full fine-tuning on GLUE, adding 3.6% parameters per task.

  • Prompt tuning

    Learned soft prompts

    A short set of learnable vectors goes in with the input, while the model stays frozen. They are not human readable.

  • LoRA

    Small matrices beside each layer

    Freezes the base and trains low-rank matrices. The paper says that, unlike adapters, it adds no inference latency.

The PEFT quick tour puts prompt tuning and LoRA side by side: train a smaller number of prompt parameters, or reduce the trainable parameters with a method like LoRA. The LoRA paper adds that, unlike adapters, LoRA adds no inference latency.

What are the trade-offs?

  • Less memory and cost

    Training and storage need far less. This is the main win.

  • Quality to measure

    Results can differ from full fine-tuning, so test on your own data.

  • Settings to tune

    The rank, and which layers to adapt, need tuning too.

  • Base still loads

    You still load the full base model to run it.

  • “yielding performance comparable to a fully fine-tuned model”

    Hugging Face PEFT docs

  • “unlike adapters, no additional inference latency”

    LoRA paper, 2021

In its GPT-3 test, the LoRA paper says LoRA can reduce trainable parameters by 10,000 times and GPU memory needs by 3 times, compared with full fine-tuning using Adam.

Tip

Asked about PEFT's cost, lead with lower training and storage. Then say the quality has to be measured against a full fine-tune or a clear baseline on your data.

How would you pick PEFT for twelve teams at a bank?

The bank's twelve teams each want a tuned assistant for their own work, such as card disputes, loan letters and branch FAQs. This is the order I would work in.

  1. 1

    Try good prompts and documents first

    Good instructions, examples and reference documents often solve it. Tuning is for what those cannot fix, such as a house writing style.

  2. 2

    Use PEFT where weights must learn

    LoRA fits when a team has enough examples and the base model has to learn the style or the task.

  3. 3

    Share one base, one add-on per team

    Serve the base once and load each team's small add-on. The adapter paper says new tasks can be added without revisiting previous ones.

  4. 4

    Measure each add-on against the base

    Test on held-out cases from that team's own work, and keep the list of failures before every release.

What does the interviewer want to hear?

A strong answer covers

  • A plain definition: train a small add-on, and freeze the rest.
  • Why it exists: full fine-tuning is heavy to train and to store.
  • The main methods, with LoRA first.
  • The trade-off: far less compute, and quality to be measured.
  • A storage example: one base plus small add-ons.
  • Honest limits: comparable is not the same as identical.

Common traps

  • Trap"PEFT is a smaller model you train from scratch."

    BetterPEFT is a way to adapt a pre-trained model with a small set of added weights.

  • Trap"PEFT always matches full fine-tuning."

    BetterThe docs say comparable performance. Test on your own data before you claim it.

  • Trap"PEFT means no GPU is needed."

    BetterIt cuts training and storage load. The base model still has to load and run on real hardware.

Can you pick the right plan?

Spot the right plan

A team wants its loan-letter assistant to write in the house style. Which plan uses PEFT correctly?

Quick check

Which statement about LoRA is true?

Can you answer these from memory?

Flash cards · tap a card to flip it

1 / 6

What will they ask next?

  1. Q282What is full fine-tuning?10 min
  2. Q284What is LoRA?10 min
  3. Q285What is QLoRA?10 min
  4. Q286What does LoRA rank mean?10 min
  5. Q281Fine-tune vs RAG vs prompting: when to use which?10 min
  6. Q287What is SFT / instruction tuning?11 min

Learn it in depth

Last updated on 26 November 2026

Fine-tuning a model for your team's own work?

I design and build AI products and agents, including the screens and the system behind them. Book a short call and tell me what you need the model to learn, and what a good answer looks like.