productinterview.tools
MenuClose

How Much GPU Memory to Fine-Tune a 7B Model?

The interviewer asksA team wants to fine-tune a 7B model. How much GPU memory does full fine-tuning need, and what are the alternatives?

AI Infrastructure PMModel PMForward Deployed Engineer (secondary)AdvancedTechnical roundRepresentative5–7 min

On this page
  1. The 30-second version
  2. What it's really testing
  3. How to structure your answer
  4. The interview, played out
  5. The strong answer, distilled
  6. How it's scored
  7. How the answer changes by role
  8. Common mistakes
  9. More follow-ups to practise
  10. Go deeper
  11. Sources

The 30-second version

  1. Full fine-tuning with a standard optimiser needs weights, gradients and optimiser state.
  2. Rule of thumb in mixed precision: ~16 bytes per parameter → 7B × 16 ≈ 112 GB, before activations.
  3. So full fine-tuning needs several GPUs.
  4. Adapter methods train a small add-on and freeze the base: far less memory.
  5. With the base model quantised to 4-bit (~3.5 GB), adapter training fits on one consumer-grade GPU.

Watch it played outSee the strong answerHow it's scored

What it's really testing

  • Training memory breakdown
  • Adapter alternatives
  • Practical recommendations

How to structure your answer

  1. Break down memory.
  2. Estimate.
  3. Alternatives.
  4. Recommend.

The interview, played out

A written example interview, not a real candidate or company transcript.Strong moveMissed signal
  1. Interviewer
    A team wants to fine-tune a 7B model. How much GPUGraphics processing unit. The chips most AI models are trained and served on. Read the full explanation memory does full fine-tuning need?
  2. Candidate
    Training holds more than the weights: the weights, their gradients, and the optimiser's state, which for the usual optimiser is two extra values per parameter, typically kept at higher precision. The common rule of thumb is about 16 bytes per parameter in mixed precision.
  3. Strong move
    Breaks memory into its parts.
  4. Candidate
    7 billion × 16 bytes ≈ 112 GB, plus activations, so several 80 GB GPUs.
  5. Interviewer
    Alternatives?
  6. Candidate
    Adapter methods: freeze the base model and train a small add-on, a fraction of a percent of the parameters. Gradients and optimiser state are only needed for the add-on. With the base model loaded at 4-bit, about 3.5 GB, it can fit on a single 24 GB GPU.
  7. Missed signal
    Should mention activations grow with sequence length and batch size.
  8. Candidate
    Activations still grow with sequence length and batch size, so long examples need more memory.

The strong answer, distilled

  • Breakdown: weights + gradients + optimiser state (+ activations).
  • Estimate: ~16 bytes/param → ~112 GB for 7B, plus activations: multi-GPU.
  • Adapters: freeze base, train small add-on; tiny optimiser state.
  • Quantised base: 4-bit (~3.5 GB) + adapters fits on one 24 GB GPU.
  • Watch: activations scale with sequence length and batch.

This is one strong answer, not the only one.

How it's scored

Dimension Weak (2) Passable (3) Strong (5)
Breakdown Weights only Weights and gradients Weights, gradients, optimiser, activations
Estimate None Rough ~16 bytes/param applied
Alternatives None Smaller model Adapters with quantised base

Round scorecard: AI Infrastructure PM: technical round, filled in for the mock candidate

DimensionWeakPassableStrongThe mock candidate
StructureJumps to a number.Some steps.Formula first, steps said out loud.Strong. Broke memory into weights, gradients and optimiser state.
AssumptionsHidden or wrong.Stated.Stated, reasonable, and the sensitive ones identified.Strong. Used ~16 bytes per parameter for mixed-precision Adam.
Technical depthWeights only.Weights and throughput.Weights, KV cache, batching and latency targets.Strong. Knew adapter methods change the picture.
Product judgmentStops at the number.Mentions cost.Turns the estimate into a capacity and cost decision.Passable. Mentioned activations only when asked.

How the answer changes by role

Role What to emphasise
AI Infrastructure PMProduct Manager. Decides what a product should do, for whom, and why. Read the full explanation Hardware planning
Model PM When full fine-tuning is worth it
Forward Deployed EngineerForward Deployed Engineer. An engineer embedded with customers who scopes, builds and ships AI solutions into production. Read the full explanation Fine-tuning options for customers

Common mistakes

  • Counting only weights
  • Assuming full fine-tuning is the only option
  • Ignoring sequence length

More follow-ups to practise

  • "Is adapter quality as good?" Hint: often close for narrow tasks; test it.
  • "Should they fine-tune at all?" Hint: check prompting and retrieval first.

Go deeper

Sources

Representative question: written to match technical rounds for AI product roles, not a specific reported interview.