r/LocalAIStack • u/TiKUNLAB • 1d ago
I planted 15 fake facts in my own news scripts and had 8 models fact-check them as agents on a 16GB card. Qwen3.6-35B-A3B still matches Claude/Gemini; the new Qwen4-35B-A3B and Inkling 2 Mini don't (yet)
r/LocalAIStack • u/TiKUNLAB • 1d ago
r/LocalAIStack • u/thevikeffect • 1d ago
Setup
| What | Number |
|---|---|
| Prompt processing (10.2K-token prompt) | ~293 tok/s (34.8 s) |
| Generation, first ~600 tokens (Engram still paging in) | 7–20 tok/s |
| Generation, settled (n_gen 5K–7.7K) | 30.3–31.5 tok/s avg, 33–34.5 tok/s (3 s window) |
| OpenCode build average (recording on) | 32.2 tok/s |
| Memory used | 24 GB of 32 GB, 785 MB swap |
| Task | Full Three.js "MECH BAY" garage app, 6 files, 23m 37s |
Server command
llama-server \
-m Qwen4-35B-A3B-UD-IQ4_XS-00001-of-00002.gguf \
--alias qwen4-35b-a3b --host 127.0.0.1 --port 8080 \
-np 1 -c 32768 -fa on -ctk q8_0 -ctv q8_0 \
--load-mode mmap --lazy-mode on \
-ot per_layer_token_embd=CPU --jinja
Things I noticed
Next I'm running the same test on an RTX 4080 16GB (~717 GB/s) to see how much the bandwidth gap matters for this model.
Anyone running it on 24GB or 36GB Macs? I'm curious whether lazy load is still worth it once the whole thing fits.
r/LocalAIStack • u/WritHerAI • 1d ago
r/LocalAIStack • u/mightofkhan • 1d ago
r/LocalAIStack • u/mightofkhan • 1d ago
r/LocalAIStack • u/lumiaz • 1d ago
r/LocalAIStack • u/Recaperare • 1d ago
r/LocalAIStack • u/bhones • 2d ago
My main local GPU is a consumer 16 GiB Radeon RX 6900 XT (gfx1030, Navi 21). Until now I kept most AMD routes on Mesa RADV (Vulkan0) because stock upstream llama.cpp (ee46715 on ROCm 7.2) lost to RADV on 18 out of 18 single-token decode (tg128) tests by -6% to -14%.
When I audited libggml-hip.so and ran rocprofv3 traces, five big bottlenecks popped out:
Upstream routed RDNA 2 MMVQ onto a single-warp fallback (nwarps = 1), capping Wave32 residency at 16/32 waves per CU.
3,470 of 7,632 compiled HSACO kernels (45.5%) were spilling to private scratch (273 in FlashAttention and 1,299 in MMQ/MMQ-few alone).
Small-batch quantized-KV FlashAttention (B = 1..8) was converting KV tiles through FP16 staging buffers, thrashing Infinity Cache.
nsm = 40 (WGPs) instead of 80 physical CUs left 40–80% of CUs idle around pp=64.
Unfused Qwen3.5 hybrid Gated-DeltaNet / SSM_CONV ops and standalone quantize_q8_1 launches burned 31% of wall time in AQL dispatch gaps.
What's in the Patch Stack (14 atomic MIT patches, ggml/src/ggml-cuda/ only) Everything is strictly gated to RDNA 2 (gfx1030, zero core/model/server edits, non-RDNA2 HIP/CUDA/Vulkan/CPU untouched):
Multi-warp Wave32 MMVQ & DPP: Decoupled MMVQ_PARAMETERS_RDNA2 (2–4 warps) + native Wave32 v_permlanex16_b32 / v_pk_max_f16.
Zero-scratch Wave32 flash_attn_ext_rdna2: Eliminated all 273/273 FA spills; stages raw Q8_0/Q4_0/Q4_1/F16 KV directly in LDS (0 B FP16 staging) and uses lossless v_dot8_u32_u4 for Q4_0/Q4_1 KV (-32.2% FA active time vs q8_0 at d=16384).
Zero-spill MMQ + bit-parallel IQ + 80-CU guard: Eliminated all 1,299 MMQ/MMQ-few spills, added v_xad_u32+v_perm_b32 IQ2/IQ3 sign unpackers (helpful for fitting 27B + 16K ctx inside 16 GiB), and kept J=32 when J=64 would under-fill 80 CUs.
Qwen3.5 GDN/SSM fusions + inline Q8_1 epilogues: Thin mmvf routing (pp=16..64 +10.1%..+34.7%), fused GDN gate/beta + SSM_CONV -> SiLU -> Q/K L2 norm, and inline Q8_1 quantization inside RMSNorm / GLU (-75.2% decode quantize_q8_1 dispatches, -34.6% AQL gaps, -309 to -752 MiB peak server VRAM).
Selected Benchmarks (RX 6900 XT, ROCm 7.2, llama-bench -r 3 -fa 1) Format: Stock HIP -> Patched HIP (vs Stock HIP | vs Mesa RADV)
Workload KV 9B UD-Q4_K_XL 9B UD-IQ3_XXS 27B UD-IQ3_XXS tg=128 (d=0) q8_0 65.92 -> 70.25 (+6.6% | 0.962x) 83.91 -> 94.11 (+12.2% | 0.982x) 30.69 -> 32.81 (+6.9% | 0.982x) tg=128 (d=16384) q4_0 62.99 -> 68.05 (+8.0% | 1.006x) 80.51 -> 88.77 (+10.2% | 1.019x) 29.16 -> 30.81 (+5.7% | 0.993x) pp=4 (d=8192) q8_0 192.10 -> 229.13 (+19.3% | 1.684x) 220.06 -> 281.68 (+28.0% | 2.147x) 78.75 -> 104.92 (+33.2% | 1.596x) pp=8 (d=8192) q8_0 283.26 -> 347.39 (+22.6% | 1.824x) 310.91 -> 459.77 (+47.9% | 2.227x) 105.65 -> 161.14 (+52.5% | 1.795x) pp=8 (d=16384) q4_0 270.75 -> 340.85 (+25.9% | 1.511x) 305.74 -> 442.56 (+44.8% | 2.177x) 101.62 -> 152.38 (+49.9% | 1.788x) pp=512 (d=0) q8_0 1634.35 -> 1656.87 (+1.4% | 1.031x) 1951.65 -> 2004.62 (+2.7% | 1.401x) 585.44 -> 604.19 (+3.2% | 1.427x) On single-request llama-server (draft-mtp, cache_prompt: false):
27B UD-IQ3_XXS (n=3, short_temp07 70/256): 43.71 -> 56.92 tg tok/s (1.302x vs stock HIP, 1.276x vs RADV; wall 6.03s -> 4.67s, +29.0%).
27B UD-IQ3_XXS (n=3, ctx4k_greedy 6,775/192): 44.25 -> 55.56 tg tok/s (1.256x vs stock HIP; wall 16.92s -> 15.62s vs RADV 21.57s, 1.38x faster than RADV).
9B UD-IQ3_XXS (n=2, ctx4k_greedy 6,775/192): 105.70 -> 123.66 tg tok/s (1.170x vs stock HIP; wall 5.78s -> 5.36s vs RADV 7.17s).
Honest Caveats & What Didn't Work Failed ablations kept out: Non-temporal MALL weight loads (-10% to -22% decode), Gate+Up fusion above B = 1 (-30% to -37% pp=8), and v_dot8 inside MMVQ/MMQ (-13% to -17.5% pp=16..32 because v_dot8 shares the same 1 op/cycle SIMD32 rate as v_dot4 on RDNA 2 and only wins when O(1) prologue packing amortizes over long KV tiles).
Greedy divergence (DIFF!): test-backend-ops (7/7) passed 100% and 6-chunk WikiText-2 KLD hit Mean KLD = 0.000000, but multi-warp reduction reordering still nudges borderline greedy tokens and can swing draft acceptance on individual single-shot runs (one 9B IQ3_XXS short greedy row dipped to 0.984x tg on a -10.6 pp acceptance swing).
Pure q8_0 decode vs RADV: Patched HIP ties or beats RADV on 9B q4_0 decode (1.000x–1.019x), while pure q8_0 tg128 still sits 1–4% behind RADV (0.953x–0.989x) — traded against HIP's 1.34x–2.28x verify and 1.03x–1.44x prefill lead.
Hardware tested: Physically validated on an RX 6900 XT (gfx1030). gfx1031 (6700 XT) / gfx1032 (6600 XT) share the same Wave32 / v_dot4 / v_dot8 ISA, so feedback from anyone testing on those cards would be awesome.
MIT Repo (14 patches, spill auditor, fail-closed A/B harness, AGENT_ADOPT_PROMPT.md): https://github.com/s1mply-parad0x1cal/llama-cpp-navi21-optimizations
Full write-up (ad-free, with ablations and comparison to llama-navi21-furnace / llama-cpp-rdna-boosts): https://nocthoughts.com/2026/12/04/navi21-gfx1030-rocm-hip-optimizations-for-llama-cpp.html
r/LocalAIStack • u/Sweaty_Perception655 • 1d ago
r/LocalAIStack • u/Cold_Ad9512 • 2d ago
r/LocalAIStack • u/WSTangoDelta • 2d ago
r/LocalAIStack • u/Psychological_Arm645 • 2d ago
I run everything I can locally, and I don't like that for the big models the answer is still to rent them from two or three companies that decide the price and whether I get access at all. Complaining wasn't going to change that, so I built MeshKore LLM.
We connect our computers, each one lends some of the memory it isn't using, and together we run one open-weight model that none of them could load alone. It's split by layers with llama.cpp RPC, and a hub decides which machine holds what. Macs and GPU PCs go in the same pool: a Mac lends unified memory, a PC lends video memory first and system RAM only when the model doesn't fit otherwise. The biggest we've run so far is a 125B Qwen MoE with 6B active at IQ3_XXS, and next on the list is the 321B GLM Flash, which should take between 7 and 10 machines, depending on how much each one lends.
In your stack it's one more OpenAI-compatible endpoint, on `127.0.0.1:17080`, next to whatever you already run. There's no cloud model behind it, only the machines people lend. Using it through your own node is free, and there's no account to make.
It's slower than a model on your own GPU, and it isn't private yet: the machines running a request can read it, so nothing sensitive for now.
There's a package for Apple silicon Macs with 16 GB or more, and on Windows and Linux you build the node from source for now. You pick how much memory to lend and it stops lending when you're on battery. The code is public under the Sustainable Use License, which isn't an open source license.
I'd like to see how far we get with the machines we already own. Does anyone here already split a model across the machines they have at home? With what?
r/LocalAIStack • u/MTita • 2d ago
r/LocalAIStack • u/Odeen-Chang • 2d ago
Generic VRAM calculators get Qwen4-35B-A3B completely wrong because they ignore three things unique to this architecture:
Live Tool (100% client-side, open-source Apache-2.0):
- Web Calculator: https://odeenchang.github.io/qwen4-local-fit/
- GitHub Repo + Benchmark Scripts: https://github.com/OdeenChang/qwen4-local-fit
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/LocalAIStack • u/N71-AE • 2d ago
It's called MODL 25M (Modular - Offloaded - Dynamic - Looped Transformer)
A 25M active parameter model that can run locally on an Android phone.
It's mostly a proof of concept for the architecture, which tries to find a way around the constraints of RAM by combining the recent advancements in local models.
It can detect phishing attempts in messages, social engineering, scam attempts, and notify the user while running in the background.
It's trained on 2 languages (English and Arabic), and based on the public benchmarks I ran, it punches above its weight.
Next goal is to scale it up, introduce proper generative conversations, and see how well it does.

Code & Android App: https://github.com/N71-AE/MODL-1-25M
Weights: https://huggingface.co/N71-AE/MODL-1-25M
r/LocalAIStack • u/PedalingPlates • 3d ago
Hardware:
Dell 5820, Xeon w-2235, 128gb ram.
2 internal AMD v620 32gb flashed with w6800 firmware and fans added. One is in 16x pcie slot 1 and one is in 16x slot 3.
1 external AMD w6800 32gb in connected via occulink to 8x pcie slot 5.
1tb nvme, 14tb sata, 16gb sata
Performance: With an 80b model spread across the internal 64gb vram I get 50tk/s. I tried the full 96gb and it gave me like 7tk/s.
r/LocalAIStack • u/WonderfulFunny4337 • 3d ago
Your hardware. Your models. Your AI IDE.
Meet RawrXD — an independently developed, native C++20 AI development environment featuring autonomous coding agents, its own inference engine, Vulkan GPU acceleration and offline model compression.
No Electron. No mandatory cloud inference.
Explore REAP-pruned GLM-4.7-Flash, delivering 2.56× faster empty-context prefill in published llama.cpp Vulkan benchmarks.
Explore the source:
https://github.com/ItsMehRAWRXD/RawrXD
Download the experimental REAP model:
https://huggingface.co/ItsMehRawrXD/ReapDeepseekFlash47Flash
RawrXD — Own the entire stack.
r/LocalAIStack • u/Lirezh • 4d ago
Ergo is finally a western open weights model that can compete with chinese models!
It handled Stitchlight (a Roguelike RPG) quite well in some situations, mid game it was chased by two rats, ran into a building and shut the door.
Fighting the two faster rats would have been smarter but using a door as barrier against low-intelligent enemies gave it some extra score - it's an intelligent counter to a threat.
Ergo handled all benchmarks pretty well, it scored above most open models and maybe most important: Ergo is remarkable well scored in cost efficiency!
Here is a comparison of Kimi K3.1 Pro, GLM 5.3, Qwen 3.8 27B and the new Ergo 1.0:
https://stealthmodels.com/compare/kimi-k3.1-pro-vs-glm-5.3-vs-ergo-1.0-vs-qwen3.8-27b
Kimi is the strongest but Ergo is not far behind and in cost efficiency Ergo significantly leads.
It's a model we'll probably not run on local hardware anytime soon but it's much needed open competition.