If you have ever tried to deploy an open-weight model like Qwen3-32B, Llama 3.3 70B, or DeepSeek-R1 on a cloud GPU, you have probably seen the classic rule of thumb: "32B in 4-bit quantization is ~18β20 GB, so it fits on a single RTX 4090 (24 GB)."
Then you spin up vLLM, send 4 concurrent requests at 16K context, and immediately hit CUDA OutOfMemoryError.
Here is why basic VRAM calculators mislead engineers β and the actual numbers for cloud GPU pricing vs commercial LLM APIs right now.
Model weights are only half the story. In production serving, KV cache grows linearly with both context length and concurrent batch size:
KV Cache (bytes) = 2 Γ Layers Γ KV_Heads Γ Head_Dim Γ Context Γ Concurrency Γ Precision_Bytes
head_dim = 576, kv_heads = 1), cutting KV cache by KV Cache (bytes) = Layers Γ 576 Γ Context Γ Concurrency Γ Precision_Bytes
19.56 GB
8.00 GB
~1.8 GB
~29.3 GB
That immediately overflows a 24 GB RTX 4090. To run it comfortably without dropping context or quantizing KV cache aggressively, you need either a 32 GB RTX 5090 or a 48 GB L40S.
Hourly GPU pricing varies wildly between community marketplaces, self-serve GPU clouds, and enterprise neoclouds (some of which enforce 8-GPU node minimums).
Here is a snapshot of current public on-demand hourly rates (USD/GPU/hr):
| GPU | VRAM | Vast.ai | RunPod (Secure) | Vultr | DigitalOcean | Nebius | CoreWeave (8x min) |
|---|---|---|---|---|---|---|---|
| RTX 4090 | 24 GB | $0.34 | $0.69 | β | β | β | β |
| RTX 5090 | 32 GB | $0.58 | $1.09 | β | β | β | β |
| L40S | 48 GB | $0.59 | $1.09 | $1.45 | $1.29 | $1.55 | $2.25 |
| A100 80GB | 80 GB | $0.99 | $1.89 | $2.39 | β | β | β |
| H100 80GB | 80 GB | $1.79 | $2.69 | $2.99 | $3.39 | $4.50 | $6.16 |
| H200 141GB | 141 GB | $3.29 | $3.99 | β | $4.49 | $5.40 | $6.31 |
| B200 180GB | 180 GB | β | $5.49 | $5.99 | β | $8.50 | $8.60 |
(Note: CoreWeave bills per 8-GPU node, e.g., $49.24/hr for 8x H100. Full side-by-side breakdown: Nebius vs RunPod and Nebius vs CoreWeave.)
A common mistake is self-hosting way too early. Let's run the break-even math for a typical coding/RAG workload:
1,500 input tokens (20% prompt cache hit) + 500 output tokens per request$0.00743`` 1x RTX 5090 on Vast.ai ($0.58/hr Γ 729.6 hrs) = $423 / month`` 1x L40S 48GB on RunPod Secure ($1.09/hr Γ 729.6 hrs) = $795 / month
Rule of thumb:
I got tired of recalculating this in spreadsheets every time a model or cloud price changed, so I built a free static calculator that runs all of this client-side:
Feedback and PR-style corrections on any GPU provider pricing or KV-cache edge cases are always welcome in the comments!