RunsOnMy ModelsGPUs & MacsBy VRAMAPI pricesVRAM calculatorNew

Can phi 2 run on the L40S?

Yes. At 8K context the best fit is F16, using about 8.2 GB of the 45.6 GB usable on the L40S. Estimated speed ceiling: ~155 tokens/sec.

Memory by quant and context

QuantMax tok/s (est., 8K)
2-bit (Q2_K) •736
3-bit (Q3_K_M) •584
4-bit (Q4_K_M) •483
5-bit (Q5_K_M) •417
6-bit (Q6_K) •378
8-bit (Q8_0) •292
16-bit (F16/BF16)155

• real GGUF file size from TheBloke/phi-2-GGUF. Speed is a bandwidth ceiling (864 GB/s), not a benchmark. Methodology.

More

phi 2 on every GPU and Mac · Every model that runs on the L40S · Other models that fit 48 GB VRAM · Try other settings in the calculator

Data: Hugging Face Hub (microsoft/phi-2), NVIDIA specs. Data as of 2026-11-17.