llmrun

NVIDIA · Ada Lovelace · 48 GB VRAM tier

Best AI Models for NVIDIA L40S (48 GB)

Runs 27–31B and 35B MoE models well; 70B barely fits and is slow (14 tok/s).

48 GB GDDR6864 GB/s362 TFLOPS FP16350 WAda Lovelace 2023

What LLMs can the L40S run?

#ModelSpeedllmrun ScoreQuant · VRAM
1
Q4_K_M · 17.9 GB · 32.2 t/s
32.2 tok/sQ4_K_M · 17.9 GB
2
Q4_K_M · 17.9 GB · 32.2 t/s
32.2 tok/sQ4_K_M · 17.9 GB
3
Q4_K_M · 21.7 GB · 27.5 t/s
27.5 tok/sQ4_K_M · 21.7 GB
4
Q4_K_M · 16.5 GB · 153 t/s
153 tok/sQ4_K_M · 16.5 GB
5
Q4_K_M · 19.3 GB · 184 t/s
184 tok/sQ4_K_M · 19.3 GB
See all 368 models on the L40S →Best quant that fits · speeds estimated on this card

About the L40S

The L40S runs 27–31B and 35B MoE models well. Ada Lovelace generation, released 2023.

GenerationAda Lovelacereleased 2023

L40S strengths and weaknesses

Strengths

  • Runs 35B MoE models: Qwen3.6 35B A3B at 136 tok/s in 22 GB
  • Room for long context: Qwen3.8 27B at Q4 uses 17.9 GB, leaving 30.1 GB free
  • Reads long prompts fast: A 4K-token prompt on Qwen3.8 27B starts answering in 1.4 s

Weaknesses

  • 120B MoE models don't fit: GPT OSS 120B needs 70.8 GB at Q4 vs 48 GB here

L40S tokens per second by model size

Output speed depends on memory bandwidth (864 GB/s). Grey rows need more than 48 GB.

  1. 9BQwen3.5 9B · Q4_K_M · 6.6 GB
    88.3tok/s
  2. 14BQwen3 14B · Q4_K_M · 11.9 GB
    59.1tok/s
  3. 27–31BQwen3.8 27B · Q4_K_M · 17.9 GB
    32.2tok/s
  4. 35B MoEQwen3.6 35B A3B · Q4_K_M · 22.0 GB
    136tok/s
  5. 70BLlama 3.3 70B Instruct · IQ4_XS · 46.4 GB tight · IQ4_XS
    13.5tok/s
  6. 120B MoEGPT OSS 120B · not at 4-bit
    needs 70.8 GB

Estimated speeds: Q4_K_M, 4K context, one user. How we estimate

All 1216 models on the L40S

Featured only

Best quant that fits, ordered by llmrun Score. Fit grades how well it runs here, S best. How ranking works

LLM models compatible with NVIDIA L40S — ranked by Score, recency and Fit
ModelVRAMScoreFit
Q4_K_M·340.4 t/s
3.5 GBS100, Runs great
Q4_K_M·103.0 t/s
6.5 GBS92, Runs great
Mistral Small Instruct 2409
Q4_K_M·39.8 t/s
17.4 GBA75, Runs well
Codegemma 2B
Q4_K_M·340.4 t/s
3.5 GBS100, Runs great
Q4_K_M·104.2 t/s
6.2 GBS92, Runs great
Qwen2.5 Math 1.5B
Q4_K_M·438.8 t/s
1.3 GBS100, Runs great
Q4_K_M·65.5 t/s
11.5 GBS85, Runs great
QwQ 32B Preview
Q4_K_M·27.4 t/s
24.3 GBA68, Runs well
Qwen 1 8B
Q4_K_M·464.1 t/s
1.9 GBS100, Runs great
Q4_K_M·103.6 t/s
6.5 GBS92, Runs great
SmolLM2 1.7B
Q4_K_M·324.6 t/s
2.9 GBS100, Runs great
Llama 3.1 70B Instruct
IQ4_XS·13.5 t/s
46.4 GBD26, Barely runs
Q4_K_M·6240.0 t/s
0.1 GBS100, Runs great
Yi 34B
Q4_K_M·26.2 t/s
21.9 GBA67, Runs well
Q4_K_M·65.5 t/s
11.5 GBS85, Runs great

Rent NVIDIA L40S in the cloud

Hourly rate on demand for one L40S.

  • Vast.aiMarketplace

    from$0.77/hr

Cost per million tokens

Output-token cost on an L40S rented at $0.77/hr, one request at a time. Batch several users on the same card and the cost per token drops several-fold.

ModelSpeedPer 1M output
NVIDIA Nemotron 3.5 Lightning 30B A3B BF16184 tok/s$1.17$0.0062 input
Gemma 4 26B A4B IT153 tok/s$1.41$0.012 input
Qwen3.6 35B A3B136 tok/s$1.58$0.013 input
Qwen3.8 27B32 tok/s$6.68$0.073 input
Muse Glimmer 30B31 tok/s$7.03$0.079 input

L40S specs, power and PSU

Specs

Architecture
Ada Lovelace
VRAM
48 GB GDDR6
Memory bandwidth
864.0 GB/s
FP16 (dense)
362.05 TFLOPS
CUDA cores
18,176
Tensor cores
568
Compute capability
8.9
TDP
350 W
Released
2023-08-08

L40S FAQ

What is the largest model the L40S can run?

Qwen2.5 72B Instruct (72.7B) is the largest at 4-bit or better: at Q4_K_S it uses 46.6 GB of 48 GB, and runs at about 13.4 tok/s.

Can the L40S run Qwen3.8 27B?

Yes. Qwen3.8 27B fits at Q4_K_M, using 17.9 GB of 48 GB, and it is the best model that runs well on this card.

Can the L40S run 120B MoE models?

No. GPT OSS 120B needs 70.8 GB at Q4, more than the 48 GB on this card.

How many tokens per second does the L40S give?

About 32.2 tok/s on Qwen3.8 27B at Q4_K_M, with the first token after 1.4 s on a 4K-token prompt.

What power supply does the L40S need?

Plan a 700 W PSU (2× the 350 W TDP).

Is 48 GB enough for coding and agents?

Yes for coding: Qwen3.8 27B, the best of the 10 coding models that fit, runs at about 32 tok/s. For agents, not yet: no agent-scored model fits in less than 96 GB.