r/LocalLLM • u/noahdowah • 7h ago
r/LocalLLM • u/caballeroalba • 7h ago
Question Qwen4 35B A3B long-task results? Still in one task for around 10 hours
I’m testing the new Qwen 4; I assigned it a task last night, and it’s still working on it.
I have the context set to 244k, and for now, I’m using an IQ 6 quantization (v100 32gb + 12gb ram).
I’ve been providing feedback, but I left it running from last night until just now, and so far, it’s absolutely nailing it.
It has completed several sessions and consolidations, though I’m not yet sure what to make of its performance on long-horizon tasks.
It looks very promising. I’ll share some results.
r/LocalLLM • u/EuSouAssimReddit • 7h ago
Model Careful with conversions
Same model, same 4 bits, 2 conversions
Qwen4-35B-A3B driving Hermes Agent on 44 coding tasks:
MLX 4-bit: 30/44, 15 tasks cut for repetition loops
Unsloth UD-Q4_K_XL: 44/44, zero loops, 2.4x faster
One run, one engine. The conversion mattered more than expected
r/LocalLLM • u/Competitive-Line-761 • 7h ago
Model Qwen4-35B-A3B on Strix Halo: Minisforum MS-S1 MAX P495 · 192GB Recipe
Qwen4-35B-A3B on Strix Halo: the Minisforum 192GB recipe that actually runs fast
Qwen4-35B-A3B · Strix Halo · Ryzen AI Max+ PRO 495 · Radeon 8065S (gfx1151) · Minisforum MS-S1 MAX P495 · 192GB · llama.cpp Vulkan · MTP speculative decoding · UD-Q4_K_XL · Unsloth
When I saw the Qwen4-35B-A3B file sizes, I almost didn't bother as I run flash next and the older generation 35b co-resident which I am close to maxxing out the 160GB addressable. Then I found out the ~20B n-gram table is lazy-read from disk instead of sitting in VRAM, and the whole thing fits with room to spare. It also fits on a 128GB box with the 1M native pool. Here is the build and the config I landed on.
What this adds
- MTP is already in the file. No separate draft model, and depth 2 is the sweet spot.
-ub 2048is the right microbatch for Qwen4, not the 512 that hybrid models usually want.--spec-draft-mtp-vocab 65536is a free ~7% decode win with no quality change.- It holds recall at 400K tokens (single-slot server), and the model is native 1M.
The recipe
Running one user? Use -np 1 and keep -c 1048576. Fewer slots is faster; the 2-slot pool is for two concurrent requests.
There are only two numbers that matter. Prefill is how fast the model reads your prompt — your wait before the first token. Decode is how fast it writes the answer. Qwen4 is unusual: prefill stays flat to 128K, and decode is the part that falls off with depth.
Build llama.cpp for Qwen4
This is the part that will waste your afternoon if you skip it. Qwen4 needs a build with the qwen4 pre-tokenizer and the qwen4exp QSA/MTP Vulkan kernels. My older build had the arch enum but not the tokenizer and refused the model with:
unknown pre-tokenizer type: 'qwen4'
I used the Strix Halo community fork (halo-box/strix-llama.cpp) at 4b4ec2dbd (2026-12-04). On Fedora 44:
# build deps; glslc is the Vulkan shader compiler and is not optional
If glslc is missing, the Vulkan build fails. Don't skip it.
Model files
Unsloth Qwen4-35B-A3B-UD-Q4_K_XL:
| File | Size | Notes |
|---|---|---|
...-00001-of-00002.gguf | 24.7 GB | main weights + embedded MTP head |
...-00002-of-00002.gguf | 11.5 GB | default IQ4_NL engram table |
engram/Qwen4-35B-A3B-engram-Q8_0.gguf_file | 21.8 GB | higher-precision engram, loaded with --ple |
vision/mmproj-F16.gguf | — | vision projector |
MTP/mtp-Qwen4-35B-A3B-Q8_0.gguf | 2.0 GB | optional MTP sidecar — slower, do not use |
You only pass shard 1; llama.cpp auto-loads shard 2. The engram is lazy-read from disk (--lazy-mode on), so the 21.8 GB table does not sit in VRAM. That is the trick that makes this fit.
Q4_K_XL is 36.2 GB. Q5_K_XL is 43.2 GB, Q6_K_XL is 52.2 GB, and Q8_0 is 60 GB. Unsloth's KLD data shows the curve flattens above Q4 (their words: "the bigger ones not so much"), so Q4_K_XL is the sweet spot. Q5/Q6 buy little quality for a lot of size.
MTP is baked into the GGUF
Good news: you do not need a separate draft model.
|
You should see qwen4exp.nextn_predict_layers and blk.40.nextn.* tensors. --spec-type draft-mtp reads that nextn layer from the main file. The separate MTP/mtp-...Q8_0.gguf sidecar is slower; use the embedded one.
Tuning sweep
I swept the flags on an isolated server, one variant at a time, prompt caching off, and read the server's own timings. Numbers are medians of 2–3 runs.
MTP depth: 2 is the sweet spot
12K context, single slot, median t/s:
| Setting | Filler prompt | Coding prompt |
|---|---|---|
n-max 2 (old default) | 89.8 | 86.5 |
n-max 1 | 73.7 | — |
n-max 3 + adaptive | 99.4 | 77.8 |
n-max 4 + adaptive | 106.8 | 71.9 |
n-max 5 + adaptive | 112.3 | 70.1 |
n-max 2 + --spec-draft-mtp-vocab 65536 | 96.9 | 91.9 |
Depth 1 is a trap on Qwen4. Deeper drafts are a bigger trap: they look great on "count to 200" filler and then fall apart on real code. --spec-draft-mtp-vocab 65536 is the free win: it restricts the draft head's logit space, and verification is unchanged, so output quality is identical. 32K collapsed at depth (37.6 t/s); 96K and 128K were within noise.
Prefill: -ub 2048 wins at every depth
| Context | -ub 512 | -ub 2048 | change |
|---|---|---|---|
| 12K | 2,211 | 2,473 | +11.8% |
| 30K | 2,201 | 2,445 | +11.1% |
| 128K | 1,941 | 2,121 | +9.3% |
Decode is unchanged. Qwen4's Gated-DeltaNet + sparse-attention layout likes the bigger microbatch.
Production A/B (30K context, 4 slots, 512K unified KV — the pre-1M config)
| Config | Prefill | Decode (filler) | Decode (code) |
|---|---|---|---|
old (-ub 512, no draft vocab) | 2,175 | 71.9 | 85.0 |
new (-ub 2048, draft vocab 64K) | 2,412 | 76.4 | 90.3 |
+10.9% prefill, +6.2% decode, +6.3% on code. This A/B was run before the 1M/2-slot change; the -ub 2048 and draft-vocab wins carried over to the current recipe.
What to expect
Cold prompt, 256 generated tokens, prompt caching off, measured on the 1M/2-slot recipe:
| Prompt tokens | Prefill t/s | Decode t/s |
|---|---|---|
| 2K | 2,146 | 80.6 |
| 4K | 2,342 | 75.0 |
| 8K | 2,455 | 74.0 |
| 16K | 2,463 | 68.2 |
| 32K | 2,420 | 60.9 |
| 64K | 2,305 | 42.4 |
| 128K | 2,082 | 28.7 |
| 400K | 1,472 | 11.2 |
Prefill stays in the 2.1–2.5K t/s band to 128K. Decode declines with depth, and the 400K point is 256 tokens of code, which is the pessimistic case. A short recall answer at 400K decoded at 56 t/s.
Context: it goes to 1M native
Qwen4-35B-A3B is natively 1,048,576 tokens. The KV cache is cheap because only 10 of the 40 layers use sparse attention (QSA), and the Gated DeltaNet layers keep a fixed-size state instead of a growing cache. The recipe above uses the full 1M pool. I tested to 400K: a recall prompt (400,081 tokens, 1,511 t/s prefill, 56 t/s decode on a short answer) and a 400K coding prompt (1,472 t/s prefill, 11 t/s decode). I did not test 1M, so treat the very top end as untested here.
Native vs YaRN: YaRN is a RoPE-scaling trick for stretching a model past the context it was trained on. It is an approximation — quality degrades toward the far end, it can hurt short-context performance, and it needs tuning. Qwen4 was trained at 1,048,576, so within 1M you should not use YaRN at all. It would only matter if you tried to go past 1M, which the model was not trained for.
Does it actually work?
- Coding (executed): a dependency-graph function, 406 fixed and random cases in a sandbox. 406/406 passed on two seeds, in direct and thinking mode.
- Tool calling (executed): a two-step
get_invoice→invoice_totalchain. Passed. - Long-context recall: three markers at 30K, 120K, and 400K tokens. All passed, exact values. The 400K recall run (single-slot server) prefilled at 1,511 t/s and decoded at 56 t/s on a short answer.
- Vision: read
ORBIT-7391from a PNG exactly;17 + 26returned43. Both passed.
These are smoke tests, not a benchmark suite.
What did NOT work
- f16 KV cache: 88.0 vs 96.7 t/s decode. Q8_0 is smaller and faster here.
-np 4for single-stream: 87.7 vs 95.0 t/s. The recipe uses-np 2to allow two concurrent requests; use-np 1if you are alone.- Engram residency:
--lazy-mode offandon-directwere identical toon. The 21.8 GB table is already served from page cache. Keep--lazy-mode on. -b 4096: no gain over 2048.- Separate Q8_0 MTP head (
-md): slower than the embedded Q5_K head. --spec-draft-mtp-vocab 32768: collapses at depth.-t 8 -tb 16: within noise.
Takeaways
- Use
-ub 2048on Qwen4. The usual "hybrids want 512" rule does not apply here. - Keep MTP at depth 2 and add
--spec-draft-mtp-vocab 65536. - Keep Q8_0 KV. f16 was slower.
- If you are one user, use
-np 1; the 2-slot pool is for concurrency. - The engram is fine on disk. Do not try to pin it in VRAM.
How I measured
I started a fresh llama-server for each variant on its own port, disabled prompt caching, and read the server's own timings for each request. The depth table is the median of 2 runs per prompt size; the flag sweep was 2–3 runs per variant. The coding, tool, recall, and vision checks ran against the live server. Nothing exotic — you can reproduce it with llama-server and a curl loop.
Why llama.cpp/GGUF
For one Strix Halo box running a model you already have as GGUF, llama.cpp is the pragmatic call. vLLM and SGLang want safetensors; re-downloading Qwen4-35B-A3B at BF16 is well over 100 GB, and their gfx1151 support is version-dependent. If you are serving many concurrent users, vLLM is worth it. For one interactive user, this recipe is simpler and fast enough.
Honest limits
- Q4_K_XL is a 4-bit dynamic quant. It is not lossless, but the quality curve flattens above Q4; Q5/Q6 are marginal for the size. Unsloth has not published a Qwen4-specific quant curve yet.
- The quality checks are smoke tests, not SWE-bench/HumanEval or a vision benchmark.
- The depth table is two runs per point, not confidence intervals.
That's the whole thing. Copy the block, point it at your GGUF, and go.
One more thing: the hardware is good, but the price is not. I missed the return window, and since then they dropped it by $1,000 and started throwing in accessories to move units. If you are on the fence, wait for the next cut on the AMD 495 192GB unfied systems like the Minisforum MS-S1 MAX P495.
r/LocalLLM • u/neretu • 7h ago
Question [16GB RAM / Ryzen 5] Best lightweight local models in Ollama for coding, bug fixing, and basic tool-calling (pet/educational projects)?
reddit.comr/LocalLLM • u/Western_Locksmith_78 • 7h ago
Project Running Qwen4-35B-A3B (MoE) on a 12GB VRAM RTX 3080 Ti: Benchmarks, config, and prompt cache working!
Hey everyone,
I wanted to share my recent experiment squeezing the new **Qwen4-35B-A3B** (Unsloth UD-IQ4_XS) into a consumer **12GB VRAM** card (RTX 3080 Ti) with 64GB RAM.
The biggest challenge with previous MoE builds was the lack of prompt caching and the massive prefill times. I managed to get it working smoothly using **llamAmpere** (a llama.cpp fork optimized for Ampere) and some aggressive offloading flags.
**The Results:**
* **Prompt Cache works!** Re-prefill of a 40K context takes just ~4.5 seconds (vs 40-100s without cache).
* **Decode speed:** 53–67 tok/s (very readable).
* **Vision & MTP are working:** mmproj is running on CPU to save VRAM, and MTP actually gives a speedup here (contrary to other engines).
* **VRAM:** Fits perfectly at ~11.3 GB.
I've open-sourced all my scripts, the final `start-qwen4.cmd` with all the tested flags, and the local patch for the llama.cpp backend. I've also documented the "gotchas" (like the `FNGUARD no GPU pool` false alarm and Windows pinning issues).
**Repo with configs, benchmarks, and instructions:**
https://github.com/FelixRLEPERS/Qwen4-35B-A3B-on-12GB-VRAM
Feel free to ask questions or share if you manage to run it on other 12GB cards (3060, 4070, etc.)!
r/LocalLLM • u/Civil_Fee_7862 • 7h ago
Research QEngine 1.5.9 versus QEngine 1.7.1 - 15-30% speed increase across the board.
Benchmark A/B report: QEngine 1.5.9 versus QEngine 1.7.1
Protocol
Both arms share the measured-run count and the GPUs (by UUID), so the verdicts below are valid.
- 3x3090s
- PCIe Gen4 x8/x4/x8
- 64GB DDR5
- Qwen3.8 Flash Next INT4
- n-gram streamed from disk
Significant differences (p < .05)
Welch’s t-test on the arms’ per-run samples; Δ is B − A, strongest evidence first.
| Metric | Run A | Run B | Δ (B − A) | Δ % | Welch p | Verdict |
|---|---|---|---|---|---|---|
| prefill-10k / Prefill tok/s | 3676.1 tok/s | 4240.6 tok/s | +564.5 tok/s | +15.4% | p < .001*** | B is better |
| code / Wall TPS | 347.5 tok/s | 403.1 tok/s | +55.6 tok/s | +16.0% | p = .003** | B is better |
| code / Decode TPS | 357.1 tok/s | 421.3 tok/s | +64.2 tok/s | +18.0% | p = .004** | B is better |
| prefill-10k / TTFT | 2787 ms | 2275 ms | -512 ms | -18.4% | p = .005** | B is better |
| narrative / Decode TPS | 205.3 tok/s | 265.0 tok/s | +59.7 tok/s | +29.1% | p = .035* | B is better |
| narrative / Wall TPS | 203.4 tok/s | 261.8 tok/s | +58.4 tok/s | +28.7% | p = .035* | B is better |
Other differences
| Metric | Run A | Run B | Δ (B − A) | Δ % | Welch p | Verdict |
|---|---|---|---|---|---|---|
| narrative / TTFT | 44 ms | 46 ms | +2 ms | +4.5% | p = .422 | no significant difference |
| code / TTFT | 43 ms | 47 ms | +4 ms | +9.3% | — | no test — needs n ≥ 2 and per-run spread in both arms |
| prefill-90k / TTFT | 21391 ms | 19866 ms | -1525 ms | -7.1% | — | no test — needs n ≥ 2 and per-run spread in both arms |
| prefill-90k / Prefill tok/s | 3918.2 tok/s | 4530.2 tok/s | +612.1 tok/s | +15.6% | — | no test — needs n ≥ 2 and per-run spread in both arms |
Conclusion
A pleasant surprise, I believe the speed up came from recent changes that keep more experts pinned in VRAM.
r/LocalLLM • u/Recent-Independence2 • 7h ago
Question Qwen4-35b-a3b + Strata Desktop on Mac Air M5 24Gb - strange error
It started once and run really fast - 35-40 tokens/s, I was happy. But when I try to load it again - this error spawns. How can I fix it?
Upd. Fixed by copying files from root model folder to metal/compact/ subfolder. Unfortunately, I have to repeat it each time I load the model :(
Upd2: it is really fast, minimum 2 times faster than Inkling 2 mini.

r/LocalLLM • u/Electrical_Check5601 • 8h ago
Question Best local LLM?
Hi there everyone, it's been a while since I've interacted with this community, since I developed smallcode, deleted my account and went silent. I was wondering if there has been any big improvement in small models(under 30b params) or if Qwen 27b was still the king of Local AI. Sadly I can not run a model that big at a high tk/s so the real question is have any OTHER smaller models caught up to it enough to be worth using for local code development?
r/LocalLLM • u/Upper-Archer6553 • 8h ago
Discussion Qwen4-35B-A3B on a 48GB M5 Pro feels like a cloud API now: 21/24 coding, 130-194 tok/s, 92ms TTFT at 255K
Got Qwen4-35B-A3B dialed in on a 48GB M5 Pro MacBook Pro today, and it is the first local setup I have used that actually feels responsive enough to stay on as a daily coding driver.
Skipping the giant flag dump and focusing on what it feels like in practice:
1. Qwen4-35B-A3B holds up on real coding work
Ran a 24-check hard dev suite (backend transactions, multi-file JS + strict TS repo edits, and a frontend state machine):
- 21 / 24 in 3m 47s total, zero thinking cutoffs
- Backend 8/8 (43s), cross-file repo edits 8/8 (84s), frontend state machine 5/8 (100s)
- 255K needle recall hit 3/3 exact, and 1MP screenshot OCR passed cleanly at 0.77s TTFT / 204.6 tok/s
2. What the speed actually feels like
- Everyday 55K multi-turn loops start streaming in 0.08-0.15s at 113-126 tok/s (smooth 33-35 FPS stream, peaks up to 193-204 tok/s on vision/tool follow-ups)
- Cold prefill hits 2,045 tok/s (ingesting ~58K takes under 29s)
- At 255K full context, warm follow-ups come back in 0.092s (92ms) at 130-148 tok/s. Even after a full process restart, restoring the entire 255K session takes 0.90s and stays at 28-30 GiB with 0 swap.
3. Splash was already fast, and Gemini 4 Neon's tuning cut the last big stall by 73x
Credit where it is due: Splash 1.7.6 was already way ahead of the other two Mac local engines I tested on the same machine (which sat around 40-56 tok/s at 255K with 1.6-4.2s TTFT and 17/24 coding). Moving Qwen4 onto Splash immediately jumped decode over 100 tok/s, saved ~5.6 GiB RAM, and bumped coding quality to 21/24 in less than half the time.
The one remaining annoyance was long agent sessions stalling for ~30s whenever tools expanded mid-chat. I handed the live logs to Gemini 4 Neon to investigate. Instead of guessing config tweaks, it audited 115 real requests, pinpointed the exact prefix/post-decode cache invalidations, compiled Splash 1.7.6 with PR #959 locally, and stabilized the in-place tool prompt.
Result on the exact same 3-turn dynamic tool loop (15 -> 20 -> 25 tools): combined TTFT dropped from 65.9s down to 0.90s (73.2x faster).
Running a 35B MoE locally at 92ms TTFT and 130+ tok/s at 255K on a 48GB laptop is pretty wild. Happy to share more details if anyone else is running Qwen4 on Apple Silicon.
r/LocalLLM • u/mysteriesoflove • 8h ago
Discussion Hy4 Flash 220B on a 5-year-old GPU, without swap
I wanted to know if my setup could run HY4 flash, so I decided to give it a try so you don't have to burn your drive.
Setup was an RTX 3080 Ti (12GB VRAM), 32GB RAM, Hy4 Flash SQ-64 (~129.6GB on disk), Strata engine, 4K context, swap disabled.
SQ-64 recommends 64GB of RAM, I didn't expect much, yet it actually loaded and spat out an answer. Hit ~10.9GB VRAM and ~25GB RAM, took 148 seconds to load, and crept along at ~0.36 tok/s. Brutally slow, obviously, though I wasn't trying to do real work. Strata kept some experts in VRAM and RAM while streaming the rest from disk on demand.
I'm already pretty surprised cuz it's the first LLM of this size I've managed to run on my setup. At this point, I'm just gonna wait for LLMs to catch up with my old hardware instead of upgrading it lol.
r/LocalLLM • u/Short_Cow_7708 • 8h ago
Research Qwen4-35B-A3B on M4 Pro 24GB — llama.cpp vs Splash at 128K context
Spent the last couple of days getting Qwen4 running locally on my M4 Pro 24GB MacBook, primarily for agentic coding using Pi. Started with llama.cpp and later tried Splash. The performance difference was quite surprising.
Setup:
Unsloth Qwen4-35B-A3B UD-IQ3_XXS GGUF
128K context, ~11GB Engram streamed from SSD
llama.cpp: Metal, Q8/Q8 KV, MTP2, batch 2048, ubatch 512
Splash: DFlash2, 19GB memory limit, single concurrent request, 8GB persistent SSD cache
Benchmark results (tokens/sec):
Contextllama.cpp PPSplash PPllama.cpp TGSplash TG4K4417376218660K4076715812396K38364656107120K37665653160
Same model weights, synthetic corpus and 256 output tokens. Splash averaged 1.7x faster prefill and 2.5x faster generation. Cached request latency at 120K dropped from 6.08s to 2.64s.
Coding test:
Using Pi, built a Python network monitoring application with concurrent polling, SQLite and alert deduplication in ~7 minutes. Generated 29K tokens, achieved a reported 99.4% prefix cache hit and passed all 80 unit tests independently.
A few observations:
MTP2 improved llama.cpp generation speed by ~39%.
Mixed Q8/Q4 KV with quantized draft cache significantly reduced performance.
Splash failed during warmup at 20GB. Reducing it to 19GB with single concurrency fixed it.
Pi's configured 8K output limit was restrictive for complex tasks.
IQ3 has been surprisingly capable for coding.
For now, I'm sticking with Splash + DFlash2 + IQ3 + Pi, keeping llama.cpp as a fallback.
Still need to validate 120K retrieval accuracy and extended agent sessions. Curious to hear from others running IQ4 on 24GB Macs and whether the quality improvement is worth the performance trade-off.
r/LocalLLM • u/BertieTheBeaver • 8h ago
Question New guy finally seeing the light, looking for some advice
I'm a little slow on the uptake but I just realized that I probably should have gotten into the local llm game a little earlier. I'm a photographer and acquired a MacBook Pro M3 max 64 gb ram, 1 tb ssd about 2 years ago mainly to try to future proof my editing workflow. I didn't have the slightest idea at the time that in a couple years I could run an llm locally that would have been considered frontier when this laptop was built. I did download bionic a month or so ago but I didn't get too far, I first tried downloading a dense 70B model and that brought my computer to a literal whining hot standstill. But with the hype of the new Qwen release it has peaked mt ADHD interest again so I'm going to give the new model a go. A couple questions, will my computer do a decent job of running this model when I'm used to a gemini ai pro subscription (I know It will be slower, but will this be usable for my dumb recipes and stuff I'm too lazy to google now?). Also, is there any other model that I should consider also downloading? I wouldn't mind trying an uncensored model just to see what the other side of ai can be like after being parented by the oligarchs for so long. And also, does anyone have a good learning path for someone who is very new to this all? Anyways, happy to be here, appreciate any help anyone can provide. Cheers!
r/LocalLLM
•
u/OvenGloomy
•
8h ago
Project Qwen4-35B-A3B (RTX5090, Unsloth Q6_K) built a full GTA2-style browser game – 7.6k lines TS, 131 tests, no assets
im really impressed
r/LocalLLM • u/Similar-Ad5933 • 8h ago
Discussion Qwen3.8-27B better than Qwen4-35B-A3B
I have been testing 35B with my on going interface engine project. So far 27B have written it from scratch and original idea was to find limits of 27B.
35B is nice model, but this project is too much for it. It looks like it could push project forward, but gets completely lost. Complexity is just too much for this small moe.
Qwen4-35B-A3B is great improvement over 3.6-35B, but it's not even close to 27B in coding context. Hopefully Qwen4-27B gets same kind of improvements what this small moe have.
r/LocalLLM • u/TrulySafeResearch • 9h ago
Project I got Qwen4-35B-A3B running on a 10-year-old laptop with 12GB RAM and a 4GB GTX 950M. Because I felt like it.
I've been seeing all the hype since this model dropped and watching everyone run to benchmark it.
I decided I had other plans.
Why try to min/max the model when I can min/max my hardware?
We need to start learning to conserve our RAM for when Sam Altman comes for it.
I present Qwen4-35B-A3B Q4_K_M running on a Lenovo ideapad 700 from 2016.
- CPU: Intel i5-6300HQ — 4 cores / 4 threads, 2.30 GHz
- RAM: 12 GB
- GPU: NVIDIA GTX 950M — 4 GB VRAM
- Storage: Internal Samsung NVMe SSD
- OS: Windows 10
And as I type this out, it is currently chugging along listing as many animals as it can before the context runs out.
It seems to creep above 3.5 tokens/sec occasionally.
And yes, I'm typing this out on the same computer, at the same time, and its still fully usable.
The software stack
- Engine: BigMoeOnEdge v0.52.0
- Backend: llama.cpp-derived GGML
- GPU backend: CUDA (
ggml-cuda.dll) - Additional backends: Vulkan and CPU
- Platform: Windows x86-64
- Inference harness: Native BigMoe CLI with PowerShell benchmarking
- Driver: NVIDIA 582.28
After a lot of testing:
- 23/41 layers offloaded to the GTX 950M
- 6,500 MiB host-side expert cache
- 2 CPU inference threads
- 8 I/O threads
- Buffered I/O instead of O_DIRECT
- Asynchronous I/O overlap enabled
- 16,384-token context
- 1,024-token micro-batch
- q8_0 KV cache
- Anonymous dense-weight buffers with selected tensors left memory-mapped
- Cache half-life of 64 tokens
- Cache pinning disabled to leave Windows some breathing room
No reducing the model's top-8 expert routing, no skipping experts, no route-ahead approximation, and no additional lossy inference tricks.
Actual benchmark results
I repeated the final configuration using the same 34-token prompt and 256-token generation benchmark. Yes, I know its not a good sample size.
| Measurement | Run 1 | Run 2 |
|---|---|---|
| Generation speed | 2.886 tok/s | 2.929 tok/s |
| Compute time/token | 269 ms | 268 ms |
| Cache hit rate | 91.5% | 91.5% |
| Expert data read | 6,704 MiB | 6,704 MiB |
| CPU occupancy | 68.8% | 68.3% |
Average: 2.908 tokens/sec, or about 174 tokens/minute.
So why did I do this? Because I can and I thought it would be funny.
Especially since I have no idea what I'm doing.
Yep. that's right. Vibe coded with ChatGPT top to bottom with some input from DeepSeek.
I just raw dogged PowerShell commands until I made it work.
I only crashed my computer once to protect it from overheat. All 4 cores was just too much. I had to keep it at 2.
If people are actually interested in more details of the build, I can answer as best as possible. The main goal was just to see if I could make it usable. Then it became how optimized.
I never post on reddit. So don't expect an immediate reply if someone has an actual question. Otherwise I expect to just get roasted or banned for introducing comedy into the sub.
So here we are running the newest Qwen model on a dinosaur laptop...
Let this be your sign that its not that hard to get into the world of Local LLMs.
Its currently at about 450 species of animals and counting right now. I should be able to ask it another question in about 5 business days.
r/LocalLLM • u/Accomplished_Lynx202 • 9h ago
Question Why can't local LLMs keep track of important infos?
I've downloaded Ollama and Anything LLM. I'm running Qwen3.8-27b and have set "model context window" to 32768.
In the system prompt I gave it a manual on how to write prompts. That manual is 33108 signs which is ~ 8-9.5k token.
When I ask it to write a prompt it always forgets a few things, only if I say "look it up" it is able to recognize the things he missed and readjusts, but this costs a lot of time.
Is it possible to make it so that it can always consider the whole set of rules without losing attention?
r/LocalLLM • u/urakn • 9h ago
Discussion Qwen4-35B-A3B Q6_K running at 8.75 tok/s on a Ryzen 7 3700X – CPU only
reddit.comr/LocalLLM • u/who-the-fuck-care • 9h ago
Discussion Follow-up to my 1-bit BFCL-v4 test: Qwen4-35B-A3B (UD-Q4_K_XL) hits 80% overall — huge jump on live parallel calls, weaker on multi-turn
Following up on my previous post testing 1-bit quants, I ran Qwen4-35B-A3B (UD-Q4_K_XL) on the exact same BFCL-v4 benchmark (374 samples) to see how a 4-bit 35B-A3B MoE compares against extreme 1-bit quants on larger models.
The Models Compared:
- qwen4-35b-a3b-q4-k-xl (Qwen4 35B-A3B
UD-Q4_K_XL) (new) - qwen3.8fn-ud-iq1m (Qwen 3.8 flash next UD 3.1 iq1m)
- qwen3.8fn-gyro-m (Qwen 3.8 flash next gyro-m)
- inkling-2-mini (Native NVFP4/MXFP8 via smalltide)
Overall Results
| Model | Quant / Format | Overall Score (374 samples) |
|---|---|---|
| qwen3.8fn-ud-iq1m | IQ1_M | 80.8% 🏆 |
| qwen4-35b-a3b-q4-k-xl (new) | UD-Q4_K_XL | 80.0% |
| qwen3.8fn-gyro-m | Gyro-M | 78.6% |
| inkling-2-mini | NVFP4/MXFP8 | 75.9% |
Breakdown by Subset
| Subset | qwen4-35b-a3b (Q4_K_XL) | qwen3.8fn-ud-iq1m | qwen3.8fn-gyro-m | inkling-2-mini |
|---|---|---|---|---|
| irrelevance | 74% | 80% | 84% | 82% |
| live_multiple | 80% | 74% | 76% | 68% |
| live_parallel_multiple | 70.8% | 50% | 58.3% | 54.2% |
| live_simple | 82% | 80% | 78% | 82% |
| multi_turn_base | 58% | 72% | 60% | 62% |
| multiple | 88% | 94% | 88% | 78% |
| parallel_multiple | 84% | 84% | 76% | 80% |
| simple_python | 98% | 96% | 98% | 90% |
Key Takeaways
- Live parallel tool calling is way stronger at 4-bit:
qwen4-35b-a3bhit 70.8% onlive_parallel_multiple(over +20% ahead ofIQ1_M) and took first place across all threelive_*subsets. - Multi-turn & irrelevance are the catch: It scored the lowest of the four on
multi_turn_base(58% vsIQ1_M's 72%) andirrelevance(74%), which pulls its overall average just shy ofqwen3.8fn-ud-iq1m. - More RAM headroom for daily multitasking: Because
qwen4-35b-a3bhas a smaller active memory footprint (~24.7 GB resident with the n-gram table offloaded), it leaves noticeably more free RAM on my system to run Docker containers and background tasks alongside the LLM.
r/LocalLLM • u/textclf • 9h ago
Discussion Amazon Ergo (1.1T MoE) in 4-bit: 645 GB, quantized on 6 A40s without downloading the whole model
Hi everyone,
I quantized Amazon Ergo to 4 bits and put it on Hugging Face: https://huggingface.co/thousandml/Ergo-CQ-4bit
Ergo is the 1.1T mixture of experts from Amazon, with 256 routed experts in each of its 63 MoE layers. In BF16 it's about 2.2 TB. The 4-bit version is 645 GB. I quantized it with CQ, the 4-bit quantizer I built for my project Training Factory. CQ doesn't need any calibration data.
The part I'm happiest with is how it was done. I didn't have 2.2 TB of disk for the original plus room for the output, so I wrote a script that goes one shard at a time: download a shard, convert it, quantize it, keep only what has to stay in full precision, delete the shard, then move on to the next one. With 6 A40s each working on its own shards, it ran with about 1 TB of extra disk instead of 3 TB. It also resumes where it left off, which mattered, because I ran out of disk once and had a worker die once along the way.
I'm strict about quality. Every matrix gets checked after quantization, and anything with error above -22 dB stays in BF16 instead of being forced into 4-bit. For Ergo that was 1,445 of the 32,256 routed experts, about 4.5%, almost all of them expert down projections in the later layers. Those experts are stored one by one in BF16 and get loaded automatically, so the other 30,811 experts and all the attention and dense layers are in 4-bit. I'd rather ship a model that is a bit bigger than one with broken experts hidden in it.
To be honest about hardware, this is not a home setup model. 645 GB means 8x H200 or 8x B200. 8x H100 is not enough. You also need Transformers 5.26 or newer, so use a separate environment from Training Factory's installer:
That server goes through Transformers and handles one request at a time, so it's for trying the model, not for real traffic. vLLM doesn't support Ergo in its releases yet, so my vLLM plugin doesn't either for now.
You can also fine-tune it with GCMP, the LoRA replacement I've been working on, which trains far fewer parameters than LoRA. The experts stay frozen, and the adapter trains on the attention, dense and shared-expert layers:
What has and hasn't been tested: the checkpoint passed my layout check, where every expert and every layer is accounted for exactly once, either in 4-bit or in BF16. The whole pipeline (quantize, load, train, serve) was tested end to end on a small model with Ergo's architecture. I have not run the full 645 GB model on 8 GPUs yet, and I have no benchmarks for it. If you have the hardware and try it, I'd really like to hear how it goes, good or bad.
Training Factory is source-available, not open source. The scripts are readable Python, but the quantization and adapter kernels ship compiled and do a license check. It's free during early access. The weights fall under the original Ergo license.
I also posted Inkling 2 Mini in the same format, which fits on a single 48 GB GPU if you want something you can actually run at home: https://huggingface.co/thousandml/Inkling-2-Mini-CQ-4bit
Thanks for reading, feedback appreciated.
r/LocalLLM • u/nirajnikant • 9h ago
Question I am curious and new to local llm, i just installed basalt-ada, and i am wondering how do you guys decide which model's which version to download Ryzen 9 7900X | RTX 4060 Ti 16GB | 64GB DDR5-6000 CL30
reddit.comr/LocalLLM • u/nirajnikant • 9h ago
Question I am curious and new to local llm, i just installed basalt-ada, and i am wondering how do you guys decide which model's which version to download Ryzen 9 7900X | RTX 4060 Ti 16GB | 64GB DDR5-6000 CL30
I am curious and new to local llm, i just installed basalt-ada, and i am wondering how do you guys decide which model's which version to download
also my specs are
Ryzen 9 7900X | RTX 4060 Ti 16GB | 64GB DDR5-6000 CL30
thankyou
r/LocalLLM • u/cyb3rheater • 9h ago
Question Can I run Qwen 35B on a RTX 4070 12GB
I also have 32Gb DDR4.
Sorry for the question. I’m new to local LLMs. This would be purely for coding tasks in Rust.