RunsOnMy ModelsGPUs & MacsBy VRAMAPI pricesVRAM calculatorNew

Can ERNIE 4.5 21B A3B Thinking run on the L40S?

Yes. At 8K context the best fit is Q8_0, using about 22.6 GB of the 45.6 GB usable on the L40S. Estimated speed ceiling: ~37 tokens/sec.

Memory by quant and context

Quant4K ctx8K ctx32K ctx128K ctxMax tok/s (est., 8K)
2-bit (Q2_K) •8.4 GB Fits8.6 GB Fits9.9 GB Fits15.2 GB Fits106
3-bit (Q3_K_M) •10.6 GB Fits10.8 GB Fits12.1 GB Fits17.4 GB Fits82
4-bit (Q4_K_M) •13.2 GB Fits13.5 GB Fits14.8 GB Fits20.0 GB Fits65
5-bit (Q5_K_M) •15.3 GB Fits15.5 GB Fits16.9 GB Fits22.1 GB Fits55
6-bit (Q6_K) •17.6 GB Fits17.8 GB Fits19.1 GB Fits24.3 GB Fits48
8-bit (Q8_0) •22.4 GB Fits22.6 GB Fits24.0 GB Fits29.2 GB Fits37
16-bit (F16/BF16) •41.5 GB Tight41.7 GB Tight43.0 GB Tight48.3 GB No20

• real GGUF file size from unsloth/ERNIE-4.5-21B-A3B-Thinking-GGUF. Speed is a bandwidth ceiling (864 GB/s), not a benchmark. Methodology.

More

ERNIE 4.5 21B A3B Thinking on every GPU and Mac · Every model that runs on the L40S · Other models that fit 48 GB VRAM · Try other settings in the calculator

Data: Hugging Face Hub (baidu/ERNIE-4.5-21B-A3B-Thinking), NVIDIA specs. Data as of 2026-11-17.