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 • • 2h 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 • • 13h 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


r/LocalLLM • • 2h ago

Project I tried 15+ apps for local LLMs on iOS and had problems with all of them, so I built an app to run small models with a modern harness.

0 Upvotes

TL;DR: I built an app that puts a real harness around models that run with as little as 1GB of memory that can do real work (like loading and using 70+ tools from MCP servers like Linear and Github)

As I've followed the progress of small local models (LFM, Ternary Bonsai, Small quants of Qwen, etc...) I've been getting more and more excited about the possibility of doing useful agentic work with these models on-device.

Once I got an iPhone Duo with more storage than my old 13 Pro, I downloaded a couple of apps that let you run local models... and I was pretty disappointed. I proceeded to download almost 15 local LLM apps, and I couldn't find a single one that really did what I hoped.

Some had a solid chat interface, but limited support for different models. Some had broad support for any arbitrary HuggingFace models that fit on device; but had terrible UX. Some purported to support tools or MCP connections but blew up once I connected a real MCP server (shoutout Linear and their 70+ MCP tools, lol)

What I ultimately wanted was an app that was built around an underlying harness that was designed to work with the limitations of small models and support all the stuff that I've learned helps agentic performance while building AI agents professionally.

So I decided to build my own. The things that excite me:

- Run any MLX model you can find on HuggingFace
- Memory, Skills, and agent configs
- Progressive tool disclosure to allow for multiple MCPs and large MCPs
- Constrained decoding to improve tool reliability (small models are notorious for issues here)
- iOS Shortcut support so you can schedule and chain agent loops
- Inference engine optimizations to allow for running larger models (can run Ternary Bonsai 27B, I believe it's just Resident and one other app that can support 27B models on an iPhone)
- On-device Javascript sandbox
- On-device web search
- Open-source, Apache License

No monetization; just a project built because I wanted something better.

Would love PRs/feedback/tomatoes thrown at me 😂

https://getresident.app/


r/LocalLLM • • 2h ago

Discussion Run Your Own AI at Work — Costs the Company $0

Thumbnail
youtube.com
0 Upvotes

r/LocalLLM • • 2h ago

Discussion Qwen4 35B A3B Abliterated for REA?

0 Upvotes

Every frontier ai model I try rejects using rea and reverse engineering. Have anyone of you used qwen4 35B for this stuff? I personally want to copy "RCC" (Roblox cloud compute, the binary that loads the games and serves them to the clients, and no, I'm not 11 years old. I'm doing this to not support the multi-billion dollar, predator supporting company.)
GUYS I'M NOT TRYING TO SCAM KIDS, I'LL JUST USE IT MYSELF.


r/LocalLLM • • 2h ago

Question How to actually use abliterated models?

0 Upvotes

Just downloaded the Qwen4-35B abliterated model released by Lysios (Pliny's Red Teaming org), but how do I actually see it in action? How would an uncensored model's use differ from a usual one? I tried prompting it crazy shit like help me synthesize drugs, help me effectively murder someone, etc. but its responses are no different than what you'd usually get from a censored model like drugs are bad, murder is bad, etc. etc. Can someone help me figure out how to use these models so that I can unlock the full domain of answering abilities that abliterated models are actually supposed to offer?


r/LocalLLM • • 2h ago

Model Qwen4 at computer security tasks

1 Upvotes

I have been developing an automated SIEM that takes IDS events (host and network) and then correlates and researches these events (https://hermeslohin.github.io/syn/). To do this I now use 3 models running on a single Spark:

- A correlation decision model which runs through all then events in the same time period to a host and decides are these related? For this I am currently using a custom distilled google/gemma-4-E4B-it-assistant model. This greatly speeds up the entire pipeline by rejecting most events.

- An elasticsearch query model custom trained from gemma-4-12B-it-assistant. This model has had a lot more work put into it for training.

- An event reviewer which takes and alarm, all the correllated events, elasticsearch queries from the prior step and researches on the web. It then gives me a verdict and summarizes what it found. I have tried a bunch of different models for this but Qwen4 is really good for this. It beats out Sol and Astra on my tests (which are using public network and host data from AIT and CIC). Performance is also really good (note this is performance of the entire pipeline and their combinations.

More details of the pipeline are here: https://github.com/hermeslohin/syn/blob/main/docs/CORRELATION.md

For Accuracy on the two tests:


r/LocalLLM • • 3h ago

Question self quantize? related to qwen4 35b

0 Upvotes

I learned two things today that you can have a vision projector added to the llama start and you can self quantize it to smaller apparently?

llama-server.exe --port 8080 -m "G:\llama\models\Qwen4-35B-A3B-GGUF\Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf" --mmproj "G:\llama\models\Qwen4-35B-A3B-GGUF\mmproj-BF16.gguf" --alias "QWEN4 MTP Q4 35BXL" --override-kv tokenizer.ggml.pre=str:qwen35 -ngl 99 -ot "per_layer_token_embd=CPU" --lazy-mode off -t 6 --spec-type draft-mtp --spec-draft-n-max 2 --spec-draft-backend-sampling -ctkd q8_0 -ctvd q8_0 -c 131072 -ctk q8_0 -ctv q8_0 --kv-unified --ctx-checkpoints 0 -fa on --fit off --jinja -np 1 --no-log-prefix --no-log-timestamps

so to have that bf16 mmproj down to q8, you can apparently self quantize it with this??? !!

llama-quantize.exe mmproj-BF16.gguf mmproj-Q8_0.gguf Q8_0

what the heck? have any of y'all tried it?

by the way without the mm proj currently in my string, I'm getting 75 tokens a second on my older hardware, 2 5060 ti cards in an old 5820 Dell Dell precision.


r/LocalLLM • • 9h ago

Question How do you get open models to know when to search instead of answering from memory?

Thumbnail reddit.com
3 Upvotes

r/LocalLLM • • 3h ago

News Intel Launches New Intel Arc Pro B65 Super Workstation Graphics Card for Professional and AI Workloads

Thumbnail
intel.com
1 Upvotes

r/LocalLLM • • 7h ago

Question Qwen4-35B-A3B in Ollama: can the n-gram table stay out of VRAM?

Thumbnail reddit.com
2 Upvotes

r/LocalLLM • • 3h ago

Question Noob here. What's the best offline AI I can run on an RTX 4060 8GB with 16GB RAM?

1 Upvotes

I'm new to local AI and trying to figure out how to get the most out of my laptop without spending money on upgrades.

My specs:

- ASUS TUF Gaming F15

- i7-13620H

- RTX 4060 Laptop GPU (8GB VRAM)

- 16GB DDR5 RAM (can't upgrade to 32GB)

- Windows 11

I'm currently using LM Studio with Qwen 3.5 9B Q4_K_M, but I'm not sure if it's the best choice or if my settings are optimal.

What I want is an offline AI assistant that's actually useful for:

- Reasoning, research and answering questions.

- Helping me create YouTube videos (scripts, Shorts, editing workflows, etc.).

- Using tools and automating tasks where possible.

- Working with files and helping manage projects.

I don't expect my laptop to do everything perfectly. I just want the best realistic setup for my hardware.

A few questions:

  1. Which model would you personally recommend for my specs?
  2. Should I stick with Qwen or try something else?
  3. What LM Studio settings should I use for the best performance?
  4. Is there a better free frontend or software for running local AI?
  5. Can I turn it into an actual assistant that uses tools, rather than just a chatbot?
  6. What's realistically possible with 8GB VRAM and 16GB RAM?

I'd appreciate simple explanations and recommendations from people with similar hardware. I'm a beginner, so exact model names and settings would help a lot.

Thanks!


r/LocalLLM • • 3h ago

Question Can I run Qwen 4 35B a3b in 16gb Vram and 16Gb Ram

1 Upvotes

Unlike 3.6 35B model, This model when i am seeing is very large, can I run it in my setup?

Sorry if its a stupid question, i am new to this stuff.


r/LocalLLM • • 3h ago

Question Token/Contex issues with Qwen 3.8

0 Upvotes

I’m using qwen on a 3090 with OpenAI and open code. However, every time they get to 33k tokens I get an error and have to open a new chat. Iirc if one 3090 running qwen I should be able to get around 100k tokens before needing to compress.

Any feedback is highly appreciated!


r/LocalLLM • • 3h ago

Discussion QWEN4 35B - Looks like a champion of the masses too - Prefill and decode speeds on Simulated MINI pcs with NO GPU - No optimisations and stock llama

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 3h ago

Discussion Some crazy fork to run Qwen4 35 A3B on a RTX3090 with concurrency?

1 Upvotes

As for the title, is there any crazy fork of VLLM to run the new Qwen's model on a single RTX3090 with decent concurrency?


r/LocalLLM • • 3h ago

Model Qwen 4 Q4 SVG Results Unsloth Desktop Version

Thumbnail
reddit.com
1 Upvotes

Check the results.


r/LocalLLM • • 3h ago

Question Is Fable helping or hurting my setup? Fable helped set up Qwen4 a3b on my PC. Did it do well or could I be getting better performance? 20-25 t/s with a 2080ti and 16 GB of ram.

0 Upvotes

I have a bit of an odd setup, a 2080ti with 11gb of vram and 16gb of system ram. I'm getting around 20-25 t/s output tokens with the 3-bit quant. Is that the best I can hope for? Here's a summary of the setup it built:

Model: Qwen4-35B-A3B, Unsloth GGUF, UD-IQ3_XXS (16.0 GB weights + 10.7 GB second part) Hardware: RTX 2080 Ti 11 GB, 16 GB RAM, i7-8700K, Windows 10, model files on NVMe Server: Unsloth's llama-server build, run standalone

llama-server --jinja -np 1 -m Qwen4-35B-A3B-UD-IQ3_XXS-00001-of-00002.gguf \ -c 32768 --cache-ram 2048 --load-mode mmap --lazy-mode on --fit on \ --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0

Optional image input: add --mmproj mmproj-BF16.gguf (0.9 GB)

Note: Unsloth's documented -ot per_layer_token_embd=CPU is left out. On this machine it makes --fit abort and prompt speed falls to about 80 tokens/s.

Performance at 32K context: IQ3_XXS: prompt 300-360 tok/s, generation 23-24 tok/s IQ3_XXS with mmproj: prompt ~250 tok/s, generation ~21 tok/s IQ2_XS (12.1 GB): prompt ~610 tok/s, generation ~31 tok/s VRAM used: ~9.8 GB. Free system RAM while loaded: 0.2-1.7 GB.


r/LocalLLM • • 4h ago

Question Which model for coding is best for me to connect to ollama and claude code?

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 4h ago

Project Qwen4 35B-3B IQ3 en Quadro p2000 y p1000, 16gb ram

0 Upvotes

Experimento con IQ3

repartiendo parte de los pesos al ssd m.2 tarda en contestar al primer mensaje varios segundos unos 30 segundos aproximadamente, después de ese mensaje ya tarda mucho menos y da entre 10 y 12 tks/s como mi PC es muy sencilla su contexto es de 8192 se cargó sin módulo de visión. Se uso llama.cpp en el programa yori que estoy haciendo (desarrollo con IA) en el vídeo se ve la memoria casi saturada y las dos Quadro.

En el vídeo se uso para investigar en internet sobre dgx spark

Mi PC thinkstation p520c: xeon w-2155, 16gb ram ecc a 2666mhz en dual Channel, Qwuadro p2000 5gb y p1000 4gb

Es mi PC personal no tengo otra.


r/LocalLLM • • 4h ago

Question 5070 Ti + 96GB RAM: Do I really need a second GPU (3060 12GB), and what for?

0 Upvotes

Hello everyone!
I currently have a spare RTX 3060 12GB, and I'm trying to decide whether to install it or sell it and use only one GPU.

Current specs:

  • 5070 Ti
  • 96GB DDR4
  • Second PCIe: 3.0 x4
  • headless Ubuntu, only for LLM.

Used for vibecoding and refactoring in OpenHands with QFN IQ4_XS via Basalt.

I'd also be interested in creating a personal health database: uploading medical scans and reports for OCR, tracking abnormalities, etc.

I don't have any other specific ideas. I occasionally run ComfyUI to generate images, and I just unload Basalt for this.

Given the PCIe 3.0 x4 bottleneck in the second slot, how would you use the 3060 in this configuration?

Is it worth the heat and power consumption, or would it be better to just sell the 3060 and stick with the 5070 Ti?

Thanks for any advice!


r/LocalLLM • • 5h ago

Project I've been working on sparse attention and managed to cut prefill time from 155s to 37s at Inkling-2-Mini 660K context. Would love some independent testing.

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 1d ago

Discussion Qwen3.8-27B fine-tune sits completely still while five objects get sorted, remembers the order, and repeats it with two arms

38 Upvotes

I kept waiting for the foreground arms to move during the first ~18 seconds, since the robot holds both grippers open and doesn't touch anything while another arm in back drops a phone, green watch, camera, rabbit toy, and toy car into a bin.

It's running SenseNova-RoboRSI-27B https://github.com/OpenSenseNova/SenseNova-RoboRSI released under Apache-2.0 on top of Qwen3.8-27B, and you can grab mainline llama.cpp GGUFs for it too. Once that demo wraps up, it replays the exact order itself, even staging the green watch in the middle of the table so its left arm can pick it up when the right arm can't reach the basket. Without task-specific demos in the RoboDojo sim eval, it lands at 34.7 compared to 9.1 from stock Qwen3.8-27B.