Skip to content
E
Educatum
Daily

Cloud Progress Sync

Sign in to Educatum

Sync your Daily AI/ML streaks, Stanford CS329Z progress, and study bookmarks across devices. Your existing browser progress will merge automatically.

🦙
Guest Alias
NVIDIA Accelerator45.0 GiB Usable (48 GiB Nominal) · 864 GB/s Bandwidth · Updated

Best LLMs for L40S 48 GiB: Compatibility & tok/s

Quick Verdict (8K Context, Batch=1, 1× L40S 48 GiB)

Out of 37 open-weight models, 1× L40S 48 GiB (45.0 GiB usable) fits 27 in GGUF Q4_K_M (up to Llama 3.1 70B at ~14 tok/s), 23 in FP8, and 14 in FP16 (up to GPT-OSS 20B).

All 37 Models on 1× L40S 48 GiB (45.0 GiB Usable)

Binary GiB totals include weights, 8K FP16/FP8 KV-cache, activations, and CUDA/runtime workspace buffers. Click any model to simulate multi-GPU tensor parallelism or longer context.

ModelArchitectureQ4_K_M (8K)FP8 (8K)FP16 (8K)
Llama 3.1 70BGQA · 70.6BFIT (44.1 GiB) · ~14 tok/sOOM (68.5 GiB)OOM (135.5 GiB)
Llama 3.3 70BGQA · 70.6BFIT (44.1 GiB) · ~14 tok/sOOM (68.5 GiB)OOM (135.5 GiB)
DeepSeek-R1-Distill-Llama-70BGQA · 70.6BFIT (44.1 GiB) · ~14 tok/sOOM (68.5 GiB)OOM (135.5 GiB)
Qwen4-35B-A3BGQA · 3B/56.82B MoEFIT (22.3 GiB) · ~210 tok/sFIT (35.4 GiB) · ~154 tok/sOOM (69.3 GiB)
Mixtral 8x7BGQA · 12.9B/46.7B MoEFIT (29.0 GiB) · ~68 tok/sOOM (45.5 GiB)OOM (89.4 GiB)
Qwen3-32BGQA · 32.8BFIT (22.1 GiB) · ~29 tok/sFIT (33.0 GiB) · ~19 tok/sOOM (64.6 GiB)
DeepSeek-R1-Distill-Qwen-32BGQA · 32.8BFIT (22.1 GiB) · ~29 tok/sFIT (33.0 GiB) · ~19 tok/sOOM (64.6 GiB)
Qwen2.5-Coder-32BGQA · 32.8BFIT (22.1 GiB) · ~29 tok/sFIT (33.0 GiB) · ~19 tok/sOOM (64.6 GiB)
Qwen3-30B-A3B (MoE)GQA · 3.3B/30.5B MoEFIT (19.5 GiB) · ~160 tok/sFIT (30.2 GiB) · ~132 tok/sOOM (59.0 GiB)
Qwen3.8-27BGQA · 27.78BFIT (17.9 GiB) · ~36 tok/sFIT (27.7 GiB) · ~23 tok/sOOM (53.9 GiB)
Gemma 3 27BGQA · 27.4BFIT (18.1 GiB) · ~36 tok/sFIT (27.5 GiB) · ~23 tok/sOOM (53.5 GiB)
Inkling-2-MiniGQA · 3.4B/26.39B MoEFIT (16.6 GiB) · ~137 tok/sFIT (26.1 GiB) · ~98 tok/sOOM (50.8 GiB)
Mistral Small 3 24BGQA · 24BFIT (16.4 GiB) · ~40 tok/sFIT (24.5 GiB) · ~27 tok/sOOM (47.4 GiB)
GPT-OSS 20BGQA · 3.6B/20.91B MoEFIT (13.5 GiB) · ~208 tok/sFIT (21.0 GiB) · ~149 tok/sFIT (40.6 GiB) · ~82 tok/s
MiniCPM5-15B-A2.5BGQA · 2.5B/15B MoEFIT (10.2 GiB) · ~251 tok/sFIT (15.5 GiB) · ~190 tok/sFIT (29.6 GiB) · ~109 tok/s
DeepSeek-R1-Distill-Qwen-14BGQA · 14.8BFIT (11.4 GiB) · ~59 tok/sFIT (16.0 GiB) · ~41 tok/sFIT (30.5 GiB) · ~21 tok/s
Qwen3-14BGQA · 14.8BFIT (11.1 GiB) · ~61 tok/sFIT (15.9 GiB) · ~42 tok/sFIT (30.3 GiB) · ~21 tok/s
Qwen2.5-14BGQA · 14.8BFIT (11.4 GiB) · ~59 tok/sFIT (16.0 GiB) · ~41 tok/sFIT (30.5 GiB) · ~21 tok/s
Phi-4 14BGQA · 14.7BFIT (11.4 GiB) · ~59 tok/sFIT (15.9 GiB) · ~41 tok/sFIT (30.4 GiB) · ~21 tok/s
Gemma 3 12BGQA · 12.2BFIT (9.2 GiB) · ~74 tok/sFIT (13.2 GiB) · ~50 tok/sFIT (25.0 GiB) · ~26 tok/s
Mistral NeMo 12BGQA · 12.2BFIT (9.7 GiB) · ~71 tok/sFIT (13.5 GiB) · ~50 tok/sFIT (25.5 GiB) · ~25 tok/s
Qwen3-8BGQA · 8.2BFIT (7.2 GiB) · ~98 tok/sFIT (9.7 GiB) · ~71 tok/sFIT (17.9 GiB) · ~37 tok/s
Llama 3.1 8BGQA · 8.03BFIT (7.0 GiB) · ~102 tok/sFIT (9.4 GiB) · ~73 tok/sFIT (17.4 GiB) · ~38 tok/s
DeepSeek-R1-Distill-Llama-8BGQA · 8.03BFIT (7.0 GiB) · ~102 tok/sFIT (9.4 GiB) · ~73 tok/sFIT (17.4 GiB) · ~38 tok/s
Qwen2.5-7BGQA · 7.6BFIT (6.2 GiB) · ~119 tok/sFIT (8.8 GiB) · ~80 tok/sFIT (16.0 GiB) · ~41 tok/s
Gemma 3 4BGQA · 4.3BFIT (4.2 GiB) · ~190 tok/sFIT (5.6 GiB) · ~133 tok/sFIT (9.7 GiB) · ~71 tok/s
Qwen3-4BGQA · 4BFIT (4.8 GiB) · ~157 tok/sFIT (5.7 GiB) · ~128 tok/sFIT (10.0 GiB) · ~68 tok/s
ErgoGQA · 55B/1105.55B MoEOOM (630.2 GiB, -585 GiB)OOM (1031.4 GiB)OOM (2061.4 GiB)
DeepSeek-V4.1-Flash-1017GQA · 16B/763.21B MoEOOM (323.4 GiB, -278 GiB)OOM (529.2 GiB)OOM (1056.9 GiB)
DeepSeek-V3 / R1 (671B)MLA · 37B/671B MoEOOM (383.2 GiB, -338 GiB)OOM (626.7 GiB)OOM (1251.9 GiB)
Llama 3.1 405BGQA · 405.9BOOM (236.2 GiB, -191 GiB)OOM (381.6 GiB)OOM (761.6 GiB)
Llama 4 Maverick (400B/17B)GQA · 17B/400B MoEOOM (230.2 GiB, -185 GiB)OOM (374.8 GiB)OOM (748.0 GiB)
Qwen3-235B-A22BGQA · 22B/235B MoEOOM (136.4 GiB, -91 GiB)OOM (221.1 GiB)OOM (440.7 GiB)
Mixtral 8x22BGQA · 39B/141B MoEOOM (83.3 GiB, -38 GiB)OOM (133.7 GiB)OOM (265.9 GiB)
Mistral Large 2 (123B)GQA · 123BOOM (74.2 GiB, -29 GiB)OOM (117.5 GiB)OOM (233.4 GiB)
Llama 4 Scout (109B/17B)GQA · 17B/109B MoEOOM (64.9 GiB, -20 GiB)OOM (103.7 GiB)OOM (206.0 GiB)
Qwen2.5-72BGQA · 72.7BOOM (45.3 GiB, -0 GiB)OOM (70.5 GiB)OOM (139.4 GiB)

Interactive L40S 48 GiB Cluster & Context Simulator

1. Model & Workload

GQA · 56.82B/3B MoE

40L · 30 Gated DeltaNet + 10 Qwen Sparse Attn (16Q/2KV, 2K budget) · 36.3B GPU core (35B+ViT+MTP) + 20.5B Host-RAM n-gram table · 3.0B active MoE

Execution Mode
Weight Precision (Datacenter & GGUF)
KV:
8,192 tok
1 reqs

2. Target GPU / Mac Silicon

45.0 GiB Usable · 0.86 TB/s eff.
GPU Count (Tensor Parallel)
FITS IN VRAM (+9.6 GiB headroom)
35.4 / 45.0 GiB usable (79%)

Host-RAM offload active: ~38.1 GiB (20.5B 20.48B layer-2 n-gram table (Host RAM / mmap)) kept in Host RAM / mmap (toggle off to simulate all-on-GPU).

Total VRAM
35.4 GiB
Weights 33.8 GiB (FP8)
KV + SSM State
0.14 GiB
KV 0.08 + SSM 0.06 · 31.0×
Decode / User
~154.4 tok/s
HBM Bound
Cluster Output
~154 tok/s
AI 2.0 FLOP/B

VRAM Allocation vs. Hardware Capacity

Binary GiB (1 GiB = 2³⁰ B) · Usable VRAM excludes ECC/OS & per-GPU CUDA/NCCL buffers

Dashed line = Usable VRAM
Used: 35.4 GiB · Usable: 45.0 GiB (79%) 45.0 GiB Usable Weights: 33.8 GiBKV-Cache: 0.1 GiBSSM State: 0.1 GiBAct + CUDA: 1.4 GiB educatum.com/kv-cache

Decode Arithmetic Intensity Roofline

AI 2.0 vs Ridge 848 FLOPs/B
1416642561024 Ridge: 848 FLOPs/B · 733 TFLOPS Memory-Bandwidth Bound (2.0 FLOP/B) Arithmetic Intensity (FLOPs / Byte, log scale) educatum.com/kv-cache
Canonical URL stays clean; click Copy Shareable Link to share your exact slider config.
Qwen4-35B-A3B · KV_tok (10 full + 30 DeltaNet linear + FP8 indexer) = 10.3 KiB/tok (31.0× vs MHA) + 61.4 MiB/seq SSM state
Decode Step Read: 2.8 GiB active weights + 0.02 GiB KV (sparse 2048 cap) + 123 MiB SSM R/W → AI = 2.01 FLOPs/Byte (Memory-Bandwidth Bound; BW in decimal GB/s) · 38.1 GiB Host RAM (20.5B 20.48B layer-2 n-gram table (Host RAM / mmap))

Compare Other GPUs & Apple Silicon Macs

All 12 Profiles →

Frequently Asked Questions

What is the largest LLM L40S 48 GiB can run in GGUF Q4_K_M at 8K context?

With 45.0 GiB usable VRAM (48 GiB nominal minus ECC/OS reservation), the largest preset fitting cleanly on a single L40S 48 GiB at 8K context (batch=1) is Llama 3.1 70B, using 44.1 GiB total (0.9 GiB spare) at ~14 tok/s.

Why does Educatum count 45.0 GiB usable VRAM instead of 48 GiB for L40S 48 GiB?

Real GPUs lose binary vs. decimal headroom plus ECC, driver, and CUDA/NCCL context buffers (~1.0 GiB on single-GPU runs). Comparing 45.0 GiB usable prevents unexpected OOM errors.

How fast is decode generation on L40S 48 GiB?

L40S 48 GiB delivers 864 GB/s peak memory bandwidth. Because B=1 autoregressive decode streams active weights once per token, Llama-3.1 70B Q4_K_M runs at ~14.4 tok/s, while smaller active-parameter MoE or 4B–8B dense models run proportionally faster.

Try keywords like RoPE, FlashAttention, DPO, or Blind 75.