Language: English
Rent a GPU

VRAM calculator · 10 models · 3 precisions

How much VRAM does your LLM need?

Last updated: · 6 min read

Quick answer

How much VRAM does an LLM need?

An LLM needs about its parameter count times the bytes per weight, plus about 20 % for the KV cache and runtime: 2 bytes in FP16, about 1 in 8-bit, about 0.56 in 4-bit. By RentGPUCrypto's count, Llama 3.3 70B needs 169 GB in FP16 but 47 GB in 4-bit, one L40S at $0.99 per hour, paid in crypto.

In brief
  • Rule used: FP16/BF16 2 bytes, FP8/Q8 1.06 bytes, Q4 0.56 bytes per parameter, x1.2 for the KV cache and runtime.
  • 8B models fit any card; 32B needs 24 GB in 4-bit; 70B needs 48 GB in 4-bit.
  • DeepSeek-V3/R1 (671B) needs 451 GB even in 4-bit: four H200 cards.
  • Long contexts and many users need more KV cache: leave headroom above the figure.

Which GPU does each model need?

Choose a model and a precision. The result is the fewest cards that hold it; when more, cheaper cards do the same job, that option is shown too.

VRAM needed by model and precision, the fewest RentGPUCrypto cards that hold it and their hourly price
ModelFP16 / BF168-bit4-bit
Llama 3.1 8B 8B19 GBRTX 4090$0.37/hr10 GBRTX 4090$0.37/hr5 GBRTX 4090$0.37/hr
Qwen3 14B 14.8B36 GBL40S$0.99/hr19 GBRTX 4090$0.37/hr10 GBRTX 4090$0.37/hr
Qwen3 32B 32.8B79 GBA100 80GB$1.19/hr42 GBL40S$0.99/hr22 GBRTX 4090$0.37/hr
DeepSeek-R1-Distill-Llama-70B 70.6B169 GB2× H200$7.10/hr90 GBH200$3.55/hr47 GBL40S$0.99/hr
Llama 3.3 70B 70.6B169 GB2× H200$7.10/hr90 GBH200$3.55/hr47 GBL40S$0.99/hr
Qwen3 235B-A22B 235B564 GB4× H200$14.20/hr299 GB4× A100 80GB$4.76/hr158 GB2× A100 80GB$2.38/hr
DeepSeek-V3 / R1 (671B) 671B1610 GBmore than 8 cards—854 GB8× H200$28.40/hr451 GB4× H200$14.20/hr
Stable Diffusion XL image / video model12 GBRTX 4090$0.37/hr——
FLUX.1 [dev] image / video model28 GBRTX 5090$0.52/hr——
Wan2.1 14B (video) image / video model40 GBL40S$0.99/hr——

How many bytes does each precision use?

The 4-bit figure is above 0.5 because quantized formats store scales and keep some layers at higher precision.

Memory per parameter by precision, as used by the RentGPUCrypto calculator
PrecisionBytes per parameterTypical formatsQuality
FP16 / BF162Original Hugging Face weights, safetensorsReference
8-bit1.06FP8, INT8, GGUF Q8_0Very close to the reference on most tasks
4-bit0.56AWQ, GPTQ, GGUF Q4_K_M, NF4Small loss, larger on maths and code

Why add 20 % on top of the weights?

Because inference also keeps the KV cache, the CUDA context and activations in GPU memory. The KV cache grows with context length and with the number of requests served at once: a model answering one user with a 4,000-token context needs far less than a server handling 32 conversations of 32,000 tokens.

The 20 % covers a single user with a moderate context. vLLM reserves 90 % of the card by default and fills the rest with KV cache, so a model that barely fits leaves almost no room for users. For a shared endpoint, pick the next card up or add one card, and read the 4-bit vs 8-bit guide before cutting precision.

Do mixture-of-experts models need less memory?

No, they need memory for every expert, even though only a few run for each token. Qwen3 235B-A22B activates about 22B parameters per token and DeepSeek-V3 about 37B, which makes them fast for their size, but all 235B or 671B parameters must be loaded. That is why DeepSeek-V3 in 4-bit still takes 451 GB.

Some engines can keep experts in CPU memory and stream them in, which fits a huge model on fewer cards at a large cost in speed. The calculator assumes everything sits in GPU memory, which is how a server answers at normal speed.

How much VRAM do image and video models need?

Image models are smaller than LLMs but run at full precision more often: SDXL needs about 12 GB, FLUX.1 [dev] about 28 GB and Wan2.1 14B video about 40 GB. These figures include the text encoders and the VAE loaded with the main model, which ComfyUI does by default.

An RTX 4090 covers SDXL with room for ControlNet and LoRAs. FLUX.1 [dev] in BF16 wants the 32 GB of an RTX 5090; in FP8 it fits 24 GB. Video models with many frames prefer the 48 GB of an L40S.

Is one big card better than several small ones?

For the same total memory, one card is simpler and usually faster for a single user; several cheaper cards can cost less per hour. Splitting a model with tensor parallelism sends data between cards at every layer, and consumer cards do that over PCIe, not NVLink. According to RentGPUCrypto's VRAM calculator, Llama 3.3 70B in 4-bit runs on L40S at $0.99/hr or on 2× RTX 4090 ($0.74/hr).

The calculator shows both options whenever the cheaper set exists, so the choice stays yours. The GPU for LLM guide explains when each one wins.

Frequently asked questions

How much VRAM do I need for Llama 3.3 70B?

About 169 GB in FP16, 90 GB in 8-bit and 47 GB in 4-bit, including a 20 % margin. In 4-bit that is one 48 GB L40S; in FP16, two H200 cards.

Can I run a 32B model on 24 GB?

Yes in 4-bit: Qwen3 32B needs about 22 GB, which fits an RTX 4090 with a short context. For long contexts or 8-bit, use 48 GB.

Does GGUF on llama.cpp use the same memory?

Roughly. Q4_K_M sits close to the 4-bit figure and Q8_0 close to the 8-bit one. llama.cpp can also offload layers to CPU RAM, which fits bigger models on smaller cards at a lower speed.

How much more memory does a long context need?

It depends on the model's layers, KV heads and the cache precision. As an order of magnitude, a 70B model with grouped-query attention needs a few hundred kilobytes per token in FP16, so 100,000 tokens of context take tens of gigabytes.

What about fine-tuning?

Training needs much more than inference: full fine-tuning holds gradients and optimizer states, around 16 bytes per parameter. LoRA and QLoRA cut that sharply; the A100 page gives the sizes that fit one 80 GB card.

Verdict
  • Multiply parameters by 2, 1.06 or 0.56, then add 20 %: that is the card size to rent.
  • For 70B models, 4-bit on one 48 GB card is the sweet spot for one user.
  • Leave headroom when many users or long contexts share the card.

Found the card? Rent it by the hour

Top up $35 in Monero, Bitcoin or USDT and receive $8.75 of launch bonus until 31 January 2027; then buy hours of the card the calculator picked.

Sources (6)
  1. Llama 3.3 70B Instruct model card — Meta
  2. Qwen3 model cards — Qwen
  3. DeepSeek-V3 model card — DeepSeek
  4. FLUX.1 [dev] model card — Black Forest Labs
  5. vLLM engine arguments (gpu-memory-utilization) — vLLM
  6. llama.cpp quantization — ggml

RTX 4090 from $0.37/hr · no KYC

Rent a GPU