Rent a GPU

Definition · GPU memory

What is VRAM and how much does an LLM need?

Last updated: · 6 min read

Quick answer

What is VRAM?

VRAM is the memory on the graphics card itself, where a model's weights, its KV cache and activations must sit while it runs. RentGPUCrypto rents cards from 24 GB (RTX 4090, $0.37 an hour) to 141 GB (H200), paid in Monero or other crypto, so you can match the memory to the model.

In brief
  • What fills it: model weights, the KV cache that grows with context length and batch, and working memory.
  • Rule used here: FP16/BF16 2 bytes, FP8/Q8 1.06 bytes, Q4 0.56 bytes per parameter, x1.2 for the KV cache and runtime.
  • Why it decides: a model that does not fit has to be split, offloaded to slow system RAM or quantised.
  • Speed: memory bandwidth, not only size, sets how fast an LLM generates tokens.
  • Range rented: 24 GB on the RTX 4090 up to 141 GB on the H200, 1 to 8 cards per instance.

How much VRAM does each RentGPUCrypto GPU have?

VRAM, memory type and bandwidth of the six GPUs RentGPUCrypto rents, from NVIDIA data sheets
GPUVRAMMemory typeBandwidthPer GPU-hour
RTX 409024 GBGDDR6X1,008 GB/s$0.37
RTX 509032 GBGDDR71,792 GB/s$0.52
L40S48 GBGDDR6 with ECC864 GB/s$0.99
A100 80GB80 GBHBM2e1,935 GB/s (PCIe) to 2,039 GB/s (SXM)$1.19
H10080 GBHBM3 (SXM) or HBM2e (PCIe)3.35 TB/s (SXM), 2.0 TB/s (PCIe)$2.69
H200141 GBHBM3e4.8 TB/s$3.55

Why does an LLM need so much VRAM?

Because every parameter must be in GPU memory for each token generated. A model with 70 billion parameters stored in 16-bit form takes two bytes per parameter before anything else. On top come the KV cache, which stores attention keys and values for every token of context, and the working buffers of the runtime.

If the weights do not fit, tools like Ollama push layers to system RAM, and generation slows to a crawl because PCIe is far slower than VRAM. Serving engines like vLLM refuse to start instead. Either way, memory is the first thing to size.

How do you estimate the VRAM a model needs?

Multiply the parameter count by the bytes per parameter of your precision, then add about a fifth. According to RentGPUCrypto's VRAM calculator, which uses FP16/BF16 2 bytes, FP8/Q8 1.06 bytes, Q4 0.56 bytes per parameter, x1.2 for the KV cache and runtime, Llama 3.3 70B needs 169 GB in 16-bit, 90 GB in 8-bit and 47 GB in 4-bit.

Long contexts and many parallel requests make the KV cache grow past that allowance, so leave headroom when you serve many users. The GPU VRAM calculator runs the numbers for ten common models.

Which card holds which model?

Pick a model and a precision to see the VRAM it needs and the smallest RentGPUCrypto set that holds it.

VRAM needed: FP16/BF16 2 bytes, FP8/Q8 1.06 bytes, Q4 0.56 bytes per parameter, x1.2 for the KV cache and runtime
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 32B 32.8B79 GBA100 80GB$1.19/hr42 GBL40S$0.99/hr22 GBRTX 4090$0.37/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
FLUX.1 [dev] image / video model28 GBRTX 5090$0.52/hr——
Wan2.1 14B (video) image / video model40 GBL40S$0.99/hr——

Does memory bandwidth matter as much as size?

For generating text, often more. Each new token reads the whole set of weights from VRAM once, so tokens per second scale with bandwidth for a single stream. That is why HBM cards like the H100 (3.35 TB/s (SXM), 2.0 TB/s (PCIe)) and H200 (4.8 TB/s) generate faster than GDDR cards of similar size.

Size decides whether a model runs at all; bandwidth decides how fast. A 4-bit 32B model fits an RTX 4090 and runs well, while the same model on an L40S has more room for context but no more bandwidth. The GPU for LLM guide weighs both.

What if one card is not enough?

Quantise the model, or split it across several cards. Going from 16-bit to 4-bit cuts weight memory by more than three times, at some cost in quality; the 4-bit vs 8-bit guide compares them.

Splitting uses tensor parallelism: each card holds a slice of every layer, and their VRAM adds up. RentGPUCrypto instances take 1, 2, 4 or 8 cards of one model, so two RTX 4090 cards give 48 GB and eight H200 cards 1128 GB. Cards linked by NVLink, on SXM hosts, split faster than PCIe cards.

How much VRAM do image and video models need?

Less than large LLMs, but more than older guides suggest once you add text encoders and high resolutions. RentGPUCrypto's VRAM calculator puts Stable Diffusion XL at 12 GB in 16-bit, FLUX.1 [dev] at 28 GB and Wan2.1 14B (video) at 40 GB.

That makes one RTX 5090 the natural card for FLUX, and one L40S for Wan2.1 14B, or 2× RTX 4090 ($0.74/hr) with the model split. Diffusion pipelines can trade memory for speed by offloading the text encoder to the CPU or loading 8-bit weights, so a smaller card can work at the cost of slower images. Batch size and resolution push memory up quickly: a batch of four 1024-pixel images needs far more than one.

VRAM: common questions

Is VRAM the same as system RAM?

No. VRAM sits on the GPU board and feeds the GPU at hundreds of GB/s or more. System RAM is on the motherboard and reaches the GPU over PCIe, which is far slower, so models offloaded there run slowly.

How much VRAM does Stable Diffusion XL need?

RentGPUCrypto's VRAM calculator puts SDXL at 12 GB in 16-bit, which fits one RTX 4090. FLUX.1 [dev] needs 28 GB, which fits one RTX 5090.

Can two RTX 4090 cards act as one bigger GPU?

For inference, yes in practice: vLLM or llama.cpp split the model so the VRAM adds up. The RTX 4090 has no NVLink, so the cards talk over PCIe, which is slower than NVLink but fine for many serving jobs.

Why does my model run out of memory with a long prompt?

The KV cache grows with context length and the number of parallel requests. Lower the maximum context, reduce concurrency, or move to a card with more VRAM.

Do HBM cards always beat GDDR cards?

On bandwidth, yes, which speeds up text generation. On price per GB of memory, consumer GDDR cards are often cheaper, which is why two RTX 4090 cards can be the budget route for a 4-bit 70B model.

Verdict
  • VRAM decides whether a model runs; bandwidth decides how fast it generates.
  • Estimate with parameters × bytes per parameter, plus about a fifth for cache and runtime.
  • Rent the smallest RentGPUCrypto set that holds the model with headroom, from one 24 GB card to eight H200s.
Sources (4)
  1. NVIDIA H200 Tensor Core GPU — NVIDIA
  2. NVIDIA H100 Tensor Core GPU — NVIDIA
  3. NVIDIA GeForce RTX 4090 — NVIDIA
  4. Efficient Memory Management for Large Language Model Serving with PagedAttention — Kwon et al., SOSP 2023

Rent the memory your model needs

One H200 gives 141 GB for $3.55 per hour, enough for a 70B model in 8-bit.

RTX 4090 from $0.37/hr · no KYC

Rent a GPU