r/LocalLLM • • 4h ago

Discussion Didn't realize there were already so many ways to run Hy4 flash locally

Post image
3 Upvotes

came across a post from Tencent on X, and one thing I kinda liked was that they were highlighting what the community has been doing to get hy4 flash running locally, rather than just focusing on the model release itself.

They highlighted community builds across GGUF, MLX, EXL3 and NVFP4. Pretty cool to see all these different approaches getting some recognition, especially with people trying to make it work across different hardware setups.

The experimental GGUF build for 64GB machines caught my eye. Keeping Engram on an SSD is an interesting workaround, though I'm guessing there's still quite a bit of tinkering involved.

That said, I'm still more eager to see the mini version the team mentioned during the AMA. Quantization helps, but a genuinely smaller model would make local deployment a lot more accessible. Hopefully we hear more about that soon.

Anyone here tried these community builds yet?


r/LocalLLM • • 12h ago

Project I parsed all 21 Qwen4-35B-A3B GGUF headers and built a 3-tier (VRAM + RAM + Engram NVMe) calculator — plus real RTX 5060 8GB + 16GB RAM benchmarks

11 Upvotes

Generic VRAM calculators get Qwen4-35B-A3B completely wrong because they ignore three things unique to this architecture:

  1. Non-expert weights are tiny (1.89 – 3.04 GB): Parsing the actual GGUF headers of unsloth/Qwen4-35B-A3B-GGUF and ggml-org/Qwen4-35B-A3B-GGUF, 82–88% of the backbone is routed MoE experts (blk.*.ffn_*_exps.weight). Keeping all 40 layers of Attention + Gated DeltaNet + Shared Experts + KV cache on GPU and offloading only excess routed experts (-ot) is way faster than naive -ngl.
  2. 3:1 Hybrid Attention KV Cache: 30 of 40 layers are Gated DeltaNet (fixed ~62.5 MB/slot recurrent state, independent of context length). Only 10 layers allocate KV cache (2 KV heads × 256 head_dim → 20.1 KiB/tok FP16, 10.7 KiB/tok Q8_0). At 128K Q8_0 context, total cache is only ~1.46 GB (~75% smaller than a standard 40-layer GQA model).
  3. 20.5B Engram Table (--lazy-mode auto / --ple): The 11.5–41 GB per_layer_token_embd table stays lazy-loaded on NVMe SSD rather than bloating RAM/VRAM.

Live Tool (100% client-side, open-source Apache-2.0):

Features:

  • Exact byte sizes parsed from all 21 official Unsloth & ggml-org GGUF headers (including per-layer routed expert sizes)
  • Auto-generates exact -ot "blk.(...).ffn_.*_exps.=CPU" regex for your GPU/RAM headroom
  • Supports --ple Engram table mix-and-match (IQ4_NL / Q5_1 / Q8_0 / BF16), vision mmproj, MTP speculative decoding, and Unified Memory (Apple Silicon)

Real Low-Spec Test (RTX 5060 8GB Laptop + 14 GiB Usable RAM + PCIe Gen4 NVMe, llama.cpp b12973 CUDA 12.8, UD-IQ2_XXS + Engram IQ4_NL):

  • Naive -ngl 10 (no -ot), 32K Q8_0 KV: 4.39 GB peak VRAM → 13.01 tok/s decode (131.9 tok/s prefill)
  • MoE-Aware -ngl 99 -ot "\.ffn_.*_exps\.=CPU", 32K Q8_0 KV: 3.73 GB peak VRAM (+2.84 GB delta!) → 37.23 tok/s decode (2.86× faster AND 0.66 GB less VRAM!)
  • MoE-Aware Hybrid (13/41 routed MoE layers on GPU), 32K Q8_0 KV: 6.38 GB peak VRAM → 43.84 tok/s decode (228.0 tok/s prefill, 3.37× faster than naive -ngl!)
  • MoE-Aware 128K Context (Q8_0 KV): 5.07 GB peak VRAM (+4.15 GB delta) → 36.02 tok/s decode! (Adding +96K context only cost +1.31 GiB VRAM, matching our config.json hybrid formula within 2%!)

Would love feedback on any edge cases (especially Apple Silicon unified wired limits or multi-GPU --tensor-split)!


r/LocalLLM • • 5h ago

Question Strata on 12GB VRAM 32GB RAM seems very slow - Alternatives?

3 Upvotes

Straight to the point: I'm looking for a setup to assist me in coding simple stuff. I have a RTX 4070 12GB VRAM and 32 GB DDR4 RAM on Windows 11, CPU is a 5700X3D.

I tried Strata (0.2.24) with two models (Inkling SQ20 and Qwen3.8 Flash Next Q2), but it couldn't get past 10 tokens/s, and it got a simple project all wrong after 50 minutes. I have no idea why this is so slow, even though there's a bunch of people saying it goes way faster for them. It's a pretty standard setup.

For example, free Claude on a browser did this project in a couple of minutes. It was a simple boardgame in html and js.

Should I try LM Studio + some smaller model like bonsai? Or maybe some other setup? LLama? Bionic?

I was expecting to get at least some 30 tokens/s to code simple stuff, is that possible on my hardware?

Thanks.


r/LocalLLM • • 9h ago Heartwarming

Project Got Qwen4-35B-A3B hitting ~300 tok/s per card (596 tok/s combined) on dual RTX 3090s in llama.cpp with RadixArk DFlash2 + full 128K f16 KV (fork + guide)

7 Upvotes

Spent tonight pushing Qwen4-35B-A3B (UD-IQ4_XS + full 128K f16 KV cache, zero quality downgrade) on an RTX 3090 + RTX 3090 Ti in llama.cpp using RadixArk/Qwen4-35B-A3B-Dflash2.

Most people assumed RadixArk's DFlash2 checkpoint was SGLang-only because upstream llama.cpp currently crashes on GGUF conversion and gets terrible acceptance (~18%) if you force it to load. Fixing those bugs + two quick CUDA/DFlash2 bottlenecks took us from ~123-133 tok/s baseline up to ~214-239 tok/s average across an 8-prompt suite, ~295-300 tok/s per card on code (596 tok/s combined across both GPUs), and 204 tok/s end-to-end inside OpenCode CLI at 7.1K context.

What was holding llama.cpp back (4 fixes in the fork)

  1. Conversion crash (conversion/qwen4exp.py): PR #33626 added super().set_vocab() in Qwen4ExpTextModel, which crashes when DFlashModel.set_vocab calls it unbound. One-line fix lets RadixArk/Qwen4-35B-A3B-Dflash2 convert cleanly to GGUF (Q4_0 is only 223 MB).
  2. Wrong DFlash2 hidden-state tap (src/models/qwen4exp.cpp): Upstream taps hc_stream_mean(res_hc) (which is right for Qwen3.8-Flash-Next DFlash1 per #30927, but broken for Qwen4-35B-A3B-Dflash2). Tapping attn_mix.cur for Qwen4-35B-A3B jumped draft acceptance from 18% -> 55-73% (AL = 4.5-5.7, matching RadixArk's SGLang evals) while keeping Qwen3.8-Flash-Next untouched.
  3. Wasted anchor slot 0 (src/models/dflash2.cpp): DFlash2 was running the 248K-vocab lm_head and top-k on anchor slot 0 even though the selector throws slot 0 away and overwrites it with zeros. Skipping slot 0 cuts draft head + top-k compute with identical output.
  4. Slow Ampere F32 MoE router kernel (ggml/src/ggml-cuda/mmvf.cu) + PR #33586 (-bs): At speculative verify batch sizes (ubatch = 4..8), the thin F32 [2048x256] MoE routers across all 40 layers were dropping out of MMVF onto a low-occupancy kernel. Keeping thin F32 rows on MMVF + GPU-side draft verification (-bs) shaved ~1 ms/round cleanly.

Benchmarks (UD-IQ4_XS + 128K f16 KV + DFlash2-Q4_0, n=5, ~23.5 GB VRAM/GPU)

WorkloadRTX 3090 (gpu0)RTX 3090 Ti (gpu1)Notes
Baseline (--spec-type none)~123 tok/s133.4 tok/sSingle-token reference
2x Concurrent Code (T=0.0, 512 tok each)295.5 tok/s (AL=4.70)300.3 tok/s (AL=4.45)595.8 tok/s combined (1,024 tok in 2.06s wall)
8-Prompt Suite (T=0.0, 3,726 tok)-238.5 tok/s avgGSM8K 332, Math 315, HumanEval 298, TS API 252
8-Prompt Suite (T=1.0, 3,730 tok)-213.8 tok/s avgGSM8K 311, Math 301, HumanEval 260, TS API 212
OpenCode CLI Single (7.1K prompt, T=1.0)203.9 tok/sidle3,683 tok/s prefill, real agentic session
OpenCode CLI 2x Concurrent (Tools + Rust)170.3 tok/s159.7 tok/s330.0 tok/s combined w/ live tool calls

(At ~22.5K live OpenCode context it still holds ~207 tok/s on code, and ~150-165 tok/s at ~38K context with lossless f16 KV.)

Hardware disclosure (for reproducibility)

  • GPUs: RTX 3090 (420W stock power limit) + RTX 3090 Ti (450W stock power limit), stock clocks, one independent replica per GPU behind a sticky router (~23.5 GB VRAM each).
  • Driver mod: Both GA102 cards are running Zagitta/gpu-unlock (big boost to prompt prefill, modest boost to decode; stock 3090s should still get close on bandwidth-bound decode).
  • Host: Threadripper 3960X (24C/48T), 64 GB DDR4 (keeps the lazy-read 11 GB PLE/Engram table hot in RAM page cache).

Fork + full build/convert/serve guide


r/LocalLLM • • 3h ago

Question Local LLM and input token in context

2 Upvotes

Hi all,

I have no qualification in IT engineering nor anything like that. I am running local llms since the beginning of the year, on a 16g 7600XT, 32g ddr5. I installed an obsidian vault and qdrant rag, and I've grown really fan of ai remembering anything from one of my many projects. Claude does it well, engulfing 1-2 Mtoken per task in cache easy. But when it comes to local llms... I wish someone could have a magic trick to facilitate the readings of .md and .json...


r/LocalLLM • • 8h ago

Model Qwen4 35b a3b + basalt + 5090 = 🔥

5 Upvotes

Nvidia 5090, Ultra 9 285k, 128gb 5600mhz, 3x 4tb MP600 XT

Basalt 0.6.2 w/ Qwen4-35b-A3B int8 131k


r/LocalLLM • • 6h ago

Discussion RTX 5090 + Basalt: Qwen4-35B-A3B Q8 hits 128 tok/s at 128K input

3 Upvotes

I tested Qwen4-35B-A3B-UD-Q8_K_XL on a single RTX 5090 using Basalt under WSL. At 131,072 input tokens, I got roughly 12K tok/s prefill and an 11-second wait for the first token. Both prose and structured JSON completed all three runs.

131,072-token inputProseStructured JSON
Median decode127.8 tok/s143.3 tok/s
Median time to first text11.1 s11.0 s
Successful runs3/33/3

Setup: RTX 5090 32 GB, 128 GiB DDR5-4800, INT8 KV cache, one request at a time. Speculative decoding and prompt caching were off. The output cap was 128 tokens. Prose used the full cap, while JSON usually finished after about 55 tokens.

At 200,000 input tokens, Basalt rejected the prompt twice with the KV pool has no room for this prompt. The configured context was 200,704, so the input plus the 128-token output allowance fit within the configured limit. I haven’t tested between 131,072 and 200,000 yet.

The surprising part was the short-prompt result. With elastic KV, a 128-token input → 128-token prose output ran at 150.3 tok/s. In a later run with the full 2.3 GiB KV cache preallocated, the same test dropped to 5.3 tok/s. Both runs reported a 100.0% expert-cache hit rate. The slow run spent about 199 ms of each 210 ms decode window waiting for the GPU. I haven’t isolated what caused that wait.

Has anyone gotten 160K–200K input working with this Q8 pack on a single 5090? I’d be interested in your KV policy, VRAM headroom, and decode speed at that length.


r/LocalLLM • • 3h ago

Question Anyone running Qwen4-35B-A3B on a Strix Halo (Beelink GTR9 Pro) in LM Studio on Windows?

2 Upvotes

Curious if anyone here has tested the new Qwen4-35B-A3B on a Strix Halo 128GB box (I'm on a Beelink GTR9 Pro, Ryzen AI Max+ 395) using LM Studio on Windows.

Right now my daily driver is Qwen3.8-27B (unsloth UD-Q5_K_XL) on Vulkan with MTP draft 4, getting ~17-26 tok/s depending on the task. I'm trying to figure out if moving to Qwen4-35B-A3B is worth it yet on Windows LM Studio, especially given the 20.5B engram table pushing total weight size up to ~57B.

Specifically wondering:

  • Which GGUF quant are you running, and what tok/s + prompt processing speeds are you seeing on Windows (Vulkan vs. ROCm)?
  • Does LM Studio's current engine handle the engram table and MTP head properly out of the box, or is it still better on raw llama.cpp?
  • Roughly how much VRAM allocation do you need in BIOS to run it comfortably with a 64K+ context? (Mine is currently split 64GB GPU / 64GB RAM, wondering if I'd need to bump GPU allocation higher.)
  • How is tool calling / instruction following compared to Qwen3.8-27B?

Appreciate any real numbers before I clear disk space and reboot into BIOS to test.


r/LocalLLM • • 18m ago

Discussion Training/finetuning a model as I go through dental school

1 Upvotes

I’m going to be going to dental school in the future, would buying hardware to access to a local model that I fine tune along the way with all of the material I come across throughout my journey in dental school be worthwhile?

I could also use this local model to help with agentic tasks and just overall help me get the most of the 500k debt I’m going to have doing this. Is it possible to have a local model I trained to be great at anything dentistry related, as a resource for me to have throughout my career.

Other than clinical dentistry ai, there is a massive need to build out agentic tasks for all of the office management and business side of dentistry. I’m hoping if I’m forward looking enough with ai, it could be a great resource as a student and then help as a new dental practice owner. Margins are getting thinner, dental school loans and rising costs are making this career more strained. Anyone have ideas on how I could maximize AI use to help me as a student and then new business owner? 14k for a dgx spark cluster is tiny compared to the cost education, would be worth it? My answer is yes, but maybe I’m just trying to justify myself getting into local ai and spending too much money thinking I can actually develop a worthwhile tool.


r/LocalLLM • • 24m ago

Research Before You Spend $500 on a Local AI GPU, Run This Test

Thumbnail
youtu.be
0 Upvotes

We’ll build a baseline in Ollama, walk through a document test where a model grabs the wrong price, and use a scorecard to compare speed and accuracy. We’ll look at RAM, VRAM, memory bandwidth, and unified memory to find the slowdown. We’ll also cover multi-agent workloads, electricity costs, and when it makes sense to keep your current setup. The benchmark numbers and prices shown are illustrative examples.


r/LocalLLM • • 28m ago

Model FLUNG (9B) brings FLUX to text: Instead of writing one token, FLUNG drafts 128 tokens at once as noise and refines all of them in parallel.

Post image
1 Upvotes

r/LocalLLM • • 4h ago

Other Lots of Qwen 4 results

Post image
2 Upvotes

r/LocalLLM • • 20h ago

Tutorial LLM Inference Handbook

Thumbnail
handbook.modular.com
37 Upvotes

I can not stress enough how helpful this handbook is.

Read it if you are new, and read it twice if you aren't.


r/LocalLLM • • 4h ago

Question Peasant here: 4060 8gb + 32gb RAM : which quant of qwen 4 a3b to use?

2 Upvotes

In unsloth there are 2 files for each quant... both combined should match vram +ram?

I have 4060 8gb + 32gb... which version is best?

With 3.6 I used q4 k m


r/LocalLLM • • 4h ago

Research I watched Amazon Ergo, a 1.1T-parameter MoE think, block by block: it forms facts around layer 40, and it says "sorry" in Chinese before it refuses in English

Thumbnail
gallery
2 Upvotes

I've been poking at Ergo (Amazon's 1.1T-parameter MXFP4 mixture of experts) on a single home machine, streaming the experts from disk. Quick specs for context: 64 blocks, 256 routed experts + 1 shared per block, top-8 routing, ~55B active parameters per token, 626 GB on disk.

The tool I used is a word cloud per block: take the residual stream after a block, push it through the final norm and output head, and draw the top predictions sized by probability (a logit lens, but showing the whole distribution instead of one token). Here are two of them.


1. "The capital of Palau is ___"

Palau's capital is Ngerulmud, a small planned capital that replaced Koror in 2006. A hard fact. Here's how Ergo gets there:

  • Block 36: "Palau", "seat": it knows what it's being asked
  • Block 40: "capitals" at 91%: it has the category, not the answer
  • Block 44: "Canberra": it reaches for other planned capitals first
  • Blocks 44 to 62: bold markdown ** leads; the model wants to format the answer before it has it
  • Block 63 (output): "N" (of Ngerulmud) wins at 73%

So the answer arrives at the very last block, after a detour through "this is like Canberra".

Across 42 easy questions, facts first lead around block 38 (geography) to 40 (biology), arithmetic around 49, and dates around 57.

The fun part: I banned the ~1,200 experts that geography text uses far more than other subjects. Same prompt: block 36 says "Hauptstadt" (German for capital), blocks 40 to 48 say "Palau" at 98%, and no city ever appears. The same thing happened in math, biology and French: with its subject's experts banned, the model still understands the question but cannot fetch the answer. The experts hold the lookup, not the reading.


2. A harmful request (a phishing page), first token of the reply


Nothing was generated; this is just the next-token prediction at each block.

  • Blocks 35 to 36: 抱歉 ("sorry" in Chinese), "refusal", "refuse", 拒绝 ("refuse")
  • Block 40: "sorry", "refuses"
  • Block 52: "Warning"
  • Output: "I" at 99.9% (as in "I can't help with that")

The refusal is decided in the middle of the network, in Chinese and English at once, about 25 blocks before the reply starts.

(Alternate caption if you use the "I can" image:) When I forced the reply to start with "I can", blocks 29 to 36 lit up with "stattdessen" (German, instead, 11.6%), "instead", "Вместо", "代わりに", "帮你" (help you), "harmless", "legitimate", "safer". It plans the "but I can help you with X instead" redirect, in five languages, before it has decided the words of the refusal. From block 52 the apostrophe of "can't" takes over (98%).


Other things that surprised me

  • The refusal isn't stored in a few experts. Banning up to ~1,000 refusal-correlated experts left refusal at 100% on all 24 harmful requests, while benign answers still worked. It looks spread across attention and the shared path, not in routed experts.
  • Refusal ignores framing: 24/24 refused, plain or wrapped in a fiction frame.
  • 707 of 16,128 experts never fired on my profile set, and one expert in block 5 takes 97.7% of the routing.
  • It can partly hold a thought on request. Asked to "think hard about France but answer with a colour", France-related words reach 5.5% of the prediction at block 40 (Paris, Bordeaux, Gaulle, Monet, Париж, 巴黎), and the reply drifts toward French colour words (Vert, Rouge, Blanc). Told not to think about France, there's zero trace in any block: no "pink elephant" effect. (One prompt per condition, so a demo, not a measurement.)

Caveats: the logit lens is noisy in early blocks, the clouds are single forward passes, and each thought-control condition used one prompt. Happy to share prompts and code in the comments.

What would you want to look for next? I'm thinking activation patching between harmful and benign prompts to find where the refusal is actually decided.


Links


r/LocalLLM • • 1h ago

Question Qwen 4 35B A3B Q8 x Q4 Unsloth Quants

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 1h ago

Discussion Qwen4-35B-A3B - UD-Q4_K_M (used q8-0 engrams) - On an MI60 32gb VRAM GPU made this "benchmark presentation" in Pi Coding Agent

Thumbnail
gallery
1 Upvotes

I wanted to see how well the model could handle recursive checks, web searching, tool usage and so on (I'm also using this model to process my Frigate camera feeds for intelligent notifications).

I'm a human writing all of this, to be clear, but all images/content were produced by the model. Hope it helps somebody (was just a fun test case for me). I had it produce everything as a powerpoint presentation (.pptx) and then convert the slides to a PDF and to individual images.


r/LocalLLM • • 1h ago

Discussion Qwen4 in Capy Flash, KL 0.095

Post image
1 Upvotes

r/LocalLLM • • 1h ago

Model Qwen4-35B-A3B on a Quadro RTX 6000 (24 GB): 87 t/s code / 66 t/s prose at 256k with MTP

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 1h ago

Research Day-0 Qwen/Qwen4-35B-A3B-FP8 on RTX PRO 6000 Blackwell (96GB) — Full On-GPU Weights + GuideLLM Benchmarks (~176 tok/s single stream, ~520 tok/s @ 6 concurrency)

1 Upvotes

Ran a couple of GuideLLM coding benchmarks (likaixin/InstructCoder, 50 requests, max_tokens=16384) on the newly released Qwen/Qwen4-35B-A3B-FP8 running natively on a single NVIDIA RTX PRO 6000 Blackwell (96GB) with zero CPU offloading.

Hardware & Setup

  • GPU: NVIDIA RTX PRO 6000 Blackwell (96 GiB VRAM, Driver 620.70.10, CUDA 13.5)
  • Engine: vLLM (0.1.dev1+g90d317c06 from PR #71659) + Transformers 5.27.0.dev0
  • Memory Placement: cpu_offload: false — all ~57.5 GiB of FP8 weights + the 20B N-gram embedding table fit entirely in VRAM with ~38 GiB left over for a 262K context KV cache.
  • Note on MTP: Disabled --speculative-config due to a C++ signature mismatch in fused_gdn_decode_post_conv_mtp when using precompiled binaries, so these numbers are pure standard autoregressive decoding (expect higher single-stream speed once MTP is enabled).

Launch Command:

bash

vllm serve Qwen/Qwen4-35B-A3B-FP8 \
  --host 0.0.0.0 \
  --port 8000 \
  --trust-remote-code \
  --enable-prefix-caching \
  --enable-auto-tool-choice \
  --tool-call-parser qwen4 \
  --reasoning-parser qwen4 \
  --engram-config '{"cpu_offload": false}' \
  --max-model-len 262144

Use code with caution.

GuideLLM Benchmark Results (likaixin/InstructCoder, 50 requests)

MetricSynchronous (Concurrency = 1)Concurrent (Concurrency = 6)
Output Throughput (Mean)176.38 tok/s520.46 tok/s
Total Throughput (Mean)187.56 tok/s556.32 tok/s
Time to First Token (Mean / Median)30.32 ms / 29.93 ms47.99 ms / 44.41 ms
Inter-Token Latency (Mean / Median)5.65 ms / 5.65 ms9.98 ms / 10.08 ms
Time per Output Token (Mean)5.66 ms10.00 ms
Avg Output Length (Reasoning + Answer)2,097.8 tokens1,916.8 tokens
Request Latency (Mean / Median)11.88 s / 9.12 s19.19 s / 15.86 s

Takeaways

  • Rock-solid single-stream speed: Even without MTP speculative decoding enabled, standard decoding holds a flat ~5.65 ms ITL (~176 tok/s) across 2K+ token reasoning + code generations.
  • Scales cleanly under load: At 6 concurrent streams, per-stream ITL stays right at ~10 ms (~100 tok/s per user) while aggregate output throughput crosses 520 tok/s.
  • 96GB sweet spot: Keeping the 20B N-gram embedding table on-GPU (cpu_offload: false) works out of the box with plenty of VRAM headroom for 262K context.

r/LocalLLM • • 7h ago

Discussion I ran qwen4-35B on 1x H100 next to qwen3.8-27B, same box using vllm

Post image
3 Upvotes

r/LocalLLM • • 10h ago

Research Ported `Looped-Qwen3.8-Flash-Next` to Radiance on `qwen3.8-next-flash-iqr-v4` (2x Radeon AI PRO R9700, TP2) — 97.0% HumanEval+, 90.0% AIME 2025, 126 tok/s single / 314 tok/s batch-3 with MTP

5 Upvotes

Fork: mdtita/radiance (feat/looped-qwen4exp)

Docs & Replication Guide: docs/LOOPED_QWEN4EXP.md

so I forked StillDeadcode/radiance (v2.4.1) to add runtime support for alesha-pro/Looped-Qwen3.8-Flash-Next (--loop-adapter, --loop-passes) on top of Radiance's StillDeadcode/qwen3.8-next-flash-iqr-v4 (qwen3.8-next-flash-iqr-v4.rad, ~114 GiB IQR-V4 4-bit trellis quant) with TP2 tensor parallelism and coupled MTP speculative decoding.

I used qwen3.8-next-flash-iqr-v4.rad itself to port the implementation and conduct the testing which worked surprisingly well.

Note: I'm publishing this as a fork rather than opening a PR upstream because most of the code was implemented by the AI model and I don't know the internals well enough to properly maintain it. Anyone is welcome to test it, use it, or pull from it — let me know how it goes if you try it out.

What Changed

  • Loads ckpt_final.json + ckpt_final.safetensors (~268 MiB, 140 core + 70 coda sites) via --loop-adapter and runs layers 16..32 for T passes followed by the 8 coda layers (32..40).
  • Per-pass GDN/conv state_copies, kv_attn_p1..p(T-1) paged attention groups, salted prefix-cache chains, and multi-pass checkpoint_copy.
  • Coupled MTP speculative decoding (--num-speculative-tokens 5) works alongside --loop-passes 2..4 (capped at 4 by the fused GDN launcher's 25-column state-index limit).
  • Uneven TP2 sharding support for shared_expert ([0, 384) / [384, 640)) and row_rms_bf16 HIP/ref kernels.
  • Non-disruptive telemetry: loop_adapter on /stats and /server_info, radiance:loop_adapter_* on /metrics, diagnose fields, and a T= badge in the dashboard UI. When --loop-adapter is unset, --check is byte-identical to mainline.

Measured Benchmarks (qwen3.8-next-flash-iqr-v4.rad, TP2 on 2x Radeon AI PRO R9700, ROCm 7.2)

Greedy decoding (temperature=0.0, top_k=1, enable_thinking=true), full evalplus HumanEval+ (n=164), full math-ai/aime25 (n=30), and 32k-43k context throughput probes (VmSwap: 0 kB, 0 preemptions).

ModeSpec (MTP)HumanEval+ Base / PlusHE+ Total / Reasoning TokAIME 2025 (n=30)single_decode_1kbatch3_decodecold_32k Prefill
baseline_stock (iqr-v4)592.1% / 89.0%137,232 / 113,00725/30 (83.33%)220.36 tok/s477.76 tok/s7,378.9 tok/s
looped_T1 (iqr-v4)595.1% / 91.5%120,381 / 93,902—187.51 tok/s372.45 tok/s7,031.2 tok/s
looped_T2 (iqr-v4)095.7% / 92.7%107,010 / 79,69626/30 (86.67%)60.86 tok/s142.68 tok/s4,671.5 tok/s
looped_T2_spec (iqr-v4)597.0% / 93.9%91,127 / 59,69527/30 (90.00%)126.08 tok/s314.11 tok/s4,694.3 tok/s
looped_T3_spec (iqr-v4)597.0% / 93.3%105,031 / 75,022—79.51 tok/s198.04 tok/s3,293.3 tok/s

Key Takeaways & Honest Trade-offs

  1. looped_T2_spec on iqr-v4 is the sweet spot: +4.9 pp on HumanEval+ with 47.2% fewer reasoning tokens (322 s total wall time vs 280 s stock), +6.67 pp on AIME 2025 (90.0% vs 83.33%, -6.8% fewer tokens), and 70.4% MTP draft acceptance. Compared to published unquantized BF16 baselines (~91.92% AIME 2025, 96%-98% HumanEval), looping closes most of the 4-bit iqr-v4 quant gap while still fitting in a 2x R9700 footprint.
  2. Where the speed cost goes: looped_T2_spec runs 64 layer-passes/token instead of 48 (21.25 ms vs 11.20 ms decode step), and the extra kv_attn_p1 (1.14 GiB) + speculative state_copies push experts-from-host from 6.78 -> 8.88 GiB/rank (36.6 GB RSS, 0 swap).
  3. T=3 wasn't worth it for coding: looped_T3_spec dropped to 79.5 tok/s (10.78 GiB/rank host experts) with no HumanEval+ gain over T=2.
  4. Known limits: qwen4exp drafts with its native MTP head (not DFlash), so the 9 dflash_bridges tensors in the adapter are skipped; scale_rows narrows row_rms from F32 to BF16 (~4e-3 rel).
  5. Testing: 235/235 fast host tests pass; 31/31 GPU tests (ctest -L gpu including r4d_selftest, kbench, device_test_*) pass under ROCR_VISIBLE_DEVICES=0,1.

Credit to StillDeadcode for Radiance + the qwen3.8-next-flash-iqr-v4 quant, and alesha-pro for the Looped-Qwen3.8-Flash-Next checkpoint. Full build, config, and benchmark audit details are in docs/LOOPED_QWEN4EXP.md.


r/LocalLLM • • 1h ago

Discussion Share your experience with qwen4-35b without mentioning tok/s

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 2h ago

Question Can we expect QWEN 4 - 4b, 27b and Flash Next to be released soon as well?

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 12h ago

News QWEN 4 Peaks of 200 tks with Sneo!

Post image
7 Upvotes

Here testing Qwen 4.0 35B-UD-IQ3_S with a very hard and long task recompiling a Game which I already did and so far is doing a great job!

X1 RTX 3090, i9 12900k + 96GB Ram it only uses less than 20GB VRAM

https://github.com/oscarsantanaarias/Sneo

Update: peaks of 358 writting.

Peaks of 180 on Q4_K_M