Full fine-tuning with AdamW needs about 16 bytes of GPU memory per parameter, LoRA just over 2 and QLoRA under 1, plus a few GB of activations per sequence. Nodus fine-tuning jobs pick their GPU from presets matched to the model and method, but the numbers are worth knowing: an 8B model needs about 135 GB for full fine-tuning, 21 GB for LoRA and 11 GB for QLoRA. A 70B model needs about 1,136 GB, 152 GB and 50 GB, assuming one 4,096-token sequence per GPU with gradient checkpointing on.
This is the sizing method for any model size. Our 70B VRAM breakdown goes deeper on that one size, and LoRA vs QLoRA covers the quality and speed side of the choice. Every number here is our own arithmetic from published formulas and each model's config.json, read on November 26, 2026, in decimal gigabytes.
Weights, gradients, optimizer state and activations share the card. The methods differ in which of the first three they pay for on every parameter.
| Bytes per parameter | Full (AdamW) | LoRA | QLoRA |
|---|---|---|---|
| Base weights | 2 | 2 (frozen) | 0.516 on linear layers, 2 on embeddings |
| Gradients | 2 | none for the base | none for the base |
| Optimizer: FP32 master copy, momentum, variance | 12 | none for the base | none for the base |
| Adapter, with its gradients and Adam state | none | 16 per adapter parameter | 16 per adapter parameter |
Full fine-tuning follows the ZeRO paper: 2 + 2 + 12 = 16 bytes for mixed-precision Adam. An 8-bit optimizer from bitsandbytes stores each Adam moment in 1 byte instead of 4, which brings it to 10. LoRA freezes the base and trains low-rank matrices beside it, so only the adapter pays the 16 bytes. A rank-16 adapter on all seven linear projections of each layer adds 16 x (input size + output size) parameters per projection, between 0.3% and 0.9% of the models below.
QLoRA stores the frozen linear layers in 4-bit NF4. That is 0.5 bytes, plus 0.127 bits per parameter for the double-quantized scaling constants, or 0.516 bytes. Embedding and output layers stay at 16 bits, which is why small models come out closer to 0.85 bytes per parameter than 0.5.
Activations come on top. With gradient checkpointing, each layer keeps only its input and recomputes the rest during the backward pass. Korthikanti et al. put that at 2 bytes x sequence x batch x hidden size per layer. Add the FP32 logits over the vocabulary, and the whole estimate is one formula:
memory = params x bytes per param (method) + adapter params x 16
+ 2 x seq x batch x hidden x layers # checkpointed activations
+ 4 x seq x batch x vocab # FP32 logits
For Qwen3-14B with one 4,096-token sequence, that gives the split in the chart below. Full fine-tuning spends 29.5 GB on weights, 29.5 GB on gradients and 177.2 GB on optimizer state. LoRA keeps the 29.5 GB base and adds a 1.0 GB adapter, and QLoRA shrinks the base to 9.9 GB. Activations are 4.2 GB in all three, and the rounded parts of the full run add to 240.4 GB against an exact 240.5 GB.
Optimizer state is three quarters of a full fine-tune; LoRA and QLoRA skip it for every frozen weight.
Here is the formula applied to five real models, with the smallest single GPU or machine that holds each run. Parameter counts and layer sizes come from each model's config, and our computed counts match the Hugging Face safetensors totals exactly.
| Model | Full fine-tuning, AdamW | LoRA, rank 16 | QLoRA, rank 16 |
|---|---|---|---|
| Llama 3.2 1B (1.24B) | 22.1 GB, 1 x RTX 5090 | 5.0 GB, 1 x RTX A4000 | 3.6 GB, 1 x RTX A4000 |
| Qwen3-8B (8.19B) | 134.7 GB, 1 x B200 | 20.8 GB, 1 x RTX 3090 | 10.5 GB, 1 x RTX A4000 |
| Qwen3-14B (14.77B) | 240.5 GB, 1 x B300 | 34.7 GB, 1 x RTX A6000 | 15.1 GB, 1 x RTX 3090 |
| Qwen3-32B (32.76B) | 529.4 GB, 4 x B200 | 72.8 GB, 1 x RTX PRO 6000 | 26.5 GB, 1 x RTX 5090 |
| Llama 3.3 70B (70.55B) | 1,136 GB, 8 x B200 | 151.9 GB, 1 x B200 | 50.3 GB, 1 x A100 80 GB |
Assumptions: one 4,096-token sequence per GPU (micro-batch 1, raise the effective batch with gradient accumulation), BF16, gradient checkpointing on, fused attention, FP32 logits. A GPU fits when the estimate is at most 90% of its memory, leaving room for the CUDA context and fragmentation.
Multi-GPU rows assume fully sharded training such as PyTorch FSDP, where each GPU holds its share of the model state plus its own sequence. For 70B on 8 x B200 that is 1,128.9 / 8 + 7.5 = 148.6 GB per GPU, against a 162 GB budget, or about 1,189 GB summed across the eight.
Prices checked November 26, 2026: the RTX A4000 is listed at $0.173/hr, RTX 3090 at $0.180/hr, RTX 5090 at $0.480/hr, RTX A6000 at $0.333/hr, A100 80 GB at $1.090/hr, RTX PRO 6000 at $1.350/hr, B200 at $5.500/hr and B300 at $6.943/hr per GPU on the Nodus pricing page.
Two rows stand out. Qwen3-32B with LoRA needs 72.8 GB, just over the 72 GB budget of an 80 GB card. A 96 GB RTX PRO 6000 is the smallest fit, though 2,048-token sequences would bring it back under. And a full fine-tune of an 8B model fits one 180 GB B200 by memory, even though it is more often spread across several GPUs to finish sooner.
QLoRA's advantage grows with size: about 1.4 GB saved at 1B, about 100 GB at 70B.
Under checkpointing, activations grow in a straight line with the tokens per micro-batch. LoRA on Qwen3-8B needs 20.8 GB at 4,096 tokens and 31.9 GB at 16,384, because activations rise from 3.7 GB to 14.8 GB.
Turning checkpointing off costs far more. Korthikanti et al. put stored activations at 34 bytes x sequence x batch x hidden size per layer with fused attention, 17 times the checkpointed figure. For the same Qwen3-8B LoRA run at 4,096 tokens, activations jump to 23.0 GB and the total to 40.1 GB, which no longer fits a 24 GB card.
Checkpointing trades some extra compute for the activations; here it is the difference between a 24 GB and a 48 GB card.
Small models have a quirk. For Llama 3.2 1B, 2.1 of its 2.4 GB of activations are the FP32 logits over a 128,256-token vocabulary, so the vocabulary, not the depth, sets the floor.
Run the formula against its config. We wrote this estimator for this post and ran it on November 26, 2026, on a CPU with the Python standard library only. It handles dense Llama- and Qwen3-style configs; mixture-of-experts models need their expert sizes added.
"""Estimate GPU memory to fine-tune a Llama/Qwen-style model from its config.json (stdlib only)."""
import json, sys
GB = 1e9
GPUS = [("RTX A4000", 16, False), ("RTX 3090", 24, False), ("RTX 5090", 32, False),
("RTX A6000", 48, False), ("A100 80 GB", 80, True), ("RTX PRO 6000", 96, False),
("H200", 141, True), ("B200", 180, True), ("B300", 288, True)]
USABLE = 0.9 # plan with 90% of each card
def estimate(cfg, seq=4096, batch=1, rank=16, checkpointing=True):
h, L, V = cfg["hidden_size"], cfg["num_hidden_layers"], cfg["vocab_size"]
hd = cfg.get("head_dim") or h // cfg["num_attention_heads"]
q, kv, inter = cfg["num_attention_heads"] * hd, cfg["num_key_value_heads"] * hd, cfg["intermediate_size"]
shapes = [(h, q), (h, kv), (h, kv), (q, h), (h, inter), (h, inter), (inter, h)] # q,k,v,o,gate,up,down
linear = L * sum(i * o for i, o in shapes)
embed = V * h * (1 if cfg.get("tie_word_embeddings") else 2)
norms = L * 2 * h + h + (L * 2 * hd if cfg.get("model_type") == "qwen3" else 0)
params = linear + embed + norms
adapter = L * sum(rank * (i + o) for i, o in shapes)
per_layer = 2 if checkpointing else 34 # bytes x s x b x h per layer, Korthikanti et al.
act = per_layer * seq * batch * h * L + seq * batch * V * 4 # + FP32 logits
return params, adapter, {
"Full, AdamW": (16 * params, act),
"Full, 8-bit Adam": (10 * params, act),
"LoRA": (2 * params + 16 * adapter, act),
"QLoRA": (linear * (0.5 + 0.127 / 8) + 2 * (embed + norms) + 16 * adapter, act),
}
def smallest_fit(state, act):
for n in (1, 2, 4, 8):
for name, mem, multi in GPUS:
if (n == 1 or multi) and (state / n + act) / GB <= USABLE * mem:
return f"{n} x {name}"
return "more than one 8-GPU machine"
if __name__ == "__main__":
seq = int(sys.argv[2]) if len(sys.argv) > 2 else 4096
params, adapter, rows = estimate(json.load(open(sys.argv[1])), seq=seq)
print(f"{sys.argv[1]}: {params / 1e9:.2f}B params, rank-16 adapter {adapter / 1e6:.1f}M, "
f"seq {seq:,}, micro-batch 1, gradient checkpointing")
for method, (state, act) in rows.items():
print(f" {method:17s} {state / GB:7.1f} GB + {act / GB:4.1f} GB activations "
f"= {(state + act) / GB:7.1f} GB -> {smallest_fit(state, act)}")
Download a config and pass it in, with an optional sequence length as the second argument:
$ curl -sL https://huggingface.co/Qwen/Qwen3-14B/resolve/main/config.json -o Qwen_Qwen3-14B.json
$ python3 ft_vram.py Qwen_Qwen3-14B.json
Qwen_Qwen3-14B.json: 14.77B params, rank-16 adapter 64.2M, seq 4,096, micro-batch 1, gradient checkpointing
Full, AdamW 236.3 GB + 4.2 GB activations = 240.5 GB -> 1 x B300
Full, 8-bit Adam 147.7 GB + 4.2 GB activations = 151.9 GB -> 1 x B200
LoRA 30.6 GB + 4.2 GB activations = 34.7 GB -> 1 x RTX A6000
QLoRA 11.0 GB + 4.2 GB activations = 15.1 GB -> 1 x RTX 3090
Treat the result as a floor. Run one step on your longest sequence and compare it with torch.cuda.max_memory_allocated() before committing to a long run.
Start from the cheapest method that is good enough, then size the GPU.
A Nodus TrainingJob on the nodus/sft runtime (Beta) takes its resources from the first preset matching the model, method and quantization, and anything you set under spec.resources wins (training guide). The runtime reference lists the presets. Qwen3-8B with QLoRA runs on one L40S, RTX A6000 or A100 80 GB, and Qwen3-8B full fine-tuning on 8 x H100. Models without a preset get the default: one RTX 4090, L40S, RTX A6000 or A100 80 GB.
The runtime's defaults matter for the math. It uses method: LoRA with rank 16 and alpha 32, gradientCheckpointing: true, batchSize: 4 and maxLength: 2048.
That is 8,192 tokens per GPU per step, twice our table's assumption. For Qwen3-14B with QLoRA, which has no preset, activations become 8.3 GB and the total 11.0 + 8.3 = 19.3 GB. That fits every default GPU, including the 21.6 GB budget of a 24 GB RTX 4090.
Here is the guide's LoRA example with that model and method: QLoRA, pinned to a Qwen3-14B revision:
apiVersion: nodus.dev/v1beta1
kind: TrainingJob
metadata:
name: support-sft
spec:
runtime: nodus/sft
model:
uri: hf://Qwen/Qwen3-14B@40c069824f4251a91eefaf281ebe4c544efd3e18
data:
volume: support-chats # a Volume holding chats.jsonl
path: chats.jsonl
format: JSONL
columns: {prompt: question, completion: answer}
parameters:
method: QLoRA
steps: 2000
lora: {r: 16, alpha: 32}
maxCostUSD: "20.00"
Before anything runs, nodus apply -f sft.yaml --dry-run -o yaml compiles the job, shows the chosen resources and prices the run to completion.
The QLoRA paper reports that 4-bit NF4 with LoRA adapters matched 16-bit fine-tuning on its benchmarks, and it fine-tuned a 65B model on one 48 GB GPU. Check it on your own evaluation set, since that result covers the paper's tasks only.
Memory sets the minimum, not the speed. Eight GPUs split each step and finish sooner, so the GPU-hours, which are what you pay for, can come out similar while the wall clock drops.
Almost none. It sums gradients from several micro-batches before one optimizer step, so activations stay at one micro-batch. On Nodus, the nodus/sft runtime defaults to gradientAccumulation: 4.
Use total parameters, not active ones, for weights, gradients and optimizer state. Every expert sits in memory even though each token uses only a few.
Originally published on the Nodus blog.