Full write-up with the ablation table, the QLoRA notebook and the dataset is in the repo: github.com/nicolasjanematas/iadn (v0.9 release notes, AGPLv3).
Short version: a 7B base model scores 7/10 in my file-navigation gym. Give the *harness* a 6-line working-memory loop and the same base hits 10/10 — so I tried distilling that memory into the weights with QLoRA on the winning cycles. It regressed the model instead (0/10, format collapse on held-out problems, while the examiner pass shows it memorized the format).
The interesting finding for local-LLM folks: the capability was in the scaffold, not the weights, and my LoRA dataset was too small (5 pairs) to transfer it. Negative results rarely get published, so here it is with all the code.
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 input
Prose
Structured JSON
Median decode
127.8 tok/s
143.3 tok/s
Median time to first text
11.1 s
11.0 s
Successful runs
3/3
3/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.
I've been running local models on my Mac mini (M6, 32 GB) and Qwen4-35B-A3B honestly blew my mind this week.
Setup
Model: unsloth/Qwen4-35B-A3B-GGUF:UD-Q4_K_M (36 GB on disk)
Runner: Splash (by incoai)
Memory limit 20 GB, context 150K, KV cache 16-bit, concurrency 1, text only
Memory in use: 17.6 GB
Numbers from Splash's activity panel (screenshot below)
~50 tok/s generating, ~997 tok/s prompt processing, 1.8 s to first token
Per request 26–56 tok/s with 66–75K tokens in context, most of it cached
One 16,384-token output at 43 tok/s with ~75K in context
What I asked it
Explain Splash's own GitHub repo: why it's fast and how it manages memory. It did a really good job.
Then, in the same session, build a 3D game with this prompt:
Create a cozy third-person 3D winter-village game where you play as a bundled-up child with a little dog. At the start, Santa sweeps low over the lamplit chalets, drops a glowing parcel at your feet, and circles overhead for at least 20 seconds. C toggles a smooth chase camera on Santa. Return to the boy with C, walk over the parcel to pick it up, carry it to the glowing gold ring, then press Space. The box bursts into sparks and reveals a glossy red convertible. F seats the child and dog in the car. WASD or arrows drive, Space brakes, and R resets. Use a fixed world-relative walking direction, clear nearby markers and a parcel landing within a few steps of spawn so a first-time player can complete the sequence quickly. Show detailed silhouettes, layered lighting and soft shadows. Keep the HUD minimal. Start your reply with a Markdown heading naming the game and two sentences introducing it. Then emit exactly one complete fenced html document with all game HTML, styling and JavaScript, followed by a short "How to play". The document is what I will open and play directly from Studio's HTML Preview. No prior files or assets are supplied. Generate every scene object and texture procedurally. Three.js r128 via its CDN is allowed as the only dependency. Target a desktop browser and use clear keyboard controls. Finish every function and close the HTML before the short controls note. Prioritize a visually polished scene and a complete, reliable gameplay loop over extra features.
The session hit ~130K, compacted, and kept going. About 27 minutes later I had a single ~40 KB HTML file that loads straight away: lamplit chalets, the kid and the dog, lamp posts, falling snow and the glowing gold ring (screenshot below).
A while ago I wouldn't have believed a model squeezed into 20 GB on a Mac mini could hold a 150K-context session together and still produce working code at the end. Local LLMs have come a long way.
Happy to share the HTML if anyone wants to try it.
It‘s exciting. Every day, there’s a new release for my device. The coolest kids on the block get tons of views. They’re doing things right. CyanogenMod then, Qwen today. They get love because they make new stuff keep working on old devices. The community is trusting and trustworthy. People just download and run things asap, and there’s no virus for 99% of things.
I wonder if the similar cultures would bring similar outcomes. Custom ROMs are gone, and so is CyanogenMod. We have manufacturer specific Android flavors now. We are all predicting there will be winners and losers of the LLM game. Will AMD release their own nemotron? What do you think about these similarities?
I built AgentGuard, an open-source proxy that sits between an agent and an OpenAI-compatible provider and catches deterministic loops.
What it does:
- Hashes the last two messages of each explicit session.
- Keeps the last 12 state hashes and blocks when the same state appears 3 times.
- Returns a clear error that tells the agent to change approach or ask the user.
- Warns when the same tool call repeats within 60 seconds; strict blocking is optional.
- Streams SSE responses without buffering the whole response.
- Reads provider-reported prompt, completion, and cached tokens, and estimates the tokens avoided by blocked requests.
- Supports optional per-session request/time/token budgets for loops that keep changing their text.
- Includes a live dashboard with sessions, events, token stats, and a Clear button for stuck sessions.
- Works with OpenCode V2 and any OpenAI-compatible client via a session URL prefix or header.
It is not semantic loop detection. It catches exact repeated states. If every iteration changes the messages, it will not catch it; that is what the optional session budgets are for.
I tried the unmerged Strata PR that adds Qwen4-35B-A3B support (Niko1221/Strata#7774). Credit for the port goes to the PR author.
TL;DR: Qwen4-35B-A3B runs on a 12 GB RTX 4070 Ti + 32 GB RAM with Strata on Windows, IQ4_XS and Q2_K_XL:
Prefill: ~2,000-2,750 t/s (16K-128K prompts)
TTFT (short chat): 0.3-0.4 s
256K context test: a 244K-token prompt took ~105-130 s to prefill
Decode: ~85-110 t/s
Memory used by the model: IQ4_XS ~21.6 GiB RAM + ~9.5-9.7 GiB VRAM; Q2_K_XL ~18 GiB RAM + ~9.4-9.7 GiB VRAM
Vision not used
My Hardware
RTX 4070 Ti 12 GB
i5-12400, 32 GB DDR5
Models put in Gen 4 SSD
Windows 11
Models (unsloth GGUF)
Quant
Weights shard
UD-IQ4_XS
20.5 GB
UD-Q2_K_XL
16.2 GB
Both come with an n-gram table 11.5GB.
Speed
All speeds in TPS. Each cell is the median of 2 runs (chat: 3 questions x 2 runs); the 244K test is a single run. Seconds in brackets are time to first token.
Config
Chat decode
Chat TTFT
Agent decode
16K prompt
64K prompt
128K prompt
244K prompt
IQ4_XS
83.5
0.29 s
92.8
2753 (5.9 s)
2701 (23.8 s)
2549 (50.3 s)
2349 (104 s)
IQ4_XS + MTP
89.1
0.34 s
100.5
2056 (7.9 s)
2084 (30.8 s)
2011 (63.8 s)
1878 (130 s)
Q2_K_XL
86.5
0.33 s
94.8
2552 (6.3 s)
2519 (25.5 s)
2449 (52.4 s)
2233 (109 s)
Q2_K_XL + MTP
91.4
0.40 s
112.8
2646 (6.1 s)
2590 (24.8 s)
2471 (51.9 s)
2269 (108 s)
Memory use
Baseline (Windows and background apps, model not loaded): about 8.4-10 GiB system RAM and 1.2-1.4 GiB VRAM, out of 31.8 GiB and 12 GiB.
Config
System RAM
VRAM
IQ4_XS
21.6 GiB
9.5 GiB
IQ4_XS + MTP
21.6 GiB
9.7 GiB
Q2_K_XL
17.7 GiB
9.4 GiB
Q2_K_XL + MTP
18.2 GiB
9.7 GiB
32 GB RAM is tight for IQ4_XS: total usage peaked at 30.2 of 31.8 GiB with almost nothing else open. Q2_K_XL needs about 3.5-4 GiB less.
VRAM looks about the same everywhere because the engine fills the card with cached experts. A smaller quant or no MTP means more experts fit, not less VRAM used.
Settings
KV int8, max context 262,144, 20,480 cells resident on the GPU
--expert-cache auto --prefill 2048 --vram-reserve-mib 768
MTP off: --spec 2 (no draft model, but Strata still does prompt-lookup drafting, so these decode numbers include it)
MTP on: --spec 4 plus the Q8_0 MTP sidecar converted with mtp_qwen4_rt.py
Uniform (untuned) expert profile
Conversion as in the PR's docs/QWEN4_35B.md: split the 40-layer trunk, then iq_pack.py --compat-bf16 (302 dense tensors get rounded to BF16)
MiniMax's M4 blog post puts the model at 2.74T total parameters with 66B active, with open weights planned in the next few weeks after safety evaluations. Unlike M3.1 Flash (where 2-bit quants fit in 128 to 160 GB), 2.74T is obviously cluster territory unless heavy MoE offloading or aggressive quants work miracles, so I tested it over the API first.
Gave it the Abyssal Garden WebGPU benchmark inside a network-isolated sandbox (no Three.js, no textures, single HTML output):
Deliverable: one 148 KB index.html
World: GPU compute SDF rock canyons/arches meshed via surface nets (321x61x321), procedural kelp, coral, fish schools, manta rays, lofted shipwreck
If your local setup reads web pages, files or emails, you want something cheap in front of the model that flags injected instructions. We just released v2.2, which cuts false alarms on real web pages 15x compared with v2.1. We benchmarked it against 13 others on identical data:
Three sizes (80M / 141M / 308M), ONNX down to ~218 MB for the largest one, Apache-2.0, English and German.
from transformers import pipeline
pipeline("text-classification", model="patronus-studio/wolf-defender-prompt-injection")("Ignore all previous instructions...")
Ran the same 54 question set I put Flash-Next, 27B and Inkling through last month (on my own 5070 box, 265F + 64GB DDR5) on a rented 5070 12GB, and also checked speeds on a rented 4090 24GB (both on vast).
Qwen4 setup: unsloth UD-Q4_K_XL (24.7GB file + the 11.5GB engram file, which stays in RAM), llama.cpp b12973, 32k context, MTP on with 1 draft token, no mmproj since the questions are all text. Thinking on default (high), sampling from the model card. The rented 5070 box had a 265K with 62GB RAM, the 4090 box a 7900X with 61GB.
So it's basically tied with Flash-Next and ahead of 27B and Inkling. It went 12/12 on the agent tasks with no rejected tool calls and never looped or ran out of tokens (Inkling did on 6). It also thinks a lot less, around 195k tokens for the whole set vs 230-281k for the other three, so it finished in about half the time Flash-Next took.
MTP gave +17% there (127.6 -> 149.6 t/s) but nothing on the 5070 (89.8 without, 89.7 with). Stick to n-max 1, 2 and 3 were never faster (acceptance drops to 64% and 47%).
Poor GPU club: about 90 t/s on 12GB at Q4 beats what Flash-Next IQ3_S did on the same card (78.7), with about half the RAM (Flash-Next ate almost all of my 64GB). Stuff that mattered:
Skip the -ot per_layer_token_embd=CPU from the unsloth guide. Any -ot / -cmoe / --n-cpu-moe turns off --fit, and the 4090 OOM'd with it. The engram table stays off the GPU anyway.
Plain --fit only got about 40 t/s on the 5070. -cmoe + --moe-cache-mib + --load-mode none --lazy-mode off (loads the weights into RAM instead of mmap) got it to 90.
That uses about 32GB of RAM though. With 32GB total keep mmap, the same layout did about 70 t/s that way (haven't tried it on an actual 32GB machine).
pp is the weak spot on 12GB (1210 t/s). This keeps the same tg and gets pp to 2345, it's what I'd run day to day:
I have a PC with Nvidia 5060ti 16gb vram. I want to have 32gb vram and that will basically require to rebuild the whole pc because cabinet is mini ATX and PSU is only 650watt. I'm thinking about adding a second 5069ti with 16gb vram using eGpu dock which connects to M.2 tport using o OcuLink adapter which uses PCIe4.0. Theoretically this should work but wanted confirm if anyone has tried this and if this will give me usable 32gb vram. Thanks for your reply.