NVIDIA A100 40GB SXM4 vs NVIDIA L40S, AI & Machine Learning Comparison

NVIDIA A100 40GB SXM4
NVIDIA A100 40GB SXM4
vs
NVIDIA L40S
NVIDIA L40S

NVIDIA L40S wins 74 of 149 benchmarks, averaging 10.7% faster.

NVIDIA A100 40GB SXM4's numbers are anchored estimates calibrated against our measured cards, pending first-party measurement. Treat small gaps as ties.

What the numbers say

The gap is widest in MusicGen Small, where NVIDIA L40S leads by 125% (1.08 vs 2.43 x realtime); the closest fight is Nemotron-3-Nano-30B-A3B (1% apart); VRAM decides part of this one: NVIDIA L40S runs 152 of our 12 AI workloads while the other card runs 135, models that don't fit score zero.

Benchmark results head-to-head

BenchmarkNVIDIA A100 40GB SXM4NVIDIA L40SDifference
Qwen3-4B tok/s193.14212.05-9%
Llama-3.1-8B tok/s157.26135.51+16%
Qwen2.5-Coder-14B tok/s86.274.6+16%
Qwen3-32B tok/s43.834.44+27%
Llama-3.3-70B tok/s016.49n/a
Stable Diffusion XL images/min18.57617.02+9%
Z-Image Turbo images/min9.9758.325+20%
FLUX.1 dev images/min4.2643.836+11%
FLUX.1 Kontext dev images/min1.9931.693+18%
Qwen-Image-Edit images/min01.06n/a
LTX-Video (distilled) frames/s8.958.01+12%
Wan 2.2 5B (720p) frames/s0.660.49+35%
DeepSeek-R1 Distill Llama 8B tok/s157.16135.55+16%
DeepSeek-R1 Distill 1.5B tok/s320.78426.38-25%
DeepSeek-R1 Distill 14B tok/s86.3974.6+16%
DeepSeek-R1 Distill 7B tok/s159.09143.97+11%
Gemma 3 12B tok/s88.9780.92+10%
Gemma 3 4B tok/s174.14198.87-12%
Gemma 4 12B tok/s87.1480.82+8%
Llama 3.2 1B tok/s532.08618.87-14%
Llama 3.2 3B tok/s261.24270.85-4%
Mistral 7B v0.3 tok/s165.9144.74+15%
Mistral Small 24B tok/s62.4248.43+29%
Phi-4 14B tok/s98.6574.98+32%
Phi-4 Mini 3.8B tok/s236.71228.93+3%
Qwen2.5-Coder 7B tok/s159.9143.93+11%
Qwen3 0.6B tok/s417.88655.75-36%
Qwen3 1.7B tok/s340.76405.52-16%
Qwen3 14B tok/s90.0175.12+20%
Qwen3 30B A3B tok/s169.1213.66-21%
Qwen3 8B tok/s146.21130.27+12%
SmolLM3 3B tok/s246.25272.88-10%
Codestral 22B tok/s63.7450.06+27%
DeepSeek-R1 Distill 32B tok/s43.1334.6+25%
Devstral Small 24B tok/s62.448.43+29%
Dolphin 2.9.1 Yi 1.5 34B tok/s42.9733.08+30%
Dolphin Mistral 24B Venice tok/s62.4648.43+29%
Dolphin X1 8B tok/s156.3135.48+15%
Dolphin 3.0 Llama 3.1 8B tok/s156.55135.55+15%
Dolphin 3.0 R1 Mistral 24B tok/s62.448.4+29%
Gemma 3 27B tok/s47.4738.48+23%
Qwen2.5-Coder 32B tok/s43.1434.59+25%
Qwen3-Coder 30B A3B tok/s173.47219.04-21%
QwQ 32B tok/s43.0234.59+24%
StarCoder2 15B tok/s80.2566.88+20%
FLUX.1 Schnell images/min28.4426.24+8%
Z-Image Turbo (1024px) images/min18.718.2+3%
BiRefNet images/min611.56863.81-29%
Depth Anything V2 Large images/min536.74959.33-44%
Depth Anything V2 Small images/min613.42970.61-37%
SAM ViT-Base images/min696.77998.79-30%
SAM ViT-Huge images/min146.81238.08-38%
Swin2SR 4x Upscaler images/min17.2534.14-49%
Kokoro TTS 82M x realtime142.03243.99-42%
MusicGen Small x realtime1.082.43-56%
Whisper large-v3 x realtime102.47193.2-47%
Dolphin X1 Trinity Nano 6B tok/s153.27246.45-38%
gpt-oss-20b tok/s205.1233.82-12%
Olmo-3.1-32B-Think tok/s43.6734.11+28%
Dolphin-Mistral-24B-Venice-Edition tok/s62.5648.43+29%
DeepSeek-Coder-V2-Lite tok/s205.42257.64-20%
DeepSeek-R1-0528-Qwen3-8B tok/s145.84130.23+12%
EVA-Qwen2.5-14B-v0.2 tok/s86.4874.63+16%
Qwen2.5 1.5B LoRA train tok/s6349.712120.1-48%
Qwen2.5 7B LoRA train tok/s3670.83736-2%
SmolLM2 1.7B LoRA train tok/s6938.812052.1-42%
TinyLlama 1.1B LoRA train tok/s747116408.1-54%
gemma-2-2b-it-abliterated tok/s232.27278.14-16%
gemma-2-2b tok/s234.68278.1-16%
gemma-2-9b tok/s101.9788.87+15%
gemma-3-1b tok/s310.69426.49-27%
gemma-3-270m tok/s574.24822.52-30%
GLM-4.7-Flash tok/s119.1157.89-25%
SmolLM3-3B tok/s247.66272.96-9%
KAT-Coder-V2.5-Dev tok/s137.31173.06-21%
LFM2.5-1.2B tok/s572.69661.54-13%
Llama-2-7B tok/s172.53150.35+15%
Llama-3.2-3B-Instruct-uncensored tok/s260.83271.01-4%
Meta-Llama-3.1-8B tok/s156.68135.46+16%
Phi-4-mini tok/s237.38229.28+4%
Mistral-7B-Instruct-v0.1 tok/s166.39144.82+15%
Mistral-7B-Instruct-v0.2 tok/s166.8144.82+15%
Mistral-7B-Instruct-v0.3 tok/s167.06144.68+15%
Ornith-1.0-35B tok/s131.77157.39-16%
Ornith-1.0-9B tok/s126.79114.57+11%
Phi-3.5-mini tok/s222.53229.06-3%
Qwen-AgentWorld-35B-A3B tok/s131.16156.98-16%
Qwen3-0.6B tok/s408.39656.26-38%
Qwen3-1.7B tok/s341.85405.3-16%
Qwen3-14B tok/s90.0775.01+20%
Qwen3-8B tok/s145.96130.28+12%
Qwen2.5-0.5B tok/s517.09738.06-30%
Qwen2.5-1.5B tok/s315.59427.23-26%
Qwen2.5-14B tok/s86.0774.62+15%
Qwen2.5-32B tok/s43.2334.59+25%
Qwen2.5-3B tok/s240.48270.04-11%
Qwen2.5-7B tok/s159.81143.94+11%
Qwen2.5-Coder-1.5B tok/s322.96427.12-24%
Qwen2.5-Coder-3B tok/s241.51269.9-11%
AI21-Jamba-Reasoning-3B tok/s231.15258.41-11%
Codestral 22B (Q3_K_M) tok/s48.3759.53-19%
DarkIdol-Llama-3.1-8B-Instruct-1.2-Uncensored tok/s156.62134.78+16%
DeepSeek-R1 Distill 14B (Q3_K_M) tok/s65.3385.85-24%
DeepSeek-R1-Distill-Qwen-32B-abliterated tok/s43.0734.43+25%
dolphin-2.9-llama3-8b tok/s153.34134.94+14%
Gemma 3 12B (Q3_K_M) tok/s69.793.05-25%
GLM-4.7-Flash-REAP-23B-A3B tok/s109.1146.51-26%
Josiefied-Qwen3-8B-abliterated-v1 tok/s146.8130.25+13%
Hermes-3-Llama-3.2-3B tok/s261265.87-2%
L3-8B-Stheno-v3.2 tok/s156.55135.53+16%
LFM2.5-8B-A1B tok/s351.47394.48-11%
Mistral-Nemo-Instruct-2407 tok/s106.3389.72+19%
Mistral Small 24B (Q3_K_M) tok/s45.3458.21-22%
NemoMix-Unleashed-12B tok/s105.0588.85+18%
Nemotron-3-Nano-30B-A3B tok/s192.44190.96+1%
Hermes-4-14B tok/s89.9775.1+20%
phi-2 tok/s228.1283.26-19%
Phi-4 14B (Q3_K_M) tok/s80.7189.18-9%
Qwen3-30B-A3B tok/s167.1214.05-22%
Qwen3-4B-Instruct-2507 tok/s192.89210.24-8%
Qwen1.5-0.5B tok/s497.73774.78-36%
Qwen2-1.5B tok/s322.09416.57-23%
Uncensored tok/s85.8274.31+15%
Qwen2.5-Coder-0.5B tok/s542.36715.81-24%
Qwen2.5-Coder-14B-Instruct-abliterated tok/s86.3474.63+16%
Qwen2.5-Coder 32B (Q3_K_M) tok/s31.0441.06-24%
Qwen2.5-Coder-7B-Instruct-abliterated tok/s159.76142.97+12%
Qwen3 30B A3B (Q3_K_M) tok/s142.78224.95-37%
Qwen3-4B-Instruct-2507 tok/s193.39212.05-9%
Qwen3-4B-Thinking-2507 tok/s189.89211.88-10%
SmolLM2-135M tok/s544.06916.56-41%
Cydonia-24B-v4.3 tok/s62.4148.43+29%
Qwen2.5 1.5B served serve tok/s4111.14686.8-12%
Qwen2.5 7B served serve tok/s1769.61406.8+26%
SmolLM2 1.7B served serve tok/s3865.23525.9+10%
TinyLlama 1.1B served serve tok/s3221.36278.4-49%
Qwen2.5 1.5B + 0.5B draft x vs solo0.6940.946-27%
Qwen3-Coder-Next-abliterated tok/s00n/a
Laguna-XS-2.1 tok/s00n/a
Nanbeige4.2-3B tok/s00n/a
Qwen3-Coder-Next tok/s00n/a
Qwen3-Next-80B-A3B-Thinking tok/s00n/a
Qwen3-Coder-Next tok/s00n/a
Qwen3-Next-80B-A3B-Thinking tok/s00n/a
Qwen3-Next-80B-A3B tok/s00n/a
DeepSeek-R1-Distill-Llama-70B tok/s016.49n/a
Hermes-4-70B tok/s016.45n/a
Llama-3.3-70B-Instruct-abliterated tok/s016.49n/a
Meta-Llama-3.1-70B tok/s016.49n/a

Whole-job comparison

How long each card takes to finish a complete pipeline, not just one model. NVIDIA A100 40GB SXM4 is faster on 12 of 15; NVIDIA L40S on 3.

WorkflowNVIDIA A100 40GB SXM4NVIDIA L40SDifferenceCost per run
50-image depth pass10 s6 sNVIDIA L40S 1.58x faster$0.003 vs $0.001
30-minute podcast pass59 s75 sNVIDIA A100 40GB SXM4 1.27x faster$0.016 vs $0.017
24-frame storyboard3 min4.1 minNVIDIA A100 40GB SXM4 1.33x faster$0.051 vs $0.053
500-image masking run3.5 min2.2 minNVIDIA L40S 1.62x faster$0.058 vs $0.028
60-second AI short film4 min4.9 minNVIDIA A100 40GB SXM4 1.25x faster$0.066 vs $0.065
60-second AI short film, narrated4.2 min5.1 minNVIDIA A100 40GB SXM4 1.22x faster$0.070 vs $0.067
6-panel comic page4.8 min6.5 minNVIDIA A100 40GB SXM4 1.36x faster$0.080 vs $0.086
Character sheet, 12 poses6.3 min8.4 minNVIDIA A100 40GB SXM4 1.34x faster$0.104 vs $0.110
Full codebase review11.7 min13.5 minNVIDIA A100 40GB SXM4 1.15x faster$0.195 vs $0.177
200-product catalogue cutout12.2 min6.2 minNVIDIA L40S 1.95x faster$0.203 vs $0.082
10 short social clips13.7 min19.1 minNVIDIA A100 40GB SXM4 1.39x faster$0.228 vs $0.251
40-product photo shoot22.2 min26.7 minNVIDIA A100 40GB SXM4 1.20x faster$0.370 vs $0.352
40-product shoot, start to finish24.8 min28 minNVIDIA A100 40GB SXM4 1.13x faster$0.414 vs $0.369
100-photo restoration batch50.2 min59.6 minNVIDIA A100 40GB SXM4 1.19x faster$0.836 vs $0.784
100-photo restore and enlarge56 min62.5 minNVIDIA A100 40GB SXM4 1.12x faster$0.934 vs $0.823

Renting by the hour, NVIDIA L40S finishes 10 of 15 cheaper. The quicker card is not automatically the cheaper way to get the work done.

Cost to rent

CardPer hour
NVIDIA A100 40GB SXM4$1.000
NVIDIA L40S$0.790

NVIDIA L40S is 1.27x cheaper per hour. Cheapest on-demand rate we see across RunPod and Vast.

Specifications compared

NVIDIA A100 40GB SXM4NVIDIA L40S
VRAM40GB48GB
ArchitectureAmpereAda Lovelace
Memory bandwidth1555 GB/s864 GB/s
Boost clock1,410 MHz2,520 MHz
TDP400 W350 W
Launch MSRP$12,000$7,500
Release2020-05-142023-08-08

FAQ

Which is better for ai & machine learning: NVIDIA A100 40GB SXM4 or NVIDIA L40S?
NVIDIA L40S performs better for ai & machine learning, winning 74 of 149 benchmarks in our suite with an average 10.7% advantage.
What are the main hardware differences between NVIDIA A100 40GB SXM4 and NVIDIA L40S?
NVIDIA A100 40GB SXM4 has 40GB VRAM and a 400W TDP, while NVIDIA L40S has 48GB VRAM and a 350W TDP.
Does VRAM matter more than speed between NVIDIA A100 40GB SXM4 and NVIDIA L40S?
For AI, yes, NVIDIA L40S fits 7 more of our 12 workloads than NVIDIA A100 40GB SXM4. A model that exceeds VRAM doesn't run slower, it doesn't run at all, so the card that fits the model wins that workload outright.
Where is the biggest performance difference between NVIDIA A100 40GB SXM4 and NVIDIA L40S?
MusicGen Small: NVIDIA L40S leads by roughly 125% (1.08 vs 2.43 x realtime) in our testing.

NVIDIA A100 40GB SXM4 full review · NVIDIA L40S full review · All AI & Machine Learning rankings