r/LocalAIStack • u/deepu105 • Oct 08 '26
Halogen + Qwen Flash Next keeps getting better
r/LocalAIStack • u/deepu105 • Oct 08 '26
r/LocalAIStack • u/uneeverse-hq • Oct 08 '26
r/LocalAIStack • u/prineycom • Oct 08 '26
I ran a bechmarks for d1 models (Q8_0 GGUF both) on a Pi 5 8GB, CPU-only via llama.cpp and also tested how well they handle Russian input. I want to use it for my Hermes agent with lives on that Pi, so maybe those numbers will be helpfull for someone.
LLM-assisted report below:
0.6.0-dev (commit bd4eeaa04 + PR #30110 for d1-3B, PR #30114 branch for d1-omni-600M — not merged into master yet at time of testing)/v1/systemone API| Scenario | d1-3B | d1-omni-600M |
|---|---|---|
| 1 question, one pass | 2,282 ms | 201 ms |
| 3 questions, one pass | 7,112 ms | 758 ms |
| 3.4k-token state | 35,098 ms | 4,334 ms |
| 16 states sequential | 0.5 req/s | 3.4 req/s |
| RAM under model | ~3.4 GB | ~0.7 GB |
| Model load time | ~140 s | ~3 s |
For reference, d1-3B on a Jetson Orin Nano does the same single question in 50 ms — so a bare Pi 5 is roughly 45× slower than the weakest NVIDIA edge device tested by LiquidAI. Expected: this is a 20 tok/s prefill CPU environment, no GPU. The takeaway is not "slow" but "usable vs not usable": d1-omni-600M is genuinely real-time capable on a Pi (200 ms per decision), d1-3B is not (2.3 s+).
Both models: 5/5 correct — refund yes/no, billing/technical/fraud routing, with clean probabilities (0.98–0.998).
This is the interesting part. Same states, same question types, Russian input:
| Probe | d1-3B (RU) | d1-omni-600M (RU) | d1-3B (EN control) |
|---|---|---|---|
| Refund detection | 0.672 | 0.0001 ❌ | 0.990 |
| Same, RU question too | 0.909 | 0.42 | — |
| Routing "app crashes" → technical | ✅ 0.98 | ✅ 0.95 | ✅ 0.99 |
| Routing "card used abroad" → fraud | ✅ 0.71 | ❌ wrong (0.44) | ✅ 0.98 |
| Routing "charged twice" → billing | ✅ 0.92 | ❌ said technical (0.91) | ✅ 0.97 |
| Sentiment (angry/happy/neutral) | ✅ 3/3 (0.98) | ❌ 0/3, everything "neutral" | — |
| Urgency calibration | ✅ works (conf 0.78–0.94) | ❌ conf 0.00 on both | — |
| Language ID (ru vs en vs sr) | ✅ even tells Serbian Cyrillic from Russian | ❌ "Где мои деньги?" → English (0.84) | — |
What this shows:
r/LocalAIStack • u/basselfantassel • Oct 08 '26
r/LocalAIStack • u/ConversationNovel780 • Oct 08 '26
r/LocalAIStack • u/Chida82 • Oct 07 '26
r/LocalAIStack • u/Revibed69 • Oct 07 '26
r/LocalAIStack • u/primoco • Oct 06 '26
**Setup:** RTX 5070 Ti 16 GB on PCIe 4.0 x16 (a PCIe 5.0 card on a B550 board), Ryzen 9 5950X, 64 GB DDR4. Model: Qwen3.8-Flash-Next IQ2_XS: 125B total, about 6B active per token, 512 experts, 48 layers, 33 GiB of experts kept in RAM. Engine: EuLLM (open source, built on llama.cpp b11370 + PR #29887).
**How we got here:**
| Step | Decode (tok/s) | Prompt processing (tok/s) |
|---|---:|---:|
| llama.cpp, experts split by layer (the usual offload) | 22.4 | 249 |
| + GPU cache for the experts (llama.cpp PR #29887, 8 GiB) | 49.4 | 206 |
| + experts in pinned RAM | 58.1 | 451 |
| + 2048-token micro-batch (EuLLM's default) | 54.9 | 964 |
| + prefetch of the next layer's experts during prompt processing | — | 1,500–1,743 |
| Strata on the same PC, with MTP | 85.8 | 2,320 |
**Where we're stuck:**
- **The cache works:** once warm, 88–93% of the experts are already in VRAM. The misses travel at 24 GB/s, so PCIe 4.0 is saturated, and they cost 2–4 ms per token.
- **A token takes 17–19 ms, and 13.5–14 ms of it pass before each layer's routing.** That is the GPU computing the 48 layers, plus a wait at every layer: the cache has to bring the router's choice back to the CPU, so 48 synchronizations per token.
- **MTP doesn't pay with the experts in RAM.**
- On the 125B, llama.cpp's MTP loses 27%, with 52% of the drafts accepted.
- On Qwen3.6-35B-A3B it gains only +7% on prose and +16% on code, even with 82% of the drafts accepted.
- The reason: each multi-token verification calls many more experts, and the missing ones come over PCIe.
**Questions for the community:**
Repo: https://github.com/eullm/eullm, details in `docs/moe-offload-plan.md`
*Disclosure: I'm one of the developers of EuLLM. English isn't my first language: I wrote this in Italian with the help of an LLM and translated it with one.*
r/LocalAIStack • u/Better-Thing2568 • Oct 07 '26
r/LocalAIStack • u/LessTax99 • Oct 06 '26
r/LocalAIStack • u/deepu105 • Oct 06 '26
r/LocalAIStack • u/Both-Basis-3723 • Oct 04 '26
I have multiple projects in GitHub, I have an obsidian vault, iCloud backup, nas backup. Qwen running locally, also have Two Claude accounts, one gpt, one deep seek accounts when qwen bogs down. I’m working on building my own harness for managing this.
How should I setup my new laptop so I’m working clean and smartly?
r/LocalAIStack • u/deepu105 • Oct 04 '26
r/LocalAIStack • u/deepu105 • Oct 04 '26
r/LocalAIStack • u/johnmosesventura • Oct 04 '26
r/LocalAIStack • u/Winter_Youth_1740 • Oct 04 '26
r/LocalAIStack • u/Odd_Championship1509 • Oct 04 '26
yes, whatver you feel like
r/LocalAIStack • u/Chida82 • Oct 03 '26
I got one PR merged into ds4. A tiny one, #98 about broken paths in the README. And a few more sitting in the queue. Not complaining. Antirez says it in the README: with coding agents everyone can tune the engine for their own hardware and model and he can't review everything. That got me thinking.
If the plan is "everyone applies their patches with an agent" then the real cost of a patch isn't just the code change. It’s how many tokens the agent has to read before it knows what it’s actually touching.. Ds4 runs DeepSeek, GLM and Qwen on Metal, CUDA and ROCm all in the same 85k-line file. I’m on an M5 Max with 128GB RAM running Qwen3.8 Flash Next. Everything else for me and for my agent is noise. It has to re-read every line on every pass.
So I ripped it out. Actually deleted, not #ifdef’d. The ds4.c file dropped from 85k lines to 45k lines. The whole tree now fits in a context window. The bet was that optimizing would get cheaper and safer. Heres what happened:
- Q2: decode +9-13% prefill +5-12% up to 64k context MTP went from 75.8 → 86.7 tok/s
- Q4: prefill +2-11% MTP went from 77.8 → 85.9 tok/s
Output is bit-exact vs stock ds4 at every step. No KV cache quant. No approximate kernels. Every change must pass a parity check against same GGUF, greedy decoding, identical tokens. And an interleaved A/B benchmark against the previous build.
The smaller codebase also let me go through the ds4 PRs but only against this one model and port the ones that held up. 20 Commits were adopted. Around 30 were dropped. Verdicts are in the repo.
I also added SSD streaming for the experts. Token-identical to a resident run. Simulating a 48GB machine Q2 does around 27 tok/s. About 35 with MTP.
The fork still does git merge upstream/main with rerere and the parity check. So antirez’s fixes keep flowing in. The procedure. What to delete what to keep how to sync. Lives in a repo called StarForge (https://github.com/Chida82/StarForge). I have four of these "children" one per model. Nothing in there is Qwen- or Metal-specific. If you want a ds4 cut down to your model or to CUDA just clone it. Run the checklist with your agent.
Repo: sf-q3-8flash https://github.com/Chida82/sf-q3-8flash tables in the README. One machine, one model. If you run it on Apple Silicon I’d love to hear your numbers. Ideally side by side, with stock ds4.
r/LocalAIStack • u/Aromatic_Mail2204 • Oct 03 '26
Strata funziona con Qwen3.8-Flash-Next su PC da gioco, ma con 32 GB di RAM la sua modalità a basso utilizzo di RAM funziona solo su una GPU. Se dividi il modello su due schede, gli esperti che non riescono a stare nella VRAM vengono letti dall'SSD. La mia 4060 Ti è rimasta ferma accanto alla 5080.
Quindi l'ho forkato. La copia in RAM degli esperti ora funziona su due schede, e le schede funzionano contemporaneamente: la 4060 Ti inizia il prossimo passo di decodifica mentre la 5080 sta ancora controllando quello attuale. L'ordine delle schede, la divisione dei layer e le riserve di VRAM vengono impostate automaticamente.
Stesso PC (5080 + 4060 Ti, i9-14900KF, 32 GB), stesso modello (Swift 1.5 IQ2_XS), contesto 256K:
Setup |Codice |Prosa |Prompt 32K
Strata 0.1.38, 5080 da solo |29 tok/s |28 tok/s |333 tok/s
Fork, entrambe le schede |143 tok/s |102 tok/s |1,940 tok/s
Fork + layer di bozza fine-tuned |161 tok/s |105 tok/s |1,854 tok/s Il layer di bozza è stato fine-tuned sui risultati del modello stesso ed è incluso nella release. Nell'uso reale con l'agente di codifica Pi raggiunge un picco di oltre 200 tok/s (209 finora) e quasi mai scende sotto i 100. Un contesto di 150K-token legge a circa 1,850 tok/s.
La qualità non è cambiata: perplexity 7.24 contro 7.28 della versione upstream sugli stessi 5.3K token, forzati dall'insegnante attraverso entrambi i motori.
L'ho testato solo sul mio PC (Windows 11), quindi sono benvenuti report da altre coppie di GPU e Linux.
Repo: https://github.com/Hardin22/Strata-DualGPU
Cosa fa ciascuna modifica e cosa ha misurato: docs/DUAL_GPU.md
Il motore sottostante è il lavoro di Niko1221 e dei contributori di Strata; questo è un fork sopra la 0.1.38.
r/LocalAIStack • u/srbijabralee • Oct 03 '26
I tested two Qwen3.8-Flash-Next NVFP4 checkpoints at a full 256K context using an experimental dual-GPU Strata configuration.
Hardware:
• RTX 4090 D 48 GB as the primary GPU
• RTX 5070 Ti 16 GB as a helper GPU
• Intel Core Ultra 7 265KF
• 128 GB RAM
• Linux
• NVMe storage
The RTX 4090 D handled the dense layers, KV cache, prefill, output head and MTP. The RTX 5070 Ti stored and computed 4,500 additional routed experts.
Common settings:
• Context limit: 262,144 tokens
• Fresh prompt: approximately 256,018 tokens
• Generated output: 512 tokens
• KV cache: INT8
• Prefill path: W4A8
• Speculative decoding: MTP K4
• Minimum draft probability: 0.5
• No prompt-prefix reuse
• Strata engine 0.1.35 with an experimental dual-GPU NVFP4 fork
Results
| Model | Prompt length | Prefill | Decode | Draft acceptance |
|---|---|---|---|---|
| NVIDIA NVFP4, MTP K4 | 256,018 tokens | 4,112.65 tok/s | 125.17 tok/s | 94.87% |
| Abliterated NVFP4, MTP K4 | 256,017 tokens | 4,071.39 tok/s | 92.05 tok/s | 69.7% |
Observations
• Both models achieved slightly over 4,000 prefill tokens per second at approximately 256K context.
• Prefill performance was nearly identical: the Abliterated checkpoint was only about 1% slower.
• The original NVIDIA checkpoint was considerably faster during decode: 125.17 versus 92.05 tok/s.
• NVIDIA’s decode advantage was about 36% in this test.
• NVIDIA accepted 407 of 429 offered draft tokens, while the Abliterated model accepted 322 of 462.
• The NVIDIA model produced approximately 4.88 output tokens per verification round.
• The Abliterated model produced approximately 2.68 output tokens per round.
• The lower MTP acceptance appears to be the main reason why the Abliterated checkpoint had slower decode despite nearly identical prefill performance.
These were single-run capacity tests. The long prompt was constructed by repeating code-review material to reach approximately 256K tokens, so it had unusually favorable locality. This particularly benefited NVIDIA’s suffix prediction and MTP acceptance. Therefore, 125 tok/s should be treated as a best-case synthetic 256K result, not typical real-world coding speed.
During longer real coding-agent workloads, NVIDIA generally produced around 108–144 tok/s, while the Abliterated checkpoint was commonly around 105–145 tok/s, depending heavily on the generated content and MTP acceptance.
r/LocalAIStack • u/Aromatic_Mail2204 • Oct 03 '26