Can Qwen3-Coder 30B A3B Instruct run on NVIDIA L40 48GB?
YES — Runs Great
Qwen3-Coder 30B A3B Instruct needs ~25.8 GB VRAM. NVIDIA L40 48GB has 48.0 GB. With Q4_K_M quantization, expect ~73 tok/s.
Operating mode
Choose the run profile you care about
Interactive favors responsiveness, while light API and scale-out lean harder on serving readiness. The fit stays the same, but the recommendation lens changes.
Current mode
Balanced
Balanced for general local use. Keeps the ranking neutral across personal and serving workflows.
Select quantization to explore
Fit status
Runs well
Decode
73.4 tok/s
TTFT
2639 ms
Safe context
256K
Memory
25.8 GB / 48.0 GB
Memory breakdown
See how fast it feels
What limits this setup
This setup is broadly balanced for this model.
No major red flags
This recommendation has enough memory headroom and acceptable estimated speed for the selected workload.
Best improvement path
Performance by workload
| Workload | Grade | Fit | Decode | TTFT | Context |
|---|---|---|---|---|---|
| Chat | S | Runs well | 73.4 tok/s | 1439 ms | 256K |
| Coding | S | Runs well | 73.4 tok/s | 2639 ms | 256K |
| Agentic Coding | S | Runs well | 73.4 tok/s | 3838 ms | 256K |
| Reasoning | S | Runs well | 73.4 tok/s | 3118 ms | 256K |
| RAG | S | Runs well | 73.4 tok/s | 4798 ms | 256K |
Inference speed
Qwen3-Coder 30B A3B Instruct inference speed — tokens per second by GPU & Mac
Estimated decode speed (tokens/sec) for Qwen3-Coder 30B A3B Instruct at Q4_K_M across popular GPUs and Apple Silicon, using the fastest local runtime per device. Fastest is RTX 5090 32GB at ~182 tok/s. Speed is memory-bandwidth bound, so cards that fit the whole model in VRAM run far faster than ones that offload to system RAM.
| GPU / Mac | Memory | Quant | Speed (tok/s) | Fits? |
|---|---|---|---|---|
| 32 GB | Q4_K_M | 181.6 | Fits | |
| 24 GB | Q4_K_M | 115.8 | Offloads | |
RX 7900 XTX 24GB | 24 GB | Q4_K_M | 104.5 | Offloads |
| 24 GB | Q4_K_M | 99.1 | Offloads | |
Mac Studio M3 Ultra 256GB | 256 GB | Q4_K_M | 84.2 | Fits |
Mac Studio M2 Ultra 128GB | 128 GB | Q4_K_M | 70.2 | Fits |
Mac Studio M1 Ultra 128GB | 128 GB | Q4_K_M | 66.5 | Fits |
MacBook Pro M4 Max 128GB | 128 GB | Q4_K_M | 52.0 | Fits |
MacBook Pro M4 Max 64GB | 64 GB | Q4_K_M | 52.0 | Fits |
MacBook Pro M3 Max 64GB | 64 GB | Q4_K_M | 36.3 | Fits |
MacBook Pro M1 Max 64GB | 64 GB | Q4_K_M | 33.3 | Fits |
| 16 GB | Q4_K_M | 32.7 | Too big | |
MacBook Pro M4 Pro 48GB | 48 GB | Q4_K_M | 31.8 | Fits |
| 12 GB | Q4_K_M | 11.4 | Too big | |
| 12 GB | Q4_K_M | 7.2 | Too big | |
| 8 GB | Q4_K_M | 4.5 | Too big |
Estimates for single-stream decoding at Q4_K_M; real tokens/sec varies with prompt length, context, batch size, and runtime build. Prompt processing (prefill) is faster than the decode figures shown here.
Quantization options
How Qwen3-Coder 30B A3B Instruct (30.5B params) fits at each quantization level on NVIDIA L40 48GB (48.0 GB usable).
| Quant | Bits | VRAM | Quality | Fit |
|---|---|---|---|---|
Q2_K | 2 | 11.9 GB | Low | S87 |
Q3_K_S | 3 | 14.9 GB | Low | S88 |
NVFP4 | 4 | 17.1 GB | Medium | S88 |
Q4_K_M | 4 | 18.6 GB | Medium | S89 |
Q5_K_M | 5 | 22.0 GB | High | S90 |
Q6_K | 6 | 25.0 GB | High | S91 |
Q8_0Best for your GPU | 8 | 32.6 GB | Very High | S91 |
F16 | 16 | 62.5 GB | Maximum | F0 |
Get started
Copy-paste commands to run Qwen3-Coder 30B A3B Instruct on your machine.
Run
ollama run qwen3-coderFrequently asked questions
Can NVIDIA L40 48GB run Qwen3-Coder 30B A3B Instruct?
Yes, NVIDIA L40 48GB can run Qwen3-Coder 30B A3B Instruct with a S grade (Runs well). Expected decode speed: 73.4 tok/s.
How much VRAM does Qwen3-Coder 30B A3B Instruct need?
Qwen3-Coder 30B A3B Instruct (30.5B parameters) requires approximately 25.8 GB of memory with Q4_K_M quantization.
What is the best quantization for Qwen3-Coder 30B A3B Instruct?
The recommended quantization for Qwen3-Coder 30B A3B Instruct is Q4_K_M, which balances quality and memory efficiency.
What speed will Qwen3-Coder 30B A3B Instruct run at on NVIDIA L40 48GB?
On NVIDIA L40 48GB, Qwen3-Coder 30B A3B Instruct achieves approximately 73.4 tokens per second decode speed with a time-to-first-token of 2639ms using Q4_K_M quantization.
Can NVIDIA L40 48GB run Qwen3-Coder 30B A3B Instruct for coding?
For coding workloads, Qwen3-Coder 30B A3B Instruct on NVIDIA L40 48GB receives a S grade with 73.4 tok/s and 256K context.
What context window can Qwen3-Coder 30B A3B Instruct use on NVIDIA L40 48GB?
On NVIDIA L40 48GB, Qwen3-Coder 30B A3B Instruct can safely use up to 256K tokens of context. The model's official context limit is 256K, but available memory constrains the safe maximum.
Embed this result▼
Paste this snippet into any page to show a live fit card.
<iframe src="https://willitrunai.com/embed/qwen-3-coder-30b-a3b-on-l40-48gb" width="400" height="180" frameborder="0" style="border:none;border-radius:12px;overflow:hidden;" title="Will It Run AI — fit result"></iframe>
Preview: