Key Takeaway: Exact memory math for 4-bit QLoRA, 16-bit LoRA, and full-parameter AdamW training across 8B, 32B, and 70B models on L40S, A100, and H100 GPUs.
1. Know the 4x–16x VRAM Gap Between Full Fine-Tuning and QLoRA
Full bf16 fine-tuning with AdamW stores model weights (2 bytes/param), gradients (2 bytes), and fp32 optimizer states + master weights (12 bytes)—requiring roughly 16 bytes per parameter before activations (~128 GB+ for an 8B model). 4-bit QLoRA with Unsloth compresses base weights to ~0.5 bytes/param and updates only ~1%–3% adapter parameters, fitting an 8B model cleanly inside a single 16–24 GB GPU and a 70B model inside a single 80 GB A100/H100.
2. Budget Context Length Activation Memory
Doubling training sequence length increases attention activation memory dramatically unless FlashAttention-2/3 and gradient checkpointing are enabled. Always turn on sequence packing (in Axolotl or Unsloth) so short 300-token training samples do not waste 85% of GPU FLOPs on padding tokens.
3. Match GPU Tier to Bottleneck, Not Hype
For 7B–14B QLoRA experiments under 10M tokens, a $0.80–$1.50/hr L40S or RTX 4090 finishes in under 45 minutes for less than $2. Step up to $2.00–$4.29/hr 80 GB H100s (RunPod/Lambda/Modal) when training 32B–70B models, long 16K–32K contexts, or multi-million-token GRPO loops.
4. Checkpoint Frequently on Spot & Community GPUs
Save LoRA adapter checkpoints (often just 50–300 MB) to persistent S3 or RunPod/Modal Network Volumes every 100–250 steps so a spot preemption loses minutes rather than hours of compute.