llamaperf

NVIDIA L40S vs NVIDIA RTX 4090 for local LLMs

2 reports on the NVIDIA L40S and 57 on the NVIDIA RTX 4090

Which is faster for local LLMs?

Nobody has reported the same model at the same quant on both cards yet, so there's no measured head-to-head. Memory bandwidth, which caps how fast a card can write, is 17% higher on the NVIDIA RTX 4090 (864 GB/s on the NVIDIA L40S, 1,008 on the NVIDIA RTX 4090). The estimates below compare them on the models people run most.

NVIDIA L40S
Memory
48GB
Memory bandwidth
864 GB/s
FP16 compute
362.1 TFLOPS
Reports
2
NVIDIA RTX 4090
Memory
24GB
Memory bandwidth
1,008 GB/s
FP16 compute
330 TFLOPS
Reports
57

Estimated by the calculator

The quant the calculator recommends for each card and its estimated speed at a 32,768-token context with 32 GB of system RAM, from memory bandwidth and the model's shape.

ModelNVIDIA L40SNVIDIA RTX 4090
Qwen3.8 27B17.6 t/sQ8_036.5 t/sQ4_K_M
Qwen3.8 125B · 6B active80.1 t/sQ2_K19.6 t/sQ2_K, experts in RAM
Qwen3.6 35B · 3B active55.4 t/sQ8_0129.3 t/sQ4_K_S
DeepSeek V4 Flash 284B · 13B activedoesn't fit at these settingsdoesn't fit at these settings
Qwen3.6 27B17.6 t/sQ8_036.5 t/sQ4_K_M
Gemma 4 26B · 4B active47.5 t/sQ8_082.3 t/sQ5_K_S

Change the context, RAM or model in the calculator: NVIDIA L40S · NVIDIA RTX 4090

Every report on each card, with its source: NVIDIA L40S · NVIDIA RTX 4090

More comparisons