Which LLMs fit on NVIDIA L40S?

NVIDIA L40S has 48 GB of memory. LLMScale budgets 40.81 GiB of it for a model: vLLM's default --gpu-memory-utilization of 0.92 of what the card reports, the rest kept for the CUDA context. Its memory bandwidth, 864 GB/s, is what limits generation speed once a model fits. Of the 31 popular open models below, 15 fit at BF16, 22 at FP8 and 23 at INT4 with an 8k context for one user.

Workstation · usable memory
40.81 GiB

23 of 31 models fit at INT4, 15 at BF16.

Which LLMs fit on NVIDIA L40S

ModelBF16FP8INT4UsersMax context
Qwen2.5 0.5B Instruct1.85 GiB1.52 GiB1.36 GiB416BF1632kBF16
Gemma 3 1B IT3.27 GiB2.62 GiB2.31 GiB274BF1632kBF16
Llama 3.2 1B Instruct3.63 GiB2.72 GiB2.29 GiB149BF16128kBF16
Llama 3.2 3B Instruct8.28 GiB5.65 GiB4.42 GiB38BF16128kBF16
Phi-3 mini 4k9.42 GiB6.04 GiB4.46 GiB21BF164kBF16
Gemma 3 4B IT10.57 GiB7.19 GiB5.61 GiB41BF16128kBF16
Mistral 7B Instruct v0.315.43 GiB8.93 GiB5.88 GiB26BF1632kBF16
Qwen2.5 Coder 7B16.37 GiB10.30 GiB7.45 GiB56BF1632kBF16
Qwen2.5 7B Instruct16.37 GiB10.30 GiB7.45 GiB56BF1632kBF16
Llama 3.1 8B Instruct17.71 GiB11.21 GiB8.16 GiB24BF16128kBF16
Qwen3 8B18.37 GiB11.90 GiB8.87 GiB20BF1640kBF16
Gemma 2 9B IT22.48 GiB14.73 GiB11.09 GiB7BF168kBF16
Gemma 3 12B IT26.85 GiB16.44 GiB11.55 GiB7BF16128kBF16
Mistral Nemo 12B Instruct26.23 GiB16.07 GiB11.31 GiB12BF16101kBF16
Qwen2.5 14B Instruct31.48 GiB19.17 GiB13.40 GiB7BF1632kBF16
gpt-oss 20B41.22 GiB (does not fit)22.82 GiB15.96 GiB64FP8128kFP8
Gemma 2 27B IT56.79 GiB (does not fit)32.55 GiB21.19 GiB3FP88kFP8
Gemma 3 27B IT56.53 GiB (does not fit)32.29 GiB20.93 GiB3FP8117kFP8
Qwen3 30B A3B59.07 GiB (does not fit)31.21 GiB18.15 GiB13FP840kFP8
Qwen3 Coder 30B A3B59.07 GiB (does not fit)31.21 GiB18.15 GiB13FP8110kFP8
Qwen2.5 32B Instruct65.64 GiB (does not fit)36.58 GiB22.96 GiB3FP825kFP8
Qwen3 32B65.64 GiB (does not fit)36.58 GiB22.96 GiB3FP825kFP8
Mixtral 8x7B Instruct89.46 GiB (does not fit)46.21 GiB (does not fit)25.94 GiB15INT432kINT4
Llama 3.3 70B Instruct137.6 GiB (does not fit)73.89 GiB (does not fit)44.01 GiB (does not fit)——
Llama 3.1 70B Instruct137.6 GiB (does not fit)73.89 GiB (does not fit)44.01 GiB (does not fit)——
Qwen2.5 72B Instruct142.0 GiB (does not fit)76.64 GiB (does not fit)45.99 GiB (does not fit)——
Llama 4 Scout 17B-16E Instruct205.4 GiB (does not fit)106.2 GiB (does not fit)59.64 GiB (does not fit)——
gpt-oss 120B220.1 GiB (does not fit)112.4 GiB (does not fit)68.40 GiB (does not fit)——
Mixtral 8x22B Instruct265.6 GiB (does not fit)135.1 GiB (does not fit)73.87 GiB (does not fit)——
Llama 3.1 405B Instruct768.3 GiB (does not fit)394.2 GiB (does not fit)218.9 GiB (does not fit)——
DeepSeek V31279.1 GiB (does not fit)643.3 GiB (does not fit)345.2 GiB (does not fit)——

Memory at 8k context for one user (the model's maximum, where that is shorter), FP16 KV cache and vLLM's overhead at this card's defaults. Users (each at 8k) and maximum context are for the highest precision that fits.

What BF16, FP8 and INT4 mean for memory: quantization and VRAM.

A model that does not fit one card can still run across several: tensor parallelism splits its weights and KV cache between them. The calculator works out how many.

Size a model on NVIDIA L40S

Other GPUs