NVIDIA L40S vs NVIDIA T4, AI & Machine Learning Comparison

NVIDIA L40S
NVIDIA L40S
vs
NVIDIA T4
NVIDIA T4

NVIDIA L40S wins 145 of 153 benchmarks, averaging 303.7% faster.

Both cards were measured first-party on our bench, same suite, same test rig.

What the numbers say

The gap is widest in Sana 1.6B, where NVIDIA L40S leads by 4396% (50.81 vs 1.13 images/min); the closest fight is Qwen2.5 1.5B + 0.5B draft (5% apart); VRAM decides part of this one: NVIDIA L40S runs 152 of our 12 AI workloads while the other card runs 111, models that don't fit score zero.

Benchmark results head-to-head

BenchmarkNVIDIA L40SNVIDIA T4Difference
Qwen3-4B tok/s212.0567.71+213%
Llama-3.1-8B tok/s135.5135.01+287%
Qwen2.5-Coder-14B tok/s74.619.76+278%
Qwen3-32B tok/s34.440n/a
Llama-3.3-70B tok/s16.490n/a
Stable Diffusion XL images/min17.022.36+621%
FLUX.1 dev images/min3.8360n/a
FLUX.1 Kontext dev images/min1.6930n/a
Qwen-Image-Edit images/min1.060n/a
Wan 2.2 5B (720p) frames/s0.490n/a
DeepSeek-R1 Distill Llama 8B tok/s135.5536.36+273%
DeepSeek-R1 Distill 1.5B tok/s426.38148.72+187%
DeepSeek-R1 Distill 14B tok/s74.619.21+288%
DeepSeek-R1 Distill 7B tok/s143.9737.58+283%
Gemma 3 12B tok/s80.9223.12+250%
Gemma 3 4B tok/s198.8765.12+205%
Gemma 4 12B tok/s80.8224.03+236%
Llama 3.2 1B tok/s618.87207.71+198%
Llama 3.2 3B tok/s270.8585.94+215%
Mistral 7B v0.3 tok/s144.7440.01+262%
Mistral Small 24B tok/s48.4311.33+327%
Phi-4 14B tok/s74.9817.46+329%
Phi-4 Mini 3.8B tok/s228.9364.15+257%
Qwen2.5-Coder 7B tok/s143.9337.54+283%
Qwen3 0.6B tok/s655.75263.47+149%
Qwen3 1.7B tok/s405.52139.92+190%
Qwen3 14B tok/s75.1219.31+289%
Qwen3 30B A3B tok/s213.660n/a
Qwen3 8B tok/s130.2736.51+257%
SmolLM3 3B tok/s272.8886.08+217%
Codestral 22B tok/s50.0612.59+298%
DeepSeek-R1 Distill 32B tok/s34.60n/a
Devstral Small 24B tok/s48.4311.4+325%
Dolphin 2.9.1 Yi 1.5 34B tok/s33.080n/a
Dolphin Mistral 24B Venice tok/s48.4311.36+326%
Dolphin X1 8B tok/s135.4835.66+280%
Dolphin 3.0 Llama 3.1 8B tok/s135.5535.68+280%
Dolphin 3.0 R1 Mistral 24B tok/s48.411.32+328%
Gemma 3 27B tok/s38.480n/a
Qwen2.5-Coder 32B tok/s34.590n/a
Qwen3-Coder 30B A3B tok/s219.040n/a
QwQ 32B tok/s34.590n/a
StarCoder2 15B tok/s66.8815.66+327%
FLUX.1 Schnell images/min26.240n/a
BiRefNet images/min863.81183.48+371%
Depth Anything V2 Large images/min959.33402.34+138%
Depth Anything V2 Small images/min970.61612.25+59%
SAM ViT-Base images/min998.79180.73+453%
SAM ViT-Huge images/min238.0834.91+582%
Swin2SR 4x Upscaler images/min34.1410.53+224%
Kokoro TTS 82M x realtime243.9942.88+469%
Whisper large-v3 x realtime193.244.36+336%
MusicGen Small x realtime2.430.92+164%
Florence-2 Base images/min184.2148.61+24%
Florence-2 Large images/min106.5483.43+28%
Dolphin X1 Trinity Nano 6B tok/s246.45114.21+116%
gpt-oss-20b tok/s233.8263.63+267%
Meta-Llama-3.1-8B tok/s135.4637.8+258%
Ornith-1.0-35B tok/s157.390n/a
Qwen-AgentWorld-35B-A3B tok/s156.980n/a
Qwen2.5-3B tok/s270.0486.04+214%
Qwen2.5-7B tok/s143.9439.01+269%
Olmo-3.1-32B-Think tok/s34.110n/a
Dolphin-Mistral-24B-Venice-Edition tok/s48.4311.33+327%
DeepSeek-Coder-V2-Lite tok/s257.6483.49+209%
DeepSeek-R1-0528-Qwen3-8B tok/s130.2337.7+245%
DeepSeek-R1-Distill-Llama-70B tok/s16.490n/a
EVA-Qwen2.5-14B-v0.2 tok/s74.6319.92+275%
Qwen2.5 1.5B LoRA train tok/s12120.11434.4+745%
Qwen2.5 7B LoRA train tok/s37360n/a
SmolLM2 1.7B LoRA train tok/s12052.11561.9+672%
TinyLlama 1.1B LoRA train tok/s16408.11520.1+979%
gemma-2-2b-it-abliterated tok/s278.1491.91+203%
gemma-2-2b tok/s278.192.13+202%
gemma-2-9b tok/s88.8728.62+211%
gemma-3-1b tok/s426.49156.88+172%
gemma-3-270m tok/s822.52362.8+127%
GLM-4.7-Flash-REAP-23B-A3B tok/s146.5153.83+172%
GLM-4.7-Flash tok/s157.890n/a
Josiefied-Qwen3-8B-abliterated-v1 tok/s130.2535.62+266%
SmolLM3-3B tok/s272.9686.86+214%
KAT-Coder-V2.5-Dev tok/s173.060n/a
L3-8B-Stheno-v3.2 tok/s135.5336.28+274%
LFM2.5-1.2B tok/s661.54221.66+198%
LFM2.5-8B-A1B tok/s394.48139.03+184%
Llama-2-7B tok/s150.3542.98+250%
Llama-3.2-3B-Instruct-uncensored tok/s271.0186.29+214%
Llama-3.3-70B-Instruct-abliterated tok/s16.490n/a
Meta-Llama-3.1-70B tok/s16.490n/a
Phi-4-mini tok/s229.2866+247%
Mistral-7B-Instruct-v0.1 tok/s144.8240.63+256%
Mistral-7B-Instruct-v0.2 tok/s144.8241.31+251%
Mistral-7B-Instruct-v0.3 tok/s144.6839.87+263%
Mistral-Nemo-Instruct-2407 tok/s89.7222.98+290%
Ornith-1.0-9B tok/s114.5732.93+248%
phi-2 tok/s283.2689.6+216%
Phi-3.5-mini tok/s229.0672.07+218%
Qwen3-0.6B tok/s656.26259.91+152%
Qwen3-1.7B tok/s405.3135.21+200%
Qwen3-14B tok/s75.0119.44+286%
Qwen3-8B tok/s130.2837.37+249%
Qwen2.5-0.5B tok/s738.06295.47+150%
Qwen2.5-1.5B tok/s427.23148.14+188%
Qwen2.5-14B tok/s74.6219.84+276%
Qwen2.5-32B tok/s34.590n/a
Qwen2.5-Coder-1.5B tok/s427.12148.51+188%
Qwen2.5-Coder-3B tok/s269.985.74+215%
Qwen3-4B-Instruct-2507 tok/s212.0567.45+214%
SmolLM2-135M tok/s916.56416.24+120%
Cydonia-24B-v4.3 tok/s48.4311.21+332%
Hermes-4-14B tok/s75.119.02+295%
Qwen3-30B-A3B tok/s214.050n/a
Qwen2.5-Coder-14B-Instruct-abliterated tok/s74.6318.86+296%
Qwen3-4B-Thinking-2507 tok/s211.8867+216%
Qwen2.5 1.5B served serve tok/s4686.81337.1+251%
Qwen2.5 7B served serve tok/s1406.80n/a
SmolLM2 1.7B served serve tok/s3525.91222.5+188%
TinyLlama 1.1B served serve tok/s6278.41897.8+231%
Codestral 22B (Q3_K_M) tok/s59.5311.3+427%
Qwen3 30B A3B (Q3_K_M) tok/s224.9561.82+264%
AuraFlow v0.3 images/min3.580n/a
PixArt-Sigma XL images/min26.950n/a
Sana 1.6B images/min50.811.13+4396%
Stable Diffusion 3.5 Large images/min4.540n/a
Stable Diffusion 3.5 Medium images/min11.580n/a
Qwen2.5 1.5B + 0.5B draft x vs solo0.9460.9+5%
AI21-Jamba-Reasoning-3B tok/s258.4186.91+197%
DarkIdol-Llama-3.1-8B-Instruct-1.2-Uncensored tok/s134.7835.73+277%
DeepSeek-R1-Distill-Qwen-32B-abliterated tok/s34.430n/a
dolphin-2.9-llama3-8b tok/s134.9435.1+284%
Hermes-3-Llama-3.2-3B tok/s265.8784.99+213%
Hermes-4-70B tok/s16.450n/a
Qwen3-Coder-Next-abliterated tok/s00n/a
Laguna-XS-2.1 tok/s00n/a
Nanbeige4.2-3B tok/s00n/a
NemoMix-Unleashed-12B tok/s88.8523.19+283%
Nemotron-3-Nano-30B-A3B tok/s190.960n/a
Qwen3-4B-Instruct-2507 tok/s210.2466.89+214%
Qwen3-Coder-Next tok/s00n/a
Qwen3-Next-80B-A3B-Thinking tok/s00n/a
Qwen1.5-0.5B tok/s774.78328.29+136%
Qwen2-1.5B tok/s416.57147.68+182%
Uncensored tok/s74.3118.94+292%
Qwen2.5-Coder-0.5B tok/s715.81294.96+143%
Qwen2.5-Coder-7B-Instruct-abliterated tok/s142.9737.31+283%
Qwen3-Coder-Next tok/s00n/a
Qwen3-Next-80B-A3B-Thinking tok/s00n/a
Qwen3-Next-80B-A3B tok/s00n/a
DeepSeek-R1 Distill 14B (Q3_K_M) tok/s85.8516.86+409%
Gemma 3 12B (Q3_K_M) tok/s93.0519.79+370%
Phi-4 14B (Q3_K_M) tok/s89.1816.04+456%
Mistral Small 24B (Q3_K_M) tok/s58.2110.13+475%
Qwen2.5-Coder 32B (Q3_K_M) tok/s41.060n/a

Whole-job comparison

How long each card takes to finish a complete pipeline, not just one model. NVIDIA L40S is faster on 4 of 4; NVIDIA T4 on 0.

WorkflowNVIDIA L40SNVIDIA T4Difference
50-image depth pass6 s13 sNVIDIA L40S 2.18x faster
500-image masking run2.2 min14.4 minNVIDIA L40S 6.69x faster
200-product catalogue cutout6.2 min20.3 minNVIDIA L40S 3.26x faster
Full codebase review13.5 min50.7 minNVIDIA L40S 3.77x faster

Specifications compared

NVIDIA L40SNVIDIA T4
VRAM48GB16GB
ArchitectureAda LovelaceTuring
Memory bandwidth864 GB/s320 GB/s
Boost clock2,520 MHz1,590 MHz
TDP350 W70 W
Launch MSRP$7,500$2,299
Release2023-08-082018-09-13

FAQ

Which is better for ai & machine learning: NVIDIA L40S or NVIDIA T4?
NVIDIA L40S performs better for ai & machine learning, winning 145 of 153 benchmarks in our suite with an average 303.7% advantage.
What are the main hardware differences between NVIDIA L40S and NVIDIA T4?
NVIDIA L40S has 48GB VRAM and a 350W TDP, while NVIDIA T4 has 16GB VRAM and a 70W TDP.
Does VRAM matter more than speed between NVIDIA L40S and NVIDIA T4?
For AI, yes, NVIDIA L40S fits 36 more of our 12 workloads than NVIDIA T4. 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 L40S and NVIDIA T4?
Sana 1.6B: NVIDIA L40S leads by roughly 4396% (50.81 vs 1.13 images/min) in our testing.

NVIDIA L40S full review · NVIDIA T4 full review · All AI & Machine Learning rankings