Can I run Qwen3 30B-A3B (2507) on the GeForce RTX 4060?
Runs wellQ4_K_M keeps attention and the experts of 13 layers on the GPU (7.6 GB) and the remaining experts in 13.0 GB of system RAM: Runs well, est. 32.4 tok/s (22.6–42.1, theoretical estimate ±30%).
8 GB VRAM · 272.0 GB/s · FP16 15.1 TFLOPS. Assumes 32 GB of DDR5-5600 system RAM, Windows with this GPU driving the display, 8k context and an f16 KV cache.
Verdict by system RAM
This page assumes 32 GB of system RAM. For this pair, the verdict depends on how much system RAM you have.
- 16 GBWon't runTry IQ4_XS: Runs wellest. 36.1 tok/s (25.2–46.9, theoretical estimate ±30%)
- 32 GBRuns wellest. 32.4 tok/s (22.6–42.1, theoretical estimate ±30%)(used on this page)
- 64 GBRuns wellest. 32.4 tok/s (22.6–42.1, theoretical estimate ±30%)
- 96 GBRuns wellest. 32.4 tok/s (22.6–42.1, theoretical estimate ±30%)
- 128 GBRuns wellest. 32.4 tok/s (22.6–42.1, theoretical estimate ±30%)
Every quant of Qwen3 30B-A3B (2507) on the GeForce RTX 4060
| Quant | File size | Verdict | Speed | Memory | Runs as | Notes |
|---|---|---|---|---|---|---|
| Q2_K | 11.26 GB | Runs well | est. 50.2 tok/s35.1–65.2theoretical estimate ±30% | 7.7 / 8.0 GB + 5.6 GB RAM | MoE experts in RAM | Not fully on the GPU — Runs great needs the whole model in GPU memory |
| IQ4_XS | 16.38 GB | Runs well | est. 36.1 tok/s25.2–46.9theoretical estimate ±30% | 7.6 / 8.0 GB + 10.8 GB RAM | MoE experts in RAM | Not fully on the GPU — Runs great needs the whole model in GPU memory |
| Q4_K_Mbaseline | 18.56 GB | Runs well | est. 32.4 tok/s22.6–42.1theoretical estimate ±30% | 7.6 / 8.0 GB + 13.0 GB RAM | MoE experts in RAM | Not fully on the GPU — Runs great needs the whole model in GPU memory |
| Q8_0 | 32.48 GB | Runs slowly | est. 18.8 tok/s13.2–24.5theoretical estimate ±30% | 7.2 / 8.0 GB + 27.3 GB RAM | MoE experts in RAM | Experts run from system RAM — Runs well needs 20 tok/s or more on this path |
Where the memory goes at Q4_K_M
- Weights
- 5.6 GB
- KV cache
- 0.8 GB
- Compute buffer
- 0.6 GB
- OS reserve
- 0.6 GB
- Free
- 0.4 GB
- Weights in system RAM
- 13.0 GB
System RAM, context length and KV cache
| Context | KV f16 | KV q8_0 | KV q4_0 |
|---|---|---|---|
| 4k | 19.3 GBRuns well est. 35.2 tok/s24.6–45.8theoretical estimate ±30% | 19.1 GBRuns well est. 36.5 tok/s25.5–47.4theoretical estimate ±30% | 19.0 GBRuns well est. 37.7 tok/s26.4–49.1theoretical estimate ±30% |
| 8k | 19.8 GBRuns well est. 32.4 tok/s22.6–42.1theoretical estimate ±30% | 19.4 GBRuns well est. 35.0 tok/s24.5–45.5theoretical estimate ±30% | 19.2 GBRuns well est. 36.4 tok/s25.5–47.3theoretical estimate ±30% |
| 16k | 20.6 GBRuns well est. 27.5 tok/s19.3–35.8theoretical estimate ±30% | 19.9 GBRuns well est. 31.7 tok/s22.2–41.1theoretical estimate ±30% | 19.5 GBRuns well est. 34.4 tok/s24.1–44.7theoretical estimate ±30% |
| 32k | 22.4 GBRuns well est. 21.4 tok/s15.0–27.8theoretical estimate ±30% | 20.9 GBRuns well est. 27.1 tok/s19.0–35.2theoretical estimate ±30% | 20.1 GBRuns well est. 31.4 tok/s22.0–40.8theoretical estimate ±30% |
| 64k | 25.0 GBRuns slowly est. 4.6 tok/s3.6–5.5calibrated estimate ±20% | 22.9 GBRuns well est. 20.7 tok/s14.5–26.9theoretical estimate ±30% | 21.3 GBRuns well est. 26.1 tok/s18.3–34.0theoretical estimate ±30% |
| 128k | 33.0 GBdoes not fit | 25.5 GBRuns slowly est. 4.3 tok/s3.5–5.2calibrated estimate ±20% | 23.7 GBRuns slowly est. 19.9 tok/s13.9–25.9theoretical estimate ±30% |
| 256k | 47.0 GBdoes not fit | 35.1 GBdoes not fit | 25.9 GBRuns slowly est. 4.1 tok/s3.3–4.9calibrated estimate ±20% |
S = Runs great · A = Runs well · B = Runs slowly · F = Won't run
At Q4_K_M the verdict stays Runs well up to 32k context with an f16 KV cache, and up to 64k with q8_0.
Estimated speed
- Generation
- est. 32.4 tok/s (22.6–42.1, theoretical estimate ±30%)
- Prompt processing
- Prompt-processing estimates only apply when the whole model runs on the GPU.
Why this verdict: Not fully on the GPU — Runs great needs the whole model in GPU memory
Measured on this exact combination
No public measurement for this exact combination yet; the numbers above are estimates.
If this is not enough
A larger model that also runs well on the GeForce RTX 4060
Runs wellQwen3.5 35B-A3B: Runs well, est. 39.3 tok/s (27.5–51.1, theoretical estimate ±30%)
Keep only the experts in system RAM
--n-cpu-moe 35 keeps only the experts of the first 35 layers in system RAM and everything else on the GPU (this estimate).
How to run it
Commands for the Q4_K_M file. Both tools download from Hugging Face on first run.
These commands assume 32 GB of system RAM. For a different amount of RAM, pick it under “System RAM, context length and KV cache” above to see the commands for it.
File: Qwen3-30B-A3B-Instruct-2507-Q4_K_M.gguf (18.56 GB) from unsloth/Qwen3-30B-A3B-Instruct-2507-GGUF.
llama-server -hf unsloth/Qwen3-30B-A3B-Instruct-2507-GGUF:Q4_K_M -c 8192 -ngl all --n-cpu-moe 35 -fa on- -ngl all loads every layer on the GPU.
- --n-cpu-moe 35 keeps the experts in the first 35 layers in system RAM; the remaining 13 layers with experts keep them on the GPU. This estimate assumes the same split.
- If loading fails with an out-of-memory error, raise the value to 36, or to 37 if that isn't enough.
- llama.cpp b7410 (December 2025) and later split the model in a similar way on their own if you leave out -ngl and --n-cpu-moe.
- -fa on enables flash attention (needed for KV cache quantization).
- --cache-type-k q8_0 --cache-type-v q8_0 shrinks the KV cache to 0.43 GB at 8k context.
PowerShell (quit the Ollama tray app first):
$env:OLLAMA_CONTEXT_LENGTH="8192"; ollama serve
ollama run hf.co/unsloth/Qwen3-30B-A3B-Instruct-2507-GGUF:Q4_K_M- Ollama defaults to 4k context on GPUs under 24 GB. Set OLLAMA_CONTEXT_LENGTH when starting the server, or /set parameter num_ctx inside the chat.
- Ollama 0.30 and later automatically keep part of the experts in system RAM to fit your VRAM. Older versions split whole layers instead, which is much slower.
/set parameter num_ctx 8192
Related pages
Guide: How much VRAM do local LLMs need? GPU requirements for 8–32 GB (2026)
Other models on the GeForce RTX 4060
Qwen3 30B-A3B (2507) on other hardware
Frequently asked questions
Can I run Qwen3 30B-A3B (2507) on the GeForce RTX 4060?
Q4_K_M keeps attention and the experts of 13 layers on the GPU (7.6 GB) and the remaining experts in 13.0 GB of system RAM: Runs well, est. 32.4 tok/s (22.6–42.1, theoretical estimate ±30%). Q4_K_M needs 19.8 GB at 8k context; this setup has 7.4 GB of usable memory and 28.0 GB of free system RAM.
How much context can Qwen3 30B-A3B (2507) use on the GeForce RTX 4060?
At Q4_K_M the verdict stays Runs well up to 32k context with an f16 KV cache (3.2 GB of KV) and up to 64k with a q8_0 KV cache (3.4 GB). The model supports up to 256k.
Which quant should I use, and how fast is it?
Q4_K_M (18.56 GB) is the recommended balance: Runs well, est. 32.4 tok/s (22.6–42.1, theoretical estimate ±30%). It is also the largest tracked file that gets this verdict.
Speeds are estimates from memory bandwidth, calibrated against public benchmarks, and each one comes with an error band and a confidence label. Real results vary with drivers, backend, context length and thermals.