Can Qwen3 4B run on the L40S?
Yes. At 8K context the best fit is F16, using about 9.3 GB of the 45.6 GB usable on the L40S. Estimated speed ceiling: ~107 tokens/sec.
Memory by quant and context
| Quant | 4K ctx | 8K ctx | 32K ctx | Max tok/s (est., 8K) |
|---|---|---|---|---|
| 2-bit (Q2_K) | 2.7 GB Fits | 3.2 GB Fits | 6.6 GB Fits | 573 |
| 3-bit (Q3_K_M) | 3.1 GB Fits | 3.6 GB Fits | 7.0 GB Fits | 439 |
| 4-bit (Q4_K_M) • | 3.6 GB Fits | 4.1 GB Fits | 7.5 GB Fits | 346 |
| 5-bit (Q5_K_M) • | 3.9 GB Fits | 4.5 GB Fits | 7.9 GB Fits | 299 |
| 6-bit (Q6_K) • | 4.3 GB Fits | 4.9 GB Fits | 8.3 GB Fits | 261 |
| 8-bit (Q8_0) • | 5.2 GB Fits | 5.8 GB Fits | 9.2 GB Fits | 202 |
| 16-bit (F16/BF16) | 8.7 GB Fits | 9.3 GB Fits | 12.7 GB Fits | 107 |
• real GGUF file size from Qwen/Qwen3-4B-GGUF. Speed is a bandwidth ceiling (864 GB/s), not a benchmark. Methodology.
More
Qwen3 4B 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 (Qwen/Qwen3-4B), NVIDIA specs. Data as of 2026-11-17.