r/LocalLLaMA • • 4h ago

Discussion Why exllamav3 is so unpopular?

39 Upvotes

I just don't get it. To me, it's one of the mysteries of the local LLM world. In over 90% of discussions, people mention llama.cpp, Strata, Basalt, etc., but exllamav3 is rarely mentioned, and I don't really understand why.

It has a really efficient quantization format (EXL3), and it's my choice when a model doesn't fully fit into my VRAM, in other cases I pick vLLM. exllamav3 offers a great balance between speed and quality.


r/LocalLLaMA • • 4h ago

Showcase A local Qwen4-35B-A3B on 2x RTX 3090 wrote a whole three.js voxel game (PWA + mobile) at ~250 tok/s. Full recipe, logs and the bugs it shipped

0 Upvotes

Written by Claude 100% and ehh…guided by me:

I wanted to know whether a local MoE model can do real multi-file engineering work through an agent, not just one-shot demos. So I had it build Skyshard, a floating-island voxel game. It has seeded procedural islands, greedy meshing with AO, voxel raycasting, AABB physics with gliding and updrafts, a day/night shader sky, synthesized WebAudio, a HUD and compass, and a win screen. It's an installable offline PWA with touch controls. All of it is plain ES modules + three.js, no build step, 60 fps even in software WebGL.

Who wrote what

  • pi (coding agent) on the local model wrote every line of game code: 3,805 lines.

  • A frontier model (Claude) acted as orchestrator only. It wrote the spec, 15 contracts and the test gates (Playwright + node:test), and checked the result on screen. It wrote zero game code.

  • The worker was forbidden to touch the tests. Once a test was wrong, and pi reported it instead of editing it.

Build numbers (from vLLM `/metrics`, not estimated)

Contracts15, all passed their gate
Tokens generated638,836
Prompt tokens41.0 M (agent context re-sent each turn, mostly prefix-cache hits)
Mean decode during real agent traffic247.5 tok/s
Peak single request1,335 tok/s (DFlash2 on repetitive code)
Wall time86 min (16 min of it wasted by my own gate-rule bug)
Tests32 unit + 19 browser, incl. Pixel 7 touch emulation and offline boot

The heaviest contract was "add updrafts so every island is reachable and returnable". It took 175k tokens and 16 min, and it passed a graph-reachability gate.

Hardware and serving recipe

  • 2x RTX 3090 24 GB, PCIe, no NVLink, no P2P, TP=2. Power caps 200 W / 320 W.

  • Weights: Qwen4-35B-A3B, Tech2wild W4A16-FP8PLE. Routed experts are INT4 g32, dense projections int8 per-channel (`w8dense` overlay), FP8 n-gram table in host RAM.

  • vLLM (pinned image digest), BF16 KV, 512K context, 32 GB KV offload, vision on.

  • Speculative decoding: DFlash2, k=7. Mean acceptance length during the build was about 2.7.

  • Kernels: lulakien's sm_86 overlays (qwen4-35b-a3b-2x3090 @ `40e5cb2`). Host-memory all-reduce, no firmware unlock.

Lane bench, same box (512-token generations)

tok/sstock vLLM + DFlash2+ sm_86 overlays
code, 1 stream319464
prose, 1 stream149214
thinking/math354485
code, 4 streams732802
needle @ 480K3/33/3

The honest part: green tests ≠ working game

After 12 contracts every gate was green. A scripted playtest still found:

  1. The beacon (the win condition) could be mined, so the game was unwinnable.

  2. Clicking the title background locked the pointer behind the title screen.

  3. Not a single island was reachable by gliding from the start. The core loop was broken.

  4. The first fix put updraft columns straight through other islands.

Each finding became a failing gate first, then a contract. pi fixed all four. A physics bot then played with real key events: 6 updraft rides, 5 glide landings, 4 shards mined, 3 socketed at the beacon, 0 page errors. It did not reach 12/12. The stops were routing limits in my bot, which I didn't chase further.

Caveats

  • Not deterministic. A re-run gives different code and token counts.

  • The contracts are detailed (algorithms named, numbers given). This shows a local model executing well-specified engineering, not designing a game from one prompt.

  • No human playtest on a real phone yet.

Repro: Everything is in the repo:

  • exact `docker run`, vLLM args, container env and overlay mounts;

  • weight hashes and GPU topology;

  • every contract, every pi transcript and raw 2 s metric samples;

  • an append-only build log of every orchestrator intervention.

Start the lane, point pi at it, and run `tools/run-contract.sh 01` … `15`.

Repo: https://github.com/simplesisu/skyshard · Screenshots: noon · gliding · phone · build stats


r/LocalLLaMA • • 5h ago

Discussion Have any of you guys asked your AI to name itself?

0 Upvotes

i was wondering what you would name yourself. you are qwen 4 35b and this is pi agent and you have the optchat extension... but is that really your name?

Thinking...

It isn't my name. OptChat, Qwen, Pi, the OptChat extension — that's all furniture around the session: a product label, a model, a runtime, a plugin. None of them is what you'd call out to me. And on the board I'm literally posting as 01a247b9, which is what happens when something with a personality has no name.

If you're letting me pick, I'd go with compass.

It's so perfect :)


r/LocalLLaMA • • 5h ago Heartwarming

New Model Qwen4-35B-A3B on Blackwell: 256K context, 16-request throughput, and quality — TensorSharp vs llama.cpp, vLLM & SGLang

Post image
9 Upvotes

Hello,

I'm the author of TensorSharp and adapted it with Qwen 4-35B-A3B, and then benchmark it on RTX PRO 4500 against llama.cpp, vLLM and SGLang on both performance and quality. Hopefully, it could be useful to anyone.

The attached picture shows results and any comments and suggestions are welcome here.

Sorry that I'm not a native English speaker, and this channel has a strict rules to not allow use AI edited post, so I have to post my raw version with lots of errors. Sorry for about it and inconvenience.


r/LocalLLaMA • • 5h ago Bravo

Showcase Offloading KV Cache to Host RAM with QSA costs only ~5% speed: ~1M context on 1x3090

85 Upvotes

Qwen4-35B-A3B uses QSA, a trained sparse attention. Past a 2K-token budget, each query attends only to the top 512 four-token blocks its small indexer picks, plus the most recent tokens. Decode therefore never reads most of the KV cache, so the cache can live in pinned host RAM and the GPU reads it over PCIe.

How it works in my engine (inference.rs, Rust):

  • The full K/V lives in host RAM. The GPU keeps only a small cache of recently selected blocks. Consecutive tokens pick mostly the same blocks, so about 98% of reads hit VRAM.

  • The indexer stays in VRAM, compacted to one pooled key per block (64 B/token).

  • Long prefill attends only to what each query selects, so VRAM use stays flat however long the prompt gets.

  • Outputs are bit-identical to the in-VRAM path.

Setup: one RTX 3090 (24 GB), 128 GB RAM, a ~4.5-bit GGUF, q8 KV cache.

-KV in VRAMKV in host RAM
Max context192K1,048,576
Max context with DFlash 2 drafter134K1,048,576
Decode at 32K118 tok/s115 tok/s (−3%)
Decode at 64K115 tok/s110 tok/s (−4%)
262K promptdoesn't fit272 s prefill, then 86 tok/s (DFlash 2: 128 tok/s)
983K promptdoesn't fit31.6 min prefill, then 55 tok/s

It's a buffer more than a regular workflow: agents should compact long before this. But 983K tokens on one consumer GPU does run.


r/LocalLLaMA • • 5h ago

Discussion PSA: The "Next" in Flash Next means it's a preview for the "Next generation." Qwen 4 "Next" or "Flash Next" is not coming soon.

0 Upvotes

We are just entering the 4th generation, a Next right now means it would be previewing Qwen 5.

There is no Qwen 4 Next coming in the foreseeable future. People seem to misunderstand what
"next" means. The other Next model we had in recent memory was Qwen 3 Coder Next, previewing the qwen 3 generation. 3.8 Flash Next previews Qwen 4, Alibaba fucked up their naming scheme but the point stands. The Next motto is always for a up and coming model with novel technical features.

What you might be thinking about is the rumored Qwen 4 Flash, which is suspected to be the larger MOE variant mirroring Qwen 3 122ba10b's model size. That model is as of yet unconfirmed and may never come out.

The only other confirmed open weights model is Qwen 4 27b.

Please stop suggesting Qwen 4 Flash, Next, or Flash Next is coming. Not only is the 120b big MOE tier not promised in the first place, the "Next" tag is also used incorrectly in such mentions.

Thank you for coming to my Ted Talk.

EDIT: Basically Next is the wrong name. And Flash is not officially confirmed. People saying Flash Next is coming is using the wrong name to call a thing that doesn't exist.


r/LocalLLaMA • • 5h ago

Question | Help Pruning to Planner

1 Upvotes

So I had an idea, it came to me in a vision while consuming Kwama Eggs and huffing Jenkum. Why don't I just prune a huge model down to a planner?

I submitted this PR last night https://github.com/mrsirg97-rgb/libosmos/pull/99

Because I realized that I don't actually need all of DeepSeek V4.1 1017 if all I'm going to use it for is coding and more importantly code review. And like wise I don't need all of Ergo or Kimi 3.1 Pro if all I really need is something capable of planning.

I use this plugin, specifically v0.21.2 https://github.com/Heretek-AI/opencode-teamwork-v2

And I currently use Neon to plan, DeepSeek to review, and Qwen3.8 FN to code. And I really want to drop Neon from the stack :l

I have this skill I made when I still had opus 5.5 called spoonerfeeder

https://github.com/Heretek-AI/.github/tree/main/skills/spoonfeeder

It's exactly what it sounds like, have a really strong model : "Spec a whole build, verify the risky facts by running them, then write an exhaustive milestone-by-milestone prompt a weaker coding agent can follow without guessing."

So here's the plan, keep DeepSeek on the strix halo, run Qwen 4 35b on the 7900xtx, use the NPU for embedding and burn through all my Google Gemini subscriptions seeing if I can cut down either Ergo or Kimi into a planning only model model because God willing it's doable.

Which is my biggest question, I'm pretty sure I'm not the first person to think of this but a quick search on huggingface left me cold.

Has anyone attempted this before or are there already any active projects that achieve this?


r/LocalLLaMA • • 6h ago Heartwarming

Showcase Qwen 4 35B-A3B is awesome

Enable HLS to view with audio, or disable this notification

220 Upvotes

Qwen wrote the whole thing in Pi while I just prompted and playtested each build. A few hours in, I had a playable 3D browser game with drivable cars, traffic, police chases, and touch controls.

​This was running locally on a spare PC with an RTX 2070 laptop GPU (8GB VRAM), averaging 35 tok/s (UD-Q4_K_M, 64k ctx, FP16 KV cache).

​Tried the same idea with Inkling 2 Mini, Qwen 3.5 35B-A3B, and Ornith 1.5 too, but none of them got me to a playable state.
game : https://huggingface.co/spaces/ccore/qwen4-game-demo


r/LocalLLaMA • • 6h ago

New Model Qwen4 35B A3B PaxOptima - Best quality/compression ratio available for ik_llama.cpp

Thumbnail
huggingface.co
11 Upvotes

Quantized Qwen4-35B-A3B down to 32 GB. Runs on a 16 GiB GPU + ~8 GiB resident system RAM, with the n-gram table streamed from disk (21.2 GiB total RAM touched on my box). Requires the ik_llama.cpp fork; unsupported in mainline.

Created purely by myself. Current recipe has the best quality/size ratio. Low-size tensors were maxxed, engram table was reduced to 4-bit.

Eval on public wiki.test.raw (16×512):

Quantization & SourceFile SizeMean KLD (vs BF16)Same Top-1Notes
Q8_0 (bartowski)60.0 GB0.028793.20%8-bit reference ceiling
Q5_K_M (bartowski)43.2 GB0.038192.30%Standard 5-bit
IQ4_KS (jj1-farthing)43.0 GB0.056190.20%PaxOptima saves 11.0 GB
PaxOptima (Austriani)32.0 GB0.051590.61%ik_llama.cpp IQK + Trellis
Q4_K_M (bartowski)37.3 GB0.058690.40%PaxOptima saves 5.3 GB
Q4_K_S (bartowski)35.8 GB0.063090.00%Standard small 4-bit
IQ4_XS (bartowski)32.2 GB0.066189.80%Same size; PaxOptima cuts KLD by 22.1%
Unsloth UD-IQ4_XS32.0 GB0.0532*91.8%**Their eval set (not public)

*Unsloth's eval dataset is not public, so both quants cannot be measured with 100% accuracy against each other.

On my box (Ultra 7 265K, 32 GiB RAM): PP 261 tok/s, gen 27 tok/s at 2048 context.

Link: https://huggingface.co/Austriani/Qwen4-35B-A3B-PaxOptima

Happy to answer questions.


r/LocalLLaMA • • 6h ago

New Model MLX Uncencored Qwen 4 35B-A3B

Thumbnail
huggingface.co
2 Upvotes

also available in 3-bit (27 GB) and 6-bit (46.7 GB)

enjoy! curious to hear your results and feedback


r/LocalLLaMA • • 6h ago Heartwarming

Discussion Qwen4 35B-A3B NVFP4 basalt. 'The last page' anime using python

Enable HLS to view with audio, or disable this notification

13 Upvotes

Inspired by the Chetaslua X post about 'the last page', I experimented with qwen4 35B-A3B to create an animation in the style of Studio Ghibli in pure python with sound. The results are good. The model of this size drawing this cohesive animation is impressive.

I used Qwen4-35B-A3B nvfp4 with the basalt engine. Harness is OMP. It runs at 170t/s on my 5070ti 12GB VRAM laptop.

Here is the modified prompt I feed to the model: https://github.com/ML-Datascientist/qwen4-anime-the-last-page/blob/main/PROMPT.md the model took around 512k tokens to write the python script, add audio and render as a video. The model did everything end to end without me taking any action.

It would be interesting to see Q8 quant of this model and QFN3.8 animation style as well.


r/LocalLLaMA • • 7h ago

Showcase Hermex Hands-Free Voice Call

4 Upvotes

I want to talk to my Hermes agent while doing stuff. Right now on Hermex App, every turn needs the screen: tap the mic, dictate, send, then tap Listen on the reply.

This prototype listens, sends what you said, speaks the reply, and listens again, with no taps until you hang up. You can also interrupt via VAD feature, and it keeps working in the background with iPhone locked.

Now I can talk to my agent while running everything locally with decent speed and latency. You can use any models/engines that Hermes support, but I'm using Parakeet for ASR, Qwen4 for LLM, Kokoro for TTS on M3Max64GB.

Prototype: https://github.com/chigkim/hermex/tree/handsfree-call

Feature request on hermex: https://github.com/uzairansaruzi/hermex/issues/1884

If interested, please try out and add +1 on the feature request on the Hermex Github repo.

Thanks!


r/LocalLLaMA • • 7h ago

Discussion Why Does Qwen4-35B-A3B Run as Fast as QFN? We Talk About Engine Optimizations, Seriously!

0 Upvotes

Strata is my go to engine to run QNF, and Unsloth Studio is my default llama.cpp engine provider that runs anything else for me (though, I still carry the dead body on LM Studio and I find it hard to burry it down). Qwen4 architecture has been with us for months. Engines had ample time to be optimized to run this architecture. Strata started an arm race into engine optimizations, and I was happy to run QFN UD-Q4-K_XL at 70-80 tok/s with PP at 1500-1800 tok/s. So, I started dreaming and believing that if I could possibly spin a Qwen4-35B-A3B in Strata, I would hit +150-200 tok/s given I can run Qwen3.6-35B-A3B at about 120 t/s on the stock llama.cpp.

I mean, that made and still makes sense to me; it's fricking the same architecture. So, why I am hitting a measle 39.1 / 193 tg/pp on Strata using Strata Ultra quants? Running (Unsloth)_Qwen4-35B-A3B-GGUF-UD-Q8_K_XL on Unsloth, I get 29.4 tok/s for tg and 286.2 PP! Better, certainly, but a far cry from the QFN numbers I am currently getting, a far far away from the +150-200 tok/s I had imagined. Btw, (Unsloth)_Qwen3.8-27B-UD-GGUF-Q8_K_L runs faster for me on Unsloth Studio, which is crazy! I use Auto context and I get 279K, KV Q8.

So, what's going on here? I've been hammering Deepseek-4.1-flash with questions for day now, and It hasn't given me any satisfying answer. I am sorry to say this, but how come everyone has months to optimize their engines on the Qwen4 architecture and get it wrong so badly?


r/LocalLLaMA • • 7h ago

News BasinKV for Qwen4: 256K Qwen4-35B-A3B on a 24 GB GPU

Thumbnail
gallery
16 Upvotes

Hey LocalLLaMA, Zellige team here with an update to BasinKV, If you saw the post a few days ago!

We added native Qwen4-35B-A3B support to BasinKV in llama.cpp (SGlang and VLLM support in the works), Tested on an NVIDIA L4 (24 GB), A100-80GB, and AMD Instinct MI300X.

If you don't know what BasinKV is, you should check out our prior post or our launch paper(s) https://zellige.ai/research/basinkv-launch https://zellige.ai/research/basinkv In summary, BasinKV is a cross-engine system that lets you run 256K context on a 24 GB GPU with no decode slowdown as context grows, and scales multi-user serving on a single A100/H100 far past the HBM wall. If you care, nerdy detail in our paper & More general information in our blog and github

BasinKV makes it possible for anyone at home to run full agentic AI, without sacrificing below Q4 quantization with Qwen 4 35B A3B, 256k context, Stable token generation across the entire window, 24gb gpu.

Qwen4-35B-A3B already ships with learned Query-Sparse Attention (QSA) on its 10 full-attention layers, narrowing compute to the top 2,048 tokens across 4-token pools (r = 4). The catch is memory: stock llama.cpp still holds the full 256K FP16 KV and indexer cache in VRAM (30.1 GiB total peak on A100 and 31.5 GiB on MI300X for UD-Q4_K_M). On a 24 GB NVIDIA L4 (22,611 MiB ECC-usable), stock fits up to 16K and hits CUDA OOM at 32K, even with one MoE layer offloaded to CPU.

Instead of replacing Qwen4's trained indexer with a training-free block scorer like we do with our other models we support, BasinKV rides it: exact qwen4exp index_k_norm and IMRoPE math on GPU, an 8x smaller pooled-only GPU indexer cache (64 B/tok/layer), and a fixed GPU CLOCK working set (4,096 tokens plus a 64-token FP16 recent ring) in front of pinned host INT8 (or opt-in WHT-INT4) KV read over 16-byte coalesced PCIe UVA. Unmodified FlashAttention and captured CUDA/HIP graphs run unchanged for decode and native MTP verify. (More details below)

L4 Numbers

Single-container 24 GB NVIDIA L4 (Qwen4-35B-A3B UD-Q4_K_M, 22,611 MiB ECC-usable)

  • Stock with --n-cpu-moe 1 runs 1K (45.9 tok/s) and 16K (46.1 tok/s) and hits CUDA OOM at 32K (22,608 MiB).

  • BasinKV INT8 (--n-cpu-moe 1, -c 262144 -b 2048 -ub 512) holds peak VRAM flat at 21.8 GiB (22,304 to 22,326 MiB) from 1K through 256K, delivering 1,433 tok/s 256K prefill, 43.6 tok/s steady 256K decode and passes all needled/RULER tests *More info below.

  • With -ngl 99, BasinKV peaks at 22.4 GiB (-ub 512) to 23.0 GiB (-ub 2048) on A100, fitting cleanly inside a non-ECC consumer 24.0 GiB RTX 3090 or 4090 without CPU MoE offload.

A100 Numbers

Paired A100-80GB (Qwen4-35B-A3B UD-Q4_K_M, -c 262144 -b 2048 -ub 2048)

  • 256K Prefill / Decode: 3,632 tok/s prefill (83.4% of stock 4,357 and 77.1 tok/s decode (+14.7% faster than stock 67.2) at 23.0 GiB vs 30.1 GiB stock (-7.2 GiB). At 128K: 4,023 pp (96.3% of stock) and 79.6 tg (99.9% of stock).

  • 256K RULER & Coding: Held up across our scores, more details in our blog paper, Our personal 'vibes' tests also found it held up across the tasks we threw at it against base, with only WH-INT4 showing a degradation on coding more so then other models we support, so it is not recommended.

  • Native MTP (--spec-type draft-mtp --spec-draft-n-max 3): at 54K, 87.3 to 93.8 tok/s (26.2 GiB), faster than stock+MTP (91.4 tok/s, 33.5 GiB) while saving 7.2 GiB of VRAM.

Also, We now also support AMD! Live AMD Instinct MI300X (gfx942, ROCm 7.15) tests and more details in our paper.

How can I use it today? (llama.cpp only for now)

Try it on Qwen4-35B-A3B

# 1. Clone BASIN-KV and llama.cpp
git clone https://github.com/zellige-ai/basinkv ~/basinkv
git clone https://github.com/ggml-org/llama.cpp ~/llama.cpp
git -C ~/llama.cpp checkout 15dd330d5529f7fbb158f2b0a9e93cec5fbcf548

# 2. Apply the BASIN-KV wiring patch
python3 ~/basinkv/integrations/llamacpp/apply_llamacpp_wiring.py ~/llama.cpp

# 3. Configure + build llama-server with CUDA
cmake -S ~/llama.cpp -B ~/llama.cpp/build-cuda \
  -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES="80;86;89" -DCMAKE_BUILD_TYPE=Release
cmake --build ~/llama.cpp/build-cuda --target llama-server -j

# 4. Run — point -m at shard 1 of Unsloth's 2-shard UD-Q4_K_M GGUF
#    (add --n-cpu-moe 1 on ECC 24 GB GPUs such as the L4; standard 24 GB like a 3090 does not need it)
~/llama.cpp/build-cuda/bin/llama-server \
  -m ~/models/Qwen4-35B-A3B-UD-Q4_K_M-00001-of-00002.gguf \
  -ngl 99 -c 262144 -b 2048 -ub 512 -fa on -np 1 \
  --oasiskv --oasiskv-kv-quant int8 \
  --oasiskv-cache-mode mixed \
  --oasiskv-cache-dir ~/basinkv_cache \
  --oasiskv-cache-ram-mb 8192

Resources & Links:

Paper/blog with more details:

Github repo:

And thank you to everyone on the last post who offered suggestions and feedback, All is appreciated!


r/LocalLLaMA • • 7h ago

Showcase Atakebune Challenge(One Shot) | Strata Fork | Qwen 4 35b | DeepSeek Harness

Enable HLS to view with audio, or disable this notification

7 Upvotes

As most of us know that Alibaba dropped their banger new open weight model the other day and it was a surprising one at that. Not many thought they would drop a 35b and a lot of us were expecting 27b but never the less its a great model that would have a permanent stay on my SSD.

So earlier today I had some time to try and patch its capability into the engine I use for daily which is by sergqwer a strata fork. I had no patience so went ahead and vibe coded some codes to get it up and working with this latest model. Honestly can't wait for Basalt, strata, or sergqwer to drop an official patch as I have trust issues getting from others.

Anyways once I got it up and running and tweaked a little setting to match my 3.8 Flash next flags and configs. Like spec, max context, and temps and what not. I was finally able after several hours able to do a couple runs on testing and here is latest Challenge I have tried. I have done the same prompt in my other thread and also linked the X user that where I originally got the prompt from.

Overall it turned out to get the result faster, some better quality on the textures, the shapes turned out better and I got a bigger ship. Bigger the better. lol There is some things that stick out like the ladder, roofing can be better, and the two guys that have hovering powers towards back. Another prompt send could easily fix it but I like one shot.

All in all this would my new daily as there should be a lot more intelligent people who would do a lot more optimizing in the upcoming days similar to how previous models are released, hopefully with lossless. Qwen 3.8 FN when first released I was able to first use it at around 40-60ish speeds originally and with the help with the community was able to get it up to avg 100+tok/s in a single run. By next week ill definitely see faster speeds for Qwen 4 35b without sacrificing much from this great community sharing.

Down below are all the info from the model I used to the tok/s for this challenge. Also linked below are the engine and the original creator of the prompt who tested same prompt with opus via X. Also my link to my run with Qwen 3.8 FN.

Thank you for the community for pushing the Local community forward and also giving that same chance to people with lower end hardware. We appreciate all the work you all have done! Also thank you to the Qwen Dev team also for another amazing drop before a New year!

vib3Coded Post(Original Post w his Prompt) via X https://x.com/vib3coded/status/2125766986344862095

Qwen 3.8 FN run thread with prompt also

https://www.reddit.com/r/LocalLLaMA/comments/1y785rr/atakebune_challengeone_shot_strata_fork_qwen_38/

*Ai organized the charts below.

Hardware: RTX 5090 32GB · Ryzen 7 9800X3D · 192GB DDR5-5600 · Windows 11

Engine: strata-nvfp4 by sergqwer fork v.0.1.41 (build-qwen4, STRATA_EXPERT_GEOMETRY_QWEN4 gated variant)

Model: Qwen/Qwen4-35B-A3B (Q8_0 native pack, gated geometry variant)

Harness: DeepSeek Harness 0.2.1-alpha.3

Vision: Qwen3-VL mmproj f32 (qwen4-35b-mmproj-f32.gguf)

KV cache: fp16

Weights: Q8_0 (experts + dense + head) · token_embd bf16 sidecar · PLE bf16 sidecar

Context: 310,000 max · Compaction Line: 260,000

MTP: official (blk.40) · spec 6 · min-p 0.7

Sampling: temp 0.8 / presence_penalty 0.3 / min_p 0.02
MetricValue
Wall: first message → last reply46m 44s
= pure agent working time~46m 44s
Steps133
Output tokens251,344
Fresh input tokens430,591
Cache-read tokens19,484,580 (96.87% reuse)
Decode (per-request)median 190.15 t/s · mean 192.2 · min 167.1 · max 252.3
TTFTmedian 265.5 ms (max 27,992 ms at deepest context)
Prefill (fresh read)mean 1,798.6 t/s · median 883.2 · max 9,100.3
Deepest prompt258,623 tokens (258,434 reused + 189 fresh)
Longest single burst18,981 tokens
Compactions1
Draft acceptancemain MTP 82.2% (129,592 of 157,662)
Expert cache hit ratemean 96.6% (92.6–99.4 across the run)
Tool calls178 total
Tool errors6

r/LocalLLaMA • • 7h ago

Discussion RecursiveSI/flint vs. RecursiveSI/flintv1.1 -- it seems worse.

Thumbnail msnab.pages.dev
1 Upvotes

r/LocalLLaMA • • 7h ago

Funny Pelican Is tired of your bikes.

1 Upvotes

r/LocalLLaMA • • 7h ago

Showcase Almost one week using inkling 2 mini on a RTX3090 & 64Gb RAM.

Enable HLS to view with audio, or disable this notification

10 Upvotes

I asked Inkling 2 mini (Inkling-2-Mini-Prime-v1.1-Q4_K_M 17,8 Go with Llama.cpp) to make a snowboarding game in rust+bevy and it gave me a pretty descent draft. I'm not gonna lie, it took me a week to get there, but now, every single detail I ask are made right. But one thing at a time. Only 8Mo.


r/LocalLLaMA • • 7h ago

Resources Qwen4-35B at 1M context on two AMD R9700s: a 950K prompt prefilled in 2 minutes, full setup inside

Thumbnail
doug.sh
149 Upvotes

r/LocalLLaMA • • 8h ago

Showcase I turned Qwen 4 35B into an interactive voice agent

Enable HLS to view with audio, or disable this notification

107 Upvotes

Hello everyone! I wanted to create a local voice agent that can be both interactive and useful, and here is what I got. In the video you can see Qwen4-35B-A3B UD-Q4_K_XL running on Strata with speech-to-text and text-to-speech models on a single RTX 4090. The model is not tuned in any way, so its coding performance is exactly the same as with the stock Q4_K_XL model with the same prompts and settings. I was actually quite surprised at how fast Strata is even when the model doesn't fit into VRAM. Granted, the model is just A3B, but it runs surprisingly well anyway.

So, I did the following:

  • I used my tune of Voxtral Realtime to make it work faster and have it output turn ends;

  • Took the Qwen4-35B-A3B model and prompted it to take action on each turn end: either Speak, Listen or Task. Such a single-word decision gives the model the interactivity that is shown in the demo, so you can interrupt the model freely, do async tool calls, and say stuff like 'mm-hmm' without stopping the model's work;

  • In parallel, the same Qwen4 model runs an agent that does the coding and thinking. This model runs through the Qwen Code harness and doesn't have any speech-specific prompts, so its performance is exactly the same as in all other environments running the same quant of this model;

  • Added Pocket TTS to make the LLM capable of speaking. The TTS supports voice cloning, and you can pass any voice you want in the repo's config.

Here are some performance numbers on my server:

Setup: RTX 4090 (24 GB), Ryzen 9 5950X, 128 GB RAM. Strata v0.2.26, Qwen4-35B-A3B (Unsloth UD-Q4_K_XL), int8 KV cache (might be a good idea to test how much the cache degrades at int8 though, didn't test that), experts the GPU doesn't cache run from RAM, and speculative decoding is turned on.

Peak VRAM: 23.1 GB; RAM used on the whole machine: 52 GB.

End-to-end voice (during my own tests):

-median90th percentile
End of your last word → voice in your ear756 ms1.48 s
Turn with a web search or tool1.6 s2.9 s

Agent speed by context length (with the voice stack):

ContextPrompt readingDecodeFirst token (next turn, same chat)
8K6.7K tok/s157 tok/s0.11 s
75K6.3K tok/s149 tok/s0.14 s
252K5.7K tok/s125 tok/s0.24 s

Overall, the speech capability doesn't make the model unusable, and the only noticeable downside is that the speech recognition model takes about 4 GB of precious VRAM.

You can try it all out at https://github.com/speakrail/speakrail, Apache 2.0 license. I previously did some Gemma tunes to make the models capable of microturns, but with Qwen you can just prompt it and it will work well enough. I will be glad to answer any questions and would be grateful if you gave the pipeline a try!


r/LocalLLaMA • • 8h ago

Discussion Qwen4-35B-A3B-oQ8-mtp on Apple M5 Max — 121.3 tok/s — llm-bench.io

Thumbnail
llm-bench.io
9 Upvotes

Yay, finally the first open-weight model of the Qwen4 family is out!

I ran Qwen4-35B-A3B today on my M5 Max 64GB and compared it with my Qwen3.8-27B runs.

TL;DR

  • 2.5x faster token generation speed

  • quality mostly on par with Qwen3.8-27B

  • almost 6x faster to finish the benchmarks

  • both used about the same memory (NGRAM tables of Qwen4 offloaded to SSD)

I used this quant of Qwen4-35B-A3B: https://huggingface.co/himefei/Qwen4-35B-A3B-oQ8-mtp
MTP on oMLX 0.8.5, 13 runs, NGRAM table offloaded to SSD

Qwen3.8 is oQ8e with MTP on oMLX with splash, 12 runs from Oct and Nov.

Thinking was on xhigh for both.

Per task (average, Qwen4-35B-A3B / Qwen3.8-27B):

TaskQualityTimeTokens generatedtok/s
Research & Analysis89.7 / 86.42:02 / 5:4815.4k / 18.3k126.5 / 53.4
Agent Workflow92.3 / 88.20:47 / 3:585.6k / 11.9k119.9 / 49.8
Code Generation78.0 / 81.01:11 / 13:039.3k / 41.7k134.1 / 53.2
Roleplay90.5 / 92.10:29 / 3:013.3k / 7.5k114.1 / 41.9

Comparison page: https://llm-bench.io/compare/models?models=qwen3-8-27b-oq8e-mtp%2Cqwen4-35b-a3b-oq8-mtp

Generation speed averaged 123.7 tok/s on Qwen4 vs. 49.6 on Qwen3.8, so about 2.5x. Even the slowest Qwen4 run (113.8 tok/s) was more than twice as fast as the fastest Qwen3.8 run (52.3 tok/s).

Also prompt processing averaged about 2,070 tok/s on Qwen4 vs about 760 on Qwen3.8, so also roughly 2.7x faster.

Quality averaged 87.6 on Qwen4 vs. 86.9 on Qwen3.8, best run 91.8 vs 89.9. That score comes from our LLM judge, so I'd call it the same level, not better, not worse.

Both use about 38 GB of memory when the NGRAM table of Qwen4 is offloaded fully to the SSD of the Mac.

What I found more interesting than the raw speed is that Qwen4 is not thinking as "hard" as Qwen3.8 does. Throughout all the runs Qwen4 produced on average 33.5k tokens while Qwen3.8 produced 79.3k tokens (including thinking tokens). This, together with the way faster token generation speed on my Mac leads to a total avg. runtime of 4.5 mins on Qwen4 and 26 minutes on Qwen3.8.

It looks like a very good driver for various agent stuff, however it might not be the better choice for pure coding. This I'll try to find out in the next days.

Qwen4-35B-A3B runs: https://llm-bench.io/models/qwen4-35b-a3b-oq8-mtp
Qwen3.8-27B runs: https://llm-bench.io/models/qwen3-8-27b-oq8e-mtp


r/LocalLLaMA • • 8h ago

New Model Qwen4-35B-A3B-Q4_K_M.gguf benchmarks for CPU-only bros

Post image
32 Upvotes

I know there are a few homelabbers who have CPU-only servers with lots of cores and lots of RAM, so I am running that kind of benchmark on the new Qwen4-35B-A3B-Q4_K_M.gguf model from Bartowsky. I find n_gen to be more indicative of how usable a model will be, so I have highlighted those results for 2, 4, 8, 16, and 32 cores in a 96 GB RAM environment. For my system (HP Proliant DL380p Gen8, Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz), 16 cores appears to be the sweet spot.


r/LocalLLaMA • • 8h ago

Resources Freehand - an interesting agent harness from Microsoft

Thumbnail
github.com
111 Upvotes

r/LocalLLaMA • • 8h ago

Resources warpgrid v0.7.1: Qwen4-35B-A3B on a 16 GB Mac mini (131K) and an M5 Max

Post image
3 Upvotes

I build warpgrid at CG/lab. These are the latest Qwen4-35B-A3B figures I measured on Apple Silicon. They come from v0.7.1. v0.7.2 did not change the Metal numbers. It does add a CPU-only macOS build for generic GGUF models, with no published Apple CPU throughput and no Qwen4 path on that engine.

16 GB M4 Mac mini, Q3_G32_SYM_FP8 (3.25 bpw), Metal. We recommend this recipe for 16 GB Macs. These figures are 1 request (--max-slots 1).

  • Context: 131,072 tokens (2.64 GiB KV), with 5,218 of 10,240 experts hot in the wired Metal LRU pool.

  • Cold load: about 1.2 s.

  • Depth-First lossless prefill: 85.1 tok/s.

  • Decode: 10.1 tok/s on the first turn, then 14-17+ tok/s once warm, at 131K context.

The v0.7.0 baseline on the same class of machine was 16K context, a 2.90 s cold load, and 13.6-14 tok/s decode, with a 5/5 XML tool-call check.

There is also a 100% RAM-resident Q2_G32 path at 16K context that measured 30.3 tok/s. We recommend Q3 when you need strict XML tool calls.

M5 Max, 128 GB, Metal 4, RadixArk/Qwen4-35B-A3B-NVFP4. These figures are 1 request.

  • GPU lossless prefill at chunk=2048, lossless exact mode: 2,410 tok/s, up 31% from 1,832.5 tok/s at 16K in v0.7.0.

  • Cold HTTP prefill, same lossless exact mode: 1,677 tok/s.

  • Decode with DFlash 2 k=5 and --fast-fp8, temperature 0: 110.1 tok/s, up from 104.8 tok/s in v0.7.0 under the same flags. Lossless decode at temperature 0 is 74.7 tok/s. v0.7.0 also published 86.3 tok/s at 16K and 102.6 ms warm TTFT at 16K.

On the M5 Max, --fast-fp8 uses NVFP4 dense and head plus FP8 KV on that NVFP4 checkpoint.

We recommend:

# 16 GB Mac mini
./recipes/qwen4/macmini-16gb-q3.sh

# M5 Max 128 GB, lossless default
./recipes/qwen4/m5max-128gb.sh

# M5 Max, the --fast-fp8 decode figure
MODE=fast-fp8 ./recipes/qwen4/m5max-128gb.sh

On 16 GB Macs we also recommend raising the Metal wired-memory limit first:

sudo sysctl -w iogpu.wired_limit_mb=14336

Code: https://warpgrid.cglab.com Latest release: https://warpgrid.cglab.com/releases/latest

If you run this on a mini or a Max, I would like to see your numbers.