LoRA / QLoRA Fine-Tuning VRAM & Cloud GPU Cost Calculator
Compare BF16 LoRA and 4-bit QLoRA memory, find the smallest modeled GPU tier, and estimate the rental cost for your training run.
Fine-tuning setup
Memory and run cost
Enter valid values to see the estimate.
- Base and adapter weights
- Optimizer and gradients
- Training activations
- Runtime allowance
- Trainable adapter parameters
Single-GPU rental
- 24 GB
- 48 GB
- 80 GB
- Recommended tier
- Estimated training run
Compare local GPU and cloud costs
Use the recommended GPU tier and expected run cost to compare renting GPUs with buying and running local hardware.
Method & FAQ
What is included in the weight estimate?
The frozen base uses 2 bytes per parameter in BF16 and an estimated 0.6 bytes per parameter in 4-bit QLoRA, including quantization overhead. BF16 adapter weights add 2 bytes per trainable parameter. Presets use representative dense model geometry with adapters on attention and MLP projections.
How are optimizer and activation memory estimated?
Each adapter parameter gets 14 bytes for BF16 gradients, two FP32 AdamW moments, and an FP32 master weight. Activations are estimated as microbatch × sequence length × hidden width × 2 bytes × (layers + 8). This models per-layer checkpointing and eight hidden-state work buffers with memory-efficient attention. Runtime allowance adds 1 GiB plus 10% of the subtotal.
What do the GPU tiers and rental costs mean?
The recommendation is the smallest nominal single-GPU tier that fits the estimated GiB. Tight means less than 10% free. Use your framework and device to measure peak memory before renting. Rental cost is the entered billed hours multiplied by the tier’s hourly rate. Storage, taxes, and multi-GPU costs are outside this estimate.