Can I Run Llama 4 Maverick 17B on NVIDIA L40S?

Written by Jakub Rusinowski · Last updated July 21, 2026

No. Llama 4 Maverick 17B needs 243.9 GB at 8K context (241.5 GB weights + 2.4 GB KV cache/overhead) at Q4_K_M and the NVIDIA L40S has only 48 GB. No quantization we publish closes a gap that size.

Get a personalized upgrade path →

The numbers

ModelLlama 4 Maverick 17B
Parameters17B active / 400B total
QuantizationQ4_K_M
VRAM needed (8K context)243.9 GB
NVIDIA L40S VRAM48 GB
VerdictDoes not fit

Llama 4 Maverick 17B on the NVIDIA L40S: VRAM by quantization

QuantVRAM neededFits 48 GB?Max contextWhole PC
F16802.4 GB✗ No——
Q8_0427.4 GB✗ No——
Q6_K330.4 GB✗ No——
Q5_K_M285.9 GB✗ No——
Q4_K_M243.9 GB✗ No——
Q3_K_M172.9 GB✗ No——
Q2_K133.9 GB✗ No——

Assumes an 8K-token context with an f16 KV cache. A longer window needs more; a quantized KV cache needs less. “Max context” is the largest window that still fits in 48 GB. Figures are estimates from parameter count, quantization and memory bandwidth — the analyzer lets you tune KV-cache quant and context.

Context costs VRAM too. At Q4_K_M on the NVIDIA L40S: 8K 243.9 GB ✗ · 32K 248.7 GB ✗ · 128K 268.1 GB ✗. Past 8K it no longer fits 48 GB — a q8_0 KV cache buys roughly half of that back, which the calculator will price for you.

What to do next

Either step down to a smaller size in this family, or move to a Apple M5 Ultra (512 GB), the card with the least memory we track that holds it.

No compatible GPU? Llama 4 on 48 GB of system RAM, CPU only: runs, but it is tight.

Won't fit — rent Llama 4 Maverick 17B instead

Llama 4 Maverick 17B needs ~244 GB but this GPU has 48 GB. Rent a 8× H100 (640 GB)-class GPU by the hour instead of buying one:

Affiliate links — we may earn a commission if you sign up, at no extra cost to you.

RunPod $23.12/hr
Rent on RunPod →

Cloud rates verified 2026-07 — estimates, and marketplace prices vary. Buying price is GPU MSRP only, not a full PC.

Other Llama 4 sizes on the NVIDIA L40S

Llama 4 Maverick 17B on nearby hardware

All Llama 4 sizes on the NVIDIA L40S | Llama 4 Maverick 17B model page | NVIDIA L40S GPU page | VRAM calculator | Check your hardware