---
title: Roughly how much GPU memory does full fine-tuning of a 7B model with Adam in mixed precision need, compared with LoRA…
url: https://gurkanozkan.ai/learn/questions/applied-llm-ft-09/
markdown: https://gurkanozkan.ai/learn/questions/applied-llm-ft-09.md
kind: question
role: Applied LLM
stage: Technical
difficulty: Medium
json: https://gurkanozkan.ai/api/learn/questions/applied-llm-ft-09.json
robots: noindex
---

# Roughly how much GPU memory does full fine-tuning of a 7B model with Adam in mixed precision need, compared with LoRA and QLoRA?

Applied LLM · Technical · Medium

Theme reported publicly: [Isomorphic Labs](https://boards-api.greenhouse.io/v1/boards/isomorphiclabs/jobs?content=true)

## Answer

*Model answer, written in a candidate's voice*

### In short

- Full fine-tune: ~16 bytes/param before activations (bf16 weights 2 + bf16 grads 2 + fp32 master 4 + Adam m/v 8) ≈112 GB for 7B, plus activations; needs sharding/ZeRO/FSDP, checkpointing, multiple GPUs.
- LoRA: frozen bf16 base ≈14 GB + tiny adapter weights/optimizer state + activations; one 24–48 GB GPU depending on sequence length and batch.
- QLoRA: 4-bit base ≈3.5–4 GB plus scales/overheads and LoRA state; fits consumer-class GPU.
- Activations scale with batch × sequence × layers; gradient checkpointing trades compute for memory.

### In full

Full fine-tuning a 7B model with Adam in mixed precision is roughly 16 bytes per parameter before activations: bf16 weights (2) + bf16 gradients (2) + fp32 master weights (4) + Adam m and v (8), so about 112 GB for 7B, plus activation memory that grows with batch size, sequence length, and layers. In practice that means ZeRO/FSDP sharding, gradient checkpointing, and several GPUs rather than a single card. LoRA keeps the base frozen, so you pay about 14 GB for bf16 weights plus a small adapter and its optimizer state, and it can fit on one 24–48 GB GPU depending on sequence length and batch. QLoRA quantizes the base to 4-bit, roughly 3.5–4 GB plus overheads, and can run on a consumer-class GPU with LoRA adapters and checkpointing. The main caveat is that activations are not eliminated by either method; they scale with batch × sequence × layers, and checkpointing trades extra compute for lower memory.

*Checked against sources by an independent AI reviewer.*

## What a strong answer covers

- Full fine-tune ≈ 16 bytes/parameter before activations: bf16 weights (2) + bf16 grads (2) + fp32 master weights (4) + Adam m and v (8) → ≈112 GB for 7B → sharding (ZeRO/FSDP), gradient checkpointing, several GPUs
- LoRA: frozen bf16 base ≈14 GB + tiny adapter state + activations → one 24–48 GB GPU depending on sequence length and batch
- QLoRA: 4-bit base ≈3.5–4 GB plus overheads → consumer-class GPU
- Activations scale with batch × sequence × layers; checkpointing trades compute for memory

## Common mistakes

- Forgetting optimiser states (the largest term)
- ignoring activation memory at long sequence lengths

## Topic guides

- [Compute and memory efficiency](https://gurkanozkan.ai/learn/topics/efficiency.md)
- [Distributed training and parallelism](https://gurkanozkan.ai/learn/topics/distributed-training.md)
- [Fine-tuning, LoRA and distillation](https://gurkanozkan.ai/learn/topics/fine-tuning.md)
---

*Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.*
