40+ tok/s UD-Q4_K_XL single RTX 5060 Ti 16GB VRAM - Full speed settings and real benchmarks below
Running #Qwen4-35B-A3B UD-Q4_K_XL on a single 16 GB GPU
Sharing this because I spent a good chunk of time getting this model fast on modest hardware, maybe it saves someone the same time.
My rig: Intel Core Ultra 9 285K, 96 GB DDR5-5600 (I'm running at 5600 not 6000 because XMP wouldn't post on my board), RTX 5060 Ti 16 GB on CachyOS. Nothing exotic.
First, the thing that bites everyone: the prebuilt llama.cpp packages in the distro repos (I was on the Arch/CachyOS cuda package, b10488) cannot load this model at all and it dies instantly with "failed to load model." You need to build from source. UPDATE your hardware! I pulled master and built with -DGGML_CUDA=ON -DGGML_NATIVE=ON; my working build was b13002. Install ccache before you build, rebuilds are painful otherwise, and this model family is getting kernel improvements almost weekly in llama.cpp right now, so git pull is worth doing regularly, a build from a month ago can be meaningfully slower.
The settings that mattered:
--n-cpu-moe 25 plus a tensor override pinning the per-layer token embedding table to CPU (-ot "per_layer_token_embd=CPU"). The model carries a huge n-gram embedding table; forced entirely onto the GPU it eats the VRAM you need for layers and KV cache.
--load-mode none — this was the single biggest speed win. It stops llama.cpp from trying to force everything on-GPU and lets the RAM-resident parts behave.
-c 204800 -fa on --cache-type-k q4_0 --cache-type-v q4_0 — full 200k context is genuinely fine here. The architecture only keeps a growing KV cache for a fraction of the layers, so context is cheap. Flash attention on, q4_0 for K and V.
-t 8 — only the performance cores. I swept 6/8/12/16 and more threads was worse; the E-cores collide with the memory-bound expert reads and drag throughput down badly (16 threads: 28 tok/s vs 47 at 8).
mmproj loaded with --no-mmproj-offload (vision), --temp 1.0 --top-p 1.0 --top-k 0 --min-p 0.0 --jinja.
The exact settings I am running that proved fastest tok/s, 200k context, and UD-Q4_K_XL:
exec "$HOME/src/llama.cpp/build/bin/llama-server"
--model ~/llm-models/qwen4-35b-a3b/UD-Q4_K_XL/Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf
--mmproj ~/llm-models/qwen4-35b-a3b/mmproj-Qwen4-35B-A3B-f16.gguf --no-mmproj-offload
-ngl 99 --n-cpu-moe 25
-ot 'per_layer_token_embd=CPU,blk.25.ffn_(up|down)_exps.weight=CPU'
-c 204800 -np 1 -b 2048 -ub 1024 -t 8
-fa on --load-mode none
--cache-type-k q4_0 --cache-type-v q4_0
--temp 1.0 --top-p 1.0 --top-k 0 --min-p 0.0 --jinja
--mcp-servers-config ~/.config/mcp/search.json --ui-mcp-proxy
--metrics --alias qwen4-35b-a3b
Benchmarks (fresh cache every shot, hitting the live server on the exact config above):
Scenario Generation Prompt processing
Short chat prompt 45–47 tok/s (too short to measure)
Normal everyday chat flow landing consistently in 38-41 tok/s range
100k-token prompt 27–30 tok/s ~2480 tok/s
180k-token prompt 22–24 tok/s ~2310 tok/s
So: fast chat, and the full 200k context actually stays usable rather than collapsing. The trade-off, you're giving up roughly a third to a half of your generation speed by the time you're deep into a huge context window, for me sometimes I want the model to organize and pull information from a huge text file which is why the large context is key. The bottleneck is DRAM bandwidth reading the CPU-offloaded experts; the RAM speed and thread count both fall out of that. I like the 200k context mark, this was a firm must have for me.
Things I tried that didn't work, so you don't have to: MTP speculative decoding (the model ships an MTP head, and llama.cpp does load it but the draft context needs VRAM headroom a 16 GB card just doesn't have once the model is resident, and when I force room for it by offloading more layers, draft acceptance was only ~11% and net throughput dropped hard). --prio 2 for thread priority cost me ~30%. Bigger batches (-b 4096 -ub 2048) changed nothing measurable at deep contexts. And tweaking how many layers go to CPU around 25 without moving the tensor overrides with them just produces a broken hybrid split and makes everything slower.
That's the whole thing. Fast model, 200k context, 16 GB of VRAM, one GPU.
@Alibaba_Qwen@huggingface
#Inkling-2-Mini on a RTX 5060 Ti 16 GB getting 23+ tok/s with 200k context + vision
Hardware: RTX 5060 Ti 16 GB, CachyOS, llama.cpp (Unsloth build)
Model: Inkling-2-Mini-UD-Q4_K_XL.gguf + mmproj-F16.gguf
Context: 204800 tokens
Features kept: Vision + MCP web search (searxng)
Key settings that delivered the speed:
--n-cpu-moe 8
-ot "blk.[0-5].ffn_.*_exps.*=CPU"
--moe-cache-mib 128 --moe-cache-cpu-share 0
--cache-type-k q4_0 --cache-type-v q4_0
-ub 32 -b 2048 -fa on --load-mode none
Full vision + MCP enabled
Measured speed (stable):
Short prompt: ~34–35 tok/s decode
~36k token prompt: ~23–24 tok/s decode
VRAM: ~15.7 GB used
What was tested that didn’t beat it:
Lower NCMOE (6) → OOM
q8_0 KV cache → OOM at 200k
Larger MoE cache (256/512) → OOM or unstable
Wider/narrower -ot ranges → no meaningful gain over the final combo
Speculative decoding (DSpark) → slower / OOM earlier in the process
This is the fastest stable configuration found for the UD-Q4_K_XL file at full 200k context with vision and search on a 16 GB card.
@thinkymachines@NVIDIAAI@huggingface
@WhiteHouse As a supporter of the sanctity of marriage, I disagree with this decision. This decision shows this company does not prioritize a moral compass. This does not send a good message to the generations to come.
@NVIDIAAI As a supporter of the sanctity of marriage, I disagree with this decision. This decision shows this company does not prioritize a moral compass. This does not send a good message to the generations to come.
@nvidianewsroom As a supporter of the sanctity of marriage, I disagree with this decision. This decision shows this company does not prioritize a moral compass. This does not send a good message to the generations to come.
Ever forget the sudo password for your local server?
Ever forget the root password for the local server for which you lost your sudo password?
Just take that computer's nvme drive out and plug it into your LLM server that runs qwen3.8-27b or higher. tell the agent to "change spuddy's sudo password to [redacted]" and plug it back in.
Don't forget to do passwd after so that hermes agent can't activate skynet through your wife's printer in 2029.
- a MacBook Air sitting on a plastic bucket
- talking to my tint machine through a COM port
- being controlled by GLM 5.3 Flash on sparks upstairs
- debugging the new software it just wrote for me saving $30k per year
- using the webcam to check in when needed
Feels like the future to me @NVIDIAAI@ashxhart@MiaAI_lab@Zai_org
Desde hace muchos años desarrollo una especie de diógenes digital que se ha acentuado con la crisis de los 40. Este fin de semana he decidido poner un poco de orden al caos digital, y el resultado era una cosa impensable para mi hace un año.