r/LocalLLM • • 6h ago

Discussion Qwen4-35B-A3B Invocation Command Thread

Would it be possible for us to have a thread where we share our current Qwen4-35B-A3B configs?

-Device Specs

-Invoke command for whatever you're running it on

-Rationale

-Results

5 Upvotes

12 comments sorted by

2

u/Substantial_Town6723 4h ago

Device specs

GPU: RTX 5070 Ti, 16 GB (16,303 MiB), driver 621.24

CPU: Intel Core i7-14700

RAM: 64 GB DDR4-3200

Storage: model trunk on NVMe (the 41 s load). A SATA SSD took 8½ minutes.

OS: Windows 11, CUDA 13.3

strata.exe --pack qwen4\pack-q8_0
--native <trunk40.gguf> --native-dense-gguf <trunk40.gguf>
--ple-gguf Qwen4-35B-A3B-Q8_0-00002-of-00002.gguf
--expert-profile qwen4\expert-profile-40x256.bin
--expert-cache auto --prefill auto --spec 2
--max-context 262144 --kv int8 --kv-resident 20480
--pool-workers 12 --vram-reserve-mib 1300

Decode: 84.1 tok/s
Prompt reading: 262.6 tok/s
Car benchmark (one-shot HTML/JS coding task): 2.0 min, 10,004 tokens with 2,851 of them thinking, and genuinely good output
Expert-cache VRAM hit rate: 87.6%
VRAM: 15.0 of 15.9 GiB
Free RAM at 262K: 10.7 GiB standalone, 9.8 GiB through the studio
Time to ready: 41 s

1

u/stianhoiland 1h ago

Thanks!

Hey, ask your agent to do a couple bench runs with what you have there, but tweak two parameters: --resident-budget-gib # and STRATA_RESIDENT_HEADROOM_GIB=#. As a start, maybe 21 and 3, respectively, and go from there.

1

u/Substantial_Town6723 5h ago edited 4h ago

Sticking with qfn3.8-flash-next until 4-flash arrives. my testing with qfn4-35ba3b gave poor results.

I found it Hallucinates on routine news digests quite badly, where qfn-3.8 -flash-next has been rock solid.

I have been testing Q8 on strata.

1

u/Dampmaskin 2h ago

Not so different from Qwen 3.6 35B A3B in other words?

1

u/henbone11 5h ago

you should generally follow the model card, but testing and tweaking on your own specific hardware will always deviate slightly. no 2 setups are exactly the same so sharing what works for you may not work for anyone else. since you use claude, just have it optimize your local settings.

1

u/SuckulentGame 4h ago

After like 200k context and more tool calls it gets stuck in a thinking loop. Repeating like the last 3 command. With 0MTP

1

u/faf-net 3h ago

Device: RX 7900 XTX 24 GB in an eGPU dock, Core Ultra NAS with 62 GB RAM, Linux, llama.cpp b12973 (Vulkan, official Docker image).

Command (Heretic IQ4_XS, full 256K context):

llama-server -m Qwen4-35B-A3B-Heretic-IQ4_XS.gguf --mmproj mmproj-BF16.gguf \
  -c 262144 -ctk q8_0 -ctv q8_0 --fit off -ngl 99 \
  -ot per_layer_token_embd=CPU -fa on -np 1 --jinja

Rationale: I need the full 256K, so the question was what still fits on 24 GB. 8-bit K/V and the per-layer embedding table in RAM is enough to keep every layer on the card with IQ4_XS (23.6 GiB used). --fit off because I want a fixed split, not one that changes with whatever else touches the card. No MTP draft: there is no VRAM left for it at this context.

Results (median of 3): decode 88–91 tok/s; prefill 2,800 tok/s at 8K, 2,300 at 32K, 1,250 at 128K, 1,000 at 200K (a 200K prompt takes 201 s). Anything bigger than IQ4_XS has to move expert weights off the card and pays for it: Q4_K_M with blk.(34|…|40).ffn_.*_exps.=CPU added to -ot gives 52 tok/s and 395 s for 200K.

The same file on Strata 0.2.27 (strata-q4-lite, K/V int8, 262144 context, no draft head, no image input): 86–89 tok/s, prefill 2,200–2,400 tok/s all the way up, 200K in 91 s, 20.0 GiB VRAM. So llama.cpp for short prompts, Strata for long ones.

Quality: level with Flash-Next IQ3_XXS on my 102-task set, but clearly worse in German (38–44 against 56 of 60, graded blind, Q8_0 included), which is why I stay on Flash-Next. Data: https://github.com/faf-net/ugreen-idx6011-egpu-llm/tree/main/messen/daten/2026-12-04-qwen4-35b-a3b

0

u/evilmousse 6h ago edited 4h ago

I'm running a 9600x 32gb ddr5-6000, 9060xt 16gb, vulkan llama.cpp 1.1.1

llama-server ^

-m ....\Qwen4-35B-A3B-UD-Q4_K_M-00001-of-00002.gguf -c 131072 ^

--fit on --fit-target 512 ^

--load-mode mmap --lazy-mode on ^

--threads 6 --threads-batch 12 --parallel 1 --flash-attn on ^

--temp 1.0 --top-k 20 --top-p 0.95 --min-p 0.0 ^

--batch-size 1024 --ubatch-size 1024 ^

--cache-type-k q8_0 --cache-type-v q8_0 --cache-ram 2048 --checkpoint-min-step 16384 ^

--spec-type draft-mtp --spec-draft-n-max 2 --spec-draft-p-min 0.72 --timeout 900 ^

--reasoning-format deepseek --reasoning-effort high --no-reasoning-preserve --reasoning-budget 16384 ^

--reasoning-budget-message "Thinking budget reached. Proceed with the best action or response now." ^

--jinja --metrics --slot-save-path "....\Claude Checkpoints"

Not gonna pretend I know as much as others here, tuned by pasting logs & task manager info to google chat and testing different values until i liked the results. Hadn't messed with models I don't load entirely into vram before. I'm looking for good code from claude, and ok with less speed.

T/S 37.1 PP 287.4 QUALITY 90.4 Agent 92.1 Code 81.6 RP 96.0 Research 92.1 https://llm-bench.io/benchmarks/cmx9ljo8d05z401lma0axrv9a

2

u/coldfyrre 4h ago

You'd have a much better time if you swapped away from stock llama.cpp and vulkan. You want the HIP variant for RDNA4, can get it via forked versions of llama.cpp. I'm using strata, the current version is a little buggy with qwen4 but im getting 3x speed over straight llama.cpp

0

u/evilmousse 4h ago edited 4h ago

that's nice, but i think you missed the point of the thread when you downvoted, criticized, and didn't post your own setup. i'll take a look though. i'm on windows, so i'd have to set up the HIP/ROCm SDK and build my own https://github.com/stew675/llama-cpp-rdna-boosts which i think is too much of a side-track vs sticking with the binaries and progressing on other goals. as i said, i'm fine with the speed.

2

u/coldfyrre 4h ago

I didnt downvote or criticize? Redditors are so angry man

0

u/evilmousse 4h ago

no? my bad, i saw my comment go to 0 and your reply at the same time, so i took it less constructively.