How much VRAM do you need to fine-tune an LLM?
About 16 bytes per parameter for full fine-tuning, 2 for LoRA and under 1 for QLoRA, plus activations. Sizes from 1B to 70B and the GPU each needs.
About 16 bytes per parameter for full fine-tuning, 2 for LoRA and under 1 for QLoRA, plus activations. Sizes from 1B to 70B and the GPU each needs.
Gradient checkpointing recomputes activations in the backward pass to save GPU memory. How it works, PyTorch and Hugging Face code, and when it pays.
Named open models that fit in 8, 16 and 24 GB of VRAM at real quantizations, how much context each leaves, and when to move up to a bigger GPU on Nodus.
Budget AI GPUs ranked by list price per GB of VRAM, what 12 and 16 GB fit, and the hours-per-month rule for when per-hour jobs on Nodus beat buying.
Add weights (params x bytes) to the KV cache (2 x layers x KV heads x head size x bytes x tokens), then divide by 0.92. Worked examples and GPU sizes.
Read what the OOM error says, then cut the biggest consumer: activations, optimizer state or fragmentation. An ordered checklist with GB math and code.
Use LoRA when the 16-bit model fits your GPU and QLoRA when it does not. Memory math, a cost break-even rule and the Nodus config for both.
A 70B model needs 40 to 141 GB for weights plus a KV cache to serve, and 50 GB to 1.1 TB to fine-tune. The math, GPU setups and a script to check yours.