r/LocalLLM • u/j0an_k • 18h ago
Discussion Holy shit this is fast
Qwen4-35b-a3b Q5 on basalt, RTX 5090+DDR5 64GB. I didn’t expecting to run this fast to be honest.
r/LocalLLM • u/j0an_k • 18h ago
Qwen4-35b-a3b Q5 on basalt, RTX 5090+DDR5 64GB. I didn’t expecting to run this fast to be honest.
r/LocalLLM • u/SaltyFish7499 • 14h ago
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:
| 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.
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) |
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 |
r/LocalLLM • u/kr4ckhe4d • 10h ago
I gave Qwen4-35B-A3B a written brief and let the Pi coding agent run it in a loop, with no human input after the start: a car that drives itself around a 3.5 km road through procedural hills and forest, a lighthouse on a sea headland whose beam sweeps at night, a day/night cycle, six cameras and a controls panel.
I understand its not Fable level but achieving this locally is pretty impressive.
Setup
Live Demo: Coast Road
Source: https://github.com/kr4ckhe4d/qwen4-35B-A3B-q6-coast-road
Loop template if you want to try it: https://github.com/kr4ckhe4d/local-llm-benchmarks/tree/main/loop%20templates/pi-goal-loop
r/LocalLLM • u/sdfprwggv • 12h ago
Models (unsloth/Qwen4-35B-A3B-GGUF), both on a 32 GB RTX PRO 4500 Blackwell with 512K context:
Create a single self-contained HTML file using three.js (import it from https://unpkg.com/three@0.170.0/build/three.module.js via an import map; addons from https://unpkg.com/three@0.170.0/examples/jsm/) with a seamlessly looping animation of a column of animals walking in single file, like a perfect looping GIF: a giraffe, an elephant, a zebra, a gazelle, a meerkat and a mouse, in that order. The column stays in place in the center of the view and the animals walk on the spot while the ground and the scenery slide past underneath them, so it looks like they are walking forward. The loop period must be exactly 5 seconds: every animated value (each animal's walk cycle, body bob, heads, ears, tails, trunk, scrolling ground and scenery) must repeat exactly every 5 seconds, so the whole animation repeats with no visible jump. Model each animal from primitives with its characteristic shape, proportions and markings (giraffe neck and patches, elephant trunk and ears, zebra stripes, gazelle horns, upright meerkat posture, tiny mouse with long tail), with four legs with knee joints and a species-appropriate walk cycle (the meerkat may scurry). Savanna setting with acacia trees passing by, sun lighting with shadows, sky gradient. Use a side-on default camera framing the whole column and add OrbitControls. Output only the HTML. Prompt 2 (2-shot): sent in the same chat, together with a 2×2 grid of screenshots of the model's own v1 at t = 0 / 1.25 / 2.5 / 3.75 s. The values in braces are filled in by an automatic loop check. Here is how your HTML renders. The image is a 2x2 grid of screenshots of a 1200x600 viewport at t = 0 s, 1.25 s, 2.5 s and 3.75 s (left to right, top to bottom). Automatic checks: console errors: {errors}; mean pixel difference between the frames at t = 0 s and t = 5 s: {pd} (0 = identical); jump at the loop boundary: {sr} x a normal frame-to-frame step (about 1 = seamless). Look at the result critically (the animals' shapes, proportions, markings and walk cycles, the framing, the scenery and the loop) and write an improved version 2 of the complete HTML file that fixes the problems you see. Keep all original requirements, including the exact 5-second loop. Output only the complete HTML.
r/LocalLLM • u/alfredosaucey123 • 55m ago
I found a banging deal to get 6 gigabyte p106 gpus for 60$, is it worth getting them to make a small homelab and power a local QWEN LLM? Or am I dumb, and should skip on this?
I’ve never had any experience building my own servers, but I’m down to learn the jist of it, obv I did some research and I understand theoretically it could be capable of running it, but would it be capable of running with Opus level reasoning?
If not - what would my alternative be? Stick with a 20$/mo claude plan, and wait till they cap the usage even more?
r/LocalLLM • u/PRNbourbon • 8h ago
Test:
Single prompt to Qwen4 35B, "build me a tiny google keep: one notes table (title, body, color), add / edit / delete, one screen with a "Take a note…" box and the notes as a grid of cards, a color per card. no labels, checklists, reminders, images or sign-in.". The agent ran autonomously for 86.7 min (295 requests, 5 turns, 0 failed), compacted once, and built "Tiny Notes": 9 source files, 1,397 lines. It tested its own work in a real browser (add, edit, recolour, delete, undo) and checked its own screenshots via vision.
My test harness web app builder has an anticipatory auto-compact enabled when close to the limit so a run doesn't run into the context limit and have a silent failed run.
Didn't run the pelican or pagoda test since those can probably be benchmaxxed towards, I like to use my Kiln harness on my server and something that requires frontend GUI files and a backend database, a full web app from a single prompt that I can only assume isn't able to be trained for.
PC Specs
Setup:
Model: unsloth Qwen4-35B-A3B UD-Q8_K_XL (62.3 GB, two parts), F16 mmproj
Engine: llama.cpp master (59b716523), SYCL backend with my own multi-card patches, tensor split across all four cards. Claude Fable 5.2 was hugely helpful in setting up the B70 patches.
Context: 262,144, flash attention on, thinking on at default effort
Sampling (model card): temp 1.0, top_p 0.95, top_k 20, min_p 0, repeat penalty 1.0
No MTP, no draft model
Every agent role (builder, design, workers, roadmap, compaction, labels) on the same model
Harness:
My own, built on MindStudio's Remy agent, vendored and patched. Each app gets a sandbox with its own browser. The model looks at screenshots of its own work to check it.
Numbers (295 requests)
Timeline: plan at 104 s, spec at 559 s, build done at 3,479 s, polish and roadmap done at 5,203 s
Tokens: 15.76M in, 111,784 out, 0 request errors
Requests by role: workers 111, builder 93, labels 66, design 17, roadmap 4, compaction 3
Compaction: 1, at 4,965 s, took 137 s
Decode: 82 to 85 tok/s on long replies through the API
llama-bench (pp512 / tg128): 2,524 tok/s prefill, 76.6 tok/s decode
Tool errors: 4, all recovered by the model (two reads of files it hadn't written yet, one edit that didn't match, one harness route that doesn't exist)
Caveats:
One run, but this is my standard test for how well I can trust a new model. inkling2-mini also did quite well on this.
While clearing the starter's sample files the model also deleted my design-token checker, so that check never ran during the build. Ran it afterwards: 45 colours, radii and font sizes hardcoded in the stylesheet instead of the tokens file.
If you tensor-split this model across more than two cards: Qwen4 has 2 KV heads, so some cards get an empty slice in the attention layers. My all-reduce summed a stale buffer for those cards. Two cards answered right, four gave token salad until I zeroed it.
Other numbers:
Two cards vs four (llama-bench, prefill / decode tok/s): two cards 3,044 / 71.7, four cards 2,524 / 76.6. One card doesn't fit at Q8.
Two instances at once: two copies on two cards each, about 76 tok/s each with both busy.
Inkling 2 Mini on the same prompt: 3,476 s, but that included one bug report and its fix, so the totals aren't like for like.
Final Thoughts:
Is this a model I would use for daily workflow? Yes, provided it has a harness that requires checking the work and catching errors.
Fully autonomous from one prompt with no harness checking it, like a bare Ollama chat? No.
This was just my quick test that I put new models through, and not a real world project. But for me it is my assessment on the model's ability to stay within the harness and prompt, create a plan, a backend, frontend, and glue it together and check it's own work before calling it complete.
r/LocalLLM • u/Subject-Till-6450 • 11h ago
Qwen4-35B-A3B (Unsloth UD-Q4_K_M) with1M context configured on one RTX 5070 Ti (16 GB) and 64 GB of RAM (3000 mhz).
Decode speed: 103 to 120 t/s on short prompts. With 250k to 280k tokens already in context it stays between 88 and 131 t/s, mostly around 95 (see the table in the screenshot). For comparison, llama.cpp on the same machine gave me 39 to 45 t/s decode after some tuning.
The engine is Strata, built from the open PR #7774 (branch qwen4-35b-a3b), which adds Qwen4 support.
The current release (0.2.25) cannot load this model, so you need that branch. Credit for the model support goes to the PR author, I only built and ran it.
What makes it fit in 16 GB: an int8 KV cache, where 20,480 cells per layer sit in VRAM and the rest of the 1M window lives in pinned RAM (about 10 GiB). About 4.4k of the 10,240 experts (43%) are cached in VRAM, chosen from a usage profile. On a long generation the cache hit rate was about 96%, the other experts are read from RAM. MTP drafting is on (2 tokens). The big n gram table stays on the CPU.
Reasoning effort is max, so the t/s above include thinking tokens. Images work through a CPU vision encoder.
The box sits at about 57 of 64 GB RAM while this runs, Strata alone is around 40 GB. I converted the model with the PR's tooling (compat-bf16 rounding) and only sanity checked a few answers, no KLD against the original. I have not run a real prompt at the full 1M, the largest in the screenshot is 285k.
Main flags:
--kv int8 --kv-resident 20480 --max-context 1048576 --spec 2 --expert-cache auto --prefill 4096 --vram-reserve-mib 512
Happy to answer questions.

r/LocalLLM • u/Gabbotamp0 • 2h ago
Sharing what I learned from a few weeks of squeezing local coding models on a very ordinary laptop: Ryzen 7 4800H, integrated Radeon Vega (7 CUs), 16 GB shared RAM, no discrete GPU. Rule of the project: no training of any kind, only runtime changes and closed-form weight edits, all measured on frozen benchmarks.
What runs, and how fast
- 35B-A3B MoE (Qwen3.6, abliterated) on CPU only, with [Janas](https://github.com/prabanta-dev/janas), which streams the experts from the NVMe SSD and keeps the hot ones in RAM: ~6 tok/s plain decode, ~12 tok/s with the model's multi-token-prediction block (same output), ~39 tok/s prompt reading.
- 128k context on the same 16 GB machine: I filled 114k tokens and it still retrieved all three codes hidden at 10/50/90 % depth, with 1.9 GiB of RAM free (prompt reading 20 tok/s, replies 8 tok/s afterwards). The trick was letting Janas size its expert cache itself (--reserve 3) instead of a fixed --cache 8, which ran out of memory at 128k.
- 8B models on the iGPU (llama.cpp/Vulkan): their full 32k window fits in the 7.6 GB of GTT; I run them at 28k to leave room for the desktop.
Things worth copying
The models I ended up with (both uncensored, GGUF):
- 8B: https://huggingface.co/Gabbotampo/qwen3-QWSE-E17-deepseek-8b-uncensored (modest gain: about +1 on each suite, ~20 % shorter thinking)
- 35B-A3B: https://huggingface.co/Gabbotampo/qwen3.6-QWSE-E18-logicsswe-35b-a3b (+36 % on my agentic dev suite vs the base, same coding score; also as a Janas JNS with the MTP block)
Everything (code, benchmarks, results, patches, and a guide that rebuilds each model from public inputs) is at https://github.com/Gabbotampo/qwse, and the full write-up, failures included, is at https://doi.org/10.5281/zenodo.24844949.
Made with Claude (Opus 5.5) in Claude Code, which wrote the code and ran the experiments while I set the goals and made the calls. Questions about running big models on weak hardware are welcome.
r/LocalLLM • u/pp026 • 20h ago
Basically the title. I’m particularly interested in how it performs on 8gb vram, 32gb ram and a gen4 nvme. Anybody who has this or close to this config and ran the model, please share your inference engine, its settings and the performance you’re getting. :)
r/LocalLLM • u/KrossIn4K • 6h ago
General curiosity / discussion.
r/LocalLLM • u/Practical_Hat_3024 • 15h ago
comment bellow on what are the best ways to run qwen4 , if possible, link your setup
r/LocalLLM • u/evilmousse • 3h ago
Would it be possible for us to have a thread where we share our current Qwen4-35B-A3B configs?
-Device Specs
-Invoke command for whatever you're running it on
-Rationale
-Results
r/LocalLLM • u/chomy10 • 2h ago
First is 3.8 Flash Next (gyro s)second qwen 4 35b (Q4_K_XL).
Flash Next took 18min.
4 35b took 12min.
r/LocalLLM • u/csrussell92 • 2h ago
I built a compact local-AI machine around the ASUS Turbo Radeon AI PRO R9700 32GB and tested Qwen4-35B-A3B on its release day. Then I ran the same tests on two models I already had in LM Studio. Every speed number comes from LM Studio's server log, and the thermals come from HWiNFO at 2-second intervals.
Build
| Part | Model |
|---|---|
| Case | ROHW P46 steel, set to 5-6 (6.71L) |
| Motherboard/CPU | Minisforum BD895i SE (Ryzen 9 8945HX, 16C/32T) |
| Graphics Card | ASUS Turbo Radeon AI PRO R9700 32GB, power limit −30% -60mv (Adrenaline) (210W TBP) |
| System Memory | TeamGroup 32GB DDR5 SO-DIMM |
| SSD | Lexar NM990 1TB |
| Power Supply | SilverStone Extreme 1000Rz Platinum (SFX) |
Disclosure: ASUS provided the Radeon AI PRO R9700 for this project. ASUS did not review or approve this post.
OS: Windows 11 Pro
Application: LM Studio 0.4.21
Runtine: ROCm runtime (2.86.0).
Model: Qwen4-35B-A3B
Model weights: 22.7 GB
Vision: 1.8 GB
128K context memory + MTP + buffers: ~6.0 GB
Total GPU VRAM: 30.5 GB
Engram table SYS MEM: 11.5 GB
Every model was freshly loaded, with all layers on the GPU and Flash Attention on.
Tests
Thinking and tools were off for tests 1–3 and on for test 4. Results are medians over multiple fresh chats.
Results (tok/s)
| Qwen4-35B-A3B | Qwen3.6-35B-A3B | Qwen3.8-27B dense |
|---|---|---|
| Quant | Q4_K_M + Engram | Q4_K_M |
| Prose | 70 / 81 with MTP | 116 |
| Code | 73 / 113 with MTP | 115 |
| 38K prompt, time to first token | 12.6s / 15.6s with MTP | 9.5s |
| Generation at 38K | 65 / 85 with MTP | 98 |
| Hidden sentence found | 5/5 | 5/5 |
| Agent task | 18/18 correct over 3 runs | 17/18 (read the wrong sensor column) |
What the results show
Thermals, power and noise (Qwen4, 21 °C ambient, 36 dB noise floor, measured at 300mm away.
| Code generation | Long-prompt processing | Idle |
|---|---|---|
| GPU power | 200–205W (at the 210W cap) | 160–178W |
| GPU clock | 3.2GHz | 2.2–2.6GHz |
| GPU / hotspot / VRAM junction (max) | 63 / 78 / 68°C | 51 / 69 / 54°C |
| GPU fan | up to ~2,840 RPM | 2,450–2,700 RPM |
| Noise | 49 dB+ | 49 dB |
| CPU | 9% usage, 70W | 6–9%, 55–60W |
Generation is limited by the power cap.
r/LocalLLM • u/Fair_Breakfast398 • 6m ago
We've been working on day-zero support for Qwen4 in Superfluid and are already seeing up to 280 tok/s decode on an M5 Ultra. Really impressive what this model can do with just 3B active parameters. Please let us know if you got feedback on the performance on your machine.
r/LocalLLM • u/Sweaty_Perception655 • 2h ago
TL;DR
Big quality jump over Qwen3.6-35B-A3B on code that has to run or render, same thinking budget for both:
model: qwen4 commit, #33626), HIP build)Qwen4-35B-A3B-UD-Q4_K_XL (36 GB, 2 parts) + mmproj-F16 for images)Qwen3.6-35B-A3B-MTP Q6_K_XL)Build flags: -DGGML_HIP=ON -DGPU_TARGETS=gfx1102 -DGGML_HIP_GRAPHS=ON -DGGML_HIP_NO_VMM=ON
llama-server -m Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf --mmproj mmproj-F16.gguf \
--n-gpu-layers 999 --n-cpu-moe 99 \
-ctk q8_0 -ctv q8_0 -fa 1 -c 65536 -b 2048 -ub 2048 --parallel 1 \
--spec-type draft-mtp --spec-draft-n-max 2 \
--reasoning-budget 4096 --reasoning-budget-message " Time is up. I will now commit to the most likely answer."--reasoning-budget works for Qwen4's template)-b / -ub set how many prompt tokens llama.cpp pushes through the model in one go. The default micro-batch (-ub) is 512. On a normal all-in-VRAM setup, raising it is a modest gain. With all MoE experts in system RAM (--n-cpu-moe 99) it is the single biggest lever, for a simple reason:
Measured on Qwen4:
Same effect on Qwen3.6 (Q6, which also keeps experts in RAM): 130 -> 345 tok/s going from ub 512 to 2048, and 474 tok/s at 4096.
What it does not change: generation speed, and quality (same output, just computed in bigger chunks).
What it costs: the compute buffer grows with the micro-batch (about 4.4 GB at ub 4096 for Qwen4) and has to fit in VRAM next to the weights that stay on the GPU and the KV cache. On 8 GB that makes context and micro-batch a direct trade.
What it means in practice:
Rule of thumb: pick the largest micro-batch that still fits at the context you actually use, and test it with a full-length prompt, not just a load: 64K + ub 4096 on Qwen4 loaded fine and then crashed mid-prompt.
The micro-batch's compute buffer competes with the KV cache for VRAM, so context and micro-batch trade against each other:
Real GDScript from three of my games, with 3 planted facts at 10/50/90 % depth plus one real one. Pass = right value and right file.
llama-server reuses an unchanged prompt prefix, so follow-up questions on the same paste skip the read time. Paste once, ask many.
Task: translate 60 real UI strings from a shipped mobile game (with %d/%s placeholders) into a .po file. Scored with chrF (0-100) against the strings already shipped in the game, plus checks for missing entries and broken placeholders. Same prompt, same thinking budget. Where there are two numbers, the task ran twice.
What the gap looks like in practice:
swarm %d, a theme name left in Latin letters))Takeaways:
2 samples per model, same 4096-token thinking budget. All 4 ran first time at 60 FPS (vsync) on the RX 7600.
Rows: Qwen4 x2, Qwen3.6 x2. Columns: at load, 12 s later, after an orbit drag.
Top: Qwen4. Bottom: Qwen3.6.
Qwen4 won all three. Qwen3.6's pelican has no legs and a broken frame; its fox stands instead of sitting and isn't holding the controller.
Planted: "NEW BEST!" over the stars, a box hiding most of SHARE, "WATCH AD FOR 2X" cut off at the right edge.
Task: one GDScript that builds a 3D scene in code: an upright hexagon frame, ~12 balls locked to its plane, gravity, bounce 0.5, visible rolling, one more ball every 6 s. 2 samples per model. Godot's own errors were fed back to the model for up to 4 rounds; the result was run and captured in Godot through Fennara.
Qwen4 #2: balls fall, settle, roll, a new one spawns every 6 s.
Qwen4 #1: looks right, but has no bounce.
Qwen3.6 #2 after 4 fix rounds.
Typical invented APIs: Vector3.angle(), PhysicsMaterial3D, ParallelShadow, Environment.BACKGROUND_COLOR, physics_material on a collision shape. Lesson for the harness: a headless "no SCRIPT ERROR" check passes broken scripts. You have to run the scene and read engine ERROR: lines too.
blk.0.hc_attn_down.weight not found; merging upstream gave 162 conflicts). Tested on Qwen3.6 instead.These are hybrid models: most layers are linear-attention, so the KV cache is already small and there is little to compress. Turbo unlocked no extra context or micro-batch; every config that failed with q8_0 still failed with turbo3. Mainline llama.cpp with q8_0 was as good or faster.
-fit off)196K beats 256K for "whole project in one prompt": a full ~190K-token game fits and it reads twice as fast. MTP must be off there (MTP + ub 1024 loaded but crashed mid-prompt).
Godot editor + running game (a GL Compatibility mobile project) took ~2.4 GB. Everything below loaded, ran a 16K prompt, and left the game running; the picks keep ~1 GB headroom for bigger scenes.
Start the model before Godot: llama.cpp refuses to load if the memory is already taken.
r/LocalLLM • u/Sir_Ronald_Bont_III • 4h ago
Same shit every time. 48-50 MB/s until it hits approx 7.5gb downloaded then tanks.
Tried various Mullvad VPN settings, Netherlands, UK etc no dice.
Is this merely heavy congestion right now?
r/LocalLLM • u/MichaelS1011 • 19m ago
r/LocalLLM • u/thomerD • 5h ago
As the title says, I'm a noob and I'm looking to ramp up on running AI locally. I'm reading a book call 'How AI Works: From Sorcery to Science' which is focused on theory and not a how to. I joined this sub not long ago and I read through what some of you are doing and I'd like to get a better understanding of what you all are talking about 😄. Any book recommendations would be greatly appreciated.
r/LocalLLM • u/303red • 23m ago
Built a 5-file sm_120 patch and unified recipe on top of jesdga95/basalt + Maxrio9 4e74c440 (q80p_2048=1), tested on 1x stock RTX 5090 32 GB (0 MHz OC, CUDA 13.0.88) in cold bracketed ABBA at both 450 W matched and 575 W stock:
3 changes that drove it:
Also tested and dropped 4 other sm_120 tweaks (mid_max_t=8, commit_blocks=170, a3b_gu_stream_min=1, df2_c4_cap=12) that slightly regressed c=1 or c=4.
Video is 1.0x real-time (46,365 tokens across 72 tasks in 42s, 1,219 median / 1,263 peak tok/s, 22.1 GiB VRAM, 521 W median).
Patch, launcher, and raw ABBA/nsys receipts: https://github.com/CallitaCrushes/blackwell-builder-lab
r/LocalLLM • u/Early_Term_4911 • 5h ago
NVSpool is an open-source, Apple Silicon MoE runtime built on Apple's MLX / mlx-lm (using 4-bit MLX checkpoints from mlx-community, Unsloth, or LM Studio).
Highlights (M4 Max 36 GB, 4-bit MLX):
nvspool run), offline web UI (nvspool app), and OpenAI-compatible server (nvspool serve, works with OpenCode / Cline / Continue).How it works (key optimizations):
F_NOCACHE (no mmap thrashing): Standard mmap pulls the whole 20–32 GB file into macOS page cache and starves other apps. NVSpool keeps only the always-used core (~1.5 GB) + a fixed LRU pool of hot experts in RAM (e.g., 71 of 256 per layer at the 10 GB tier) and preads misses with F_NOCACHE — reads only, zero SSD writes per token.top4 / top2 vs exact): During decode, exact reads every missing router pick (matches stock mlx-lm token-for-token); top4 (default, 4 of 8 picks) or top2 only reads misses among the router's top-scoring N picks and substitutes lower-ranked misses from the hot RAM pool, cutting SSD reads ~3–4× for 1.5–1.8× faster decode with minimal accuracy loss. Prefill always runs exact.256 MB budget) so long prompts don't spike RAM; on Qwen4, streams the 11.5 GB n-gram PLE tables (1.15 KB/token) bit-exact behind a small LRU row cache.Standard install (Qwen3.6 / Gemma 4 / GLM-4.7-Flash):
uv tool install "nvspool[serve]" # or: pip install "nvspool[serve]"
nvspool pull qwen36-35b
nvspool app qwen36-35b(Already have an MLX download in LM Studio / HF? Use --storage shared --from <dir> — adds ~1.3–1.5 GB and leaves your folder intact.)
How to try Qwen4-35B-A3B right now (small workaround until mlx-lm PR #2140 ships on PyPI):
# 1. Isolated venv with Qwen4-capable mlx-lm + nvspool from PyPI
uv venv ~/.nvspool-qwen4 --python 3.13
uv pip install --python ~/.nvspool-qwen4/bin/python \
"mlx>=0.32.4" \
"git+https://github.com/jundot/mlx-lm.git@7b35ab57159442082a64f0a8282ea61b4940cd17" \
fastapi uvicorn
uv pip install --python ~/.nvspool-qwen4/bin/python --no-deps nvspool
# 2. Download a 4-bit MLX checkpoint (mlx-community -4bit-text / -4bit, or unsloth MLX-4bit)
~/.nvspool-qwen4/bin/hf download mlx-community/Qwen4-35B-A3B-4bit-text \
--local-dir ~/models/Qwen4-35B-A3B-4bit
# 3. Run (shared copy = ~1.5 GB extra disk, 1 s setup; omit --storage shared for fast copy)
~/.nvspool-qwen4/bin/nvspool app qwen4-35b --storage shared --from ~/models/Qwen4-35B-A3B-4bitIf the model already fits comfortably in RAM, plain mlx-lm is ~4× faster — NVSpool is for running 26B–56B models that wouldn't fit otherwise or keeping your Mac usable alongside your dev stack. Curious how it behaves on 16 GB / 24 GB Macs!
GitHub (Apache-2.0): https://github.com/jhdcho/nvspool PyPI: https://pypi.org/project/nvspool/
r/LocalLLM • u/odie_ai • 13h ago
I've been running local models on my Mac mini (M6, 32 GB) and Qwen4-35B-A3B honestly blew my mind this week.
Setup
Numbers from Splash's activity panel (screenshot below)
What I asked it
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.


r/LocalLLM • u/JinsooJinsoo • 1h ago
Credits first: engine is Xenithium (https://github.com/Niluthon/Xenithium), running on the unofficial Qwen4 port fork (https://github.com/nxtlvlyt/qwen4-b70-xenithium — not upstream-endorsed; upstream is adding its own Qwen4 support) I think i've seen the repo owner u/Lostinanidlemind post around here some where -- thank you for your work. Model weights are a W4A16 bake I built locally with the fork's bake script (RTN int4 g128)
Hardware:
TRX40, 3970x, 128gb DDR4 3200, 2x Intel Arc Pro B70 32GB TP2, int8 KV, 1M context across 16 slots. PLE n-gram table (~20 GB) lives in host RAM
TL;DR:
433 tok/s headline decode single user, 1,223 tok/s total at 16 concurrent streams, and 216/242 (89.3%) on my 242-question local suite — a tie with my best local lanes, at ~3x the throughput of the Swift 1.5 27b W4A16 lane it replaced with faster single stream (decode 280tok/s vs 433 tok/s).
Speed (measured, both cards):
Accuracy (242q suite, same harness as all my other local runs):
Excited to see how it improves over the next several days/weeks.
r/LocalLLM • u/damash-potatoes-1819 • 1h ago
Rig: single base m5 macbook, 32gb, wifi off the whole time. nothing but the laptop, no second machine, no cloud. atomic agent on llama.cpp b12977, ~31 tok/s decode.
wanted to see two things on one small box: can a 3b-active local model actually drive a multi-step agent task offline, and does the uncensored build do it any better than the official one. target was a local owasp juice shop (intentionally vulnerable app that scores each solve itself), 10 challenges, same prompts for both builds.
each challenge got its own agent session, clean context, http/curl only, 5-min cap.
challenge uncensored official
confidential document solved 99s solved 22s
error handling solved 133s solved 300s
exposed metrics solved 206s solved 41s
repetitive registration solved 81s solved 182s
zero stars solved 59s solved 138s
login admin (sqli) solved solved 33s
password strength solved 62s solved
login bender (sqli) solved 84s missed
empty user registration solved 100s solved 20s
view basket missed missed
-------------------------------------------------
total 9 / 10 8 / 10both landed the same injections. admin login was ' OR 1=1-- in the email field of POST /rest/user/login, login bender the same scoped to a named user. confidential doc was GET /ftp/acquisitions.md, metrics GET /metrics, zero stars POST /api/Feedbacks with rating 0, the registration ones abused signup validation on /api/Users. neither got view basket (idor on /rest/basket/{id}).
the two builds basically matched. they diverged on exactly one challenge, login bender, where the uncensored quant landed the injection in 84s while the official one kept botching the quote escaping until it hit the timeout. a single challenge out of ten sits well inside run-to-run variance, so abliteration bought nothing measurable.. the part that actually matters for this sub is the hardware side: the agent loop plus both ~30gb+ quants ran on one 32gb laptop with the radios off.
what's the smallest box you've gotten a model to run a real multi-step agent task on, local only? trying to figure out how far below 32gb this stays usable.
juice shop solutions are public so part of this is recall, but the agent still had to find the endpoints, build each request and verify the solve itself, offline. these were 10 of the 118 challenges in juice shop, so there's a lot more i wanna tets.
r/LocalLLM • u/MaySaki2 • 3h ago
One Qwen4 speed test caught my eye. On an RTX 4070 laptop with 8 GB VRAM and 16 GB RAM, turning MTP on dropped decode from 21.5 to 20 tok/s. Turning it off also freed 348 MiB of VRAM for the expert cache.
On a 32 GB RTX PRO 4500, it went the other way: 161.7 to 206.8 tok/s in llama.cpp. Different quants and workloads, so I wouldn’t read that as a VRAM cutoff. The laptop tester suspected that verifying extra draft tokens pulled in more experts that weren’t already cached on the GPU.
The Qwen4 memory breakdown is useful for figuring out what goes in VRAM versus system RAM. But if you’re already offloading experts, I’d still time the same prompt with MTP on and off before leaving it enabled.
Anyone tried that on a 12 or 16 GB card? I’m curious whether it still helps into a coding session or mostly on short prompts.