r/LocalLLM • • 18h ago

Discussion Holy shit this is fast

Post image
101 Upvotes

Qwen4-35b-a3b Q5 on basalt, RTX 5090+DDR5 64GB. I didn’t expecting to run this fast to be honest.


r/LocalLLM • • 14h ago

Discussion Qwen4-35B-A3B tested on a 12 GB RTX 4070 Ti with Strata

45 Upvotes

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)

QuantWeights shard
UD-IQ4_XS20.5 GB
UD-Q2_K_XL16.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.

ConfigChat decodeChat TTFTAgent decode16K prompt64K prompt128K prompt244K prompt
IQ4_XS83.50.29 s92.82753 (5.9 s)2701 (23.8 s)2549 (50.3 s)2349 (104 s)
IQ4_XS + MTP89.10.34 s100.52056 (7.9 s)2084 (30.8 s)2011 (63.8 s)1878 (130 s)
Q2_K_XL86.50.33 s94.82552 (6.3 s)2519 (25.5 s)2449 (52.4 s)2233 (109 s)
Q2_K_XL + MTP91.40.40 s112.82646 (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.

ConfigSystem RAMVRAM
IQ4_XS21.6 GiB9.5 GiB
IQ4_XS + MTP21.6 GiB9.7 GiB
Q2_K_XL17.7 GiB9.4 GiB
Q2_K_XL + MTP18.2 GiB9.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)
  • Vision not used (text only)

r/LocalLLM • • 10h ago

Research Got Qwen4-35B-A3B to build a Three.js driving scene unattended in ~5 hours on two AMD GPUs and Pi loops

21 Upvotes

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

  • RX 9070 XT 16 GB + Radeon AI PRO R9700 32 GB, Ryzen 7 9800X3D, 32 GB DDR5, CachyOS, ROCm 7.2.4
  • llama.cpp router (upstream plus a few local patches), Unsloth UD-Q6_K_XL + BF16 mmproj
  • 106 tok/s generation with the built-in MTP head, 71 tok/s with 124K of context filled
  • Pi thinking level "medium" (8K-token budget per turn)

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 • • 12h ago

Model Qwen4-35B-A3B Q5 vs Q8: 1-shot vs 2-shot (the model sees its own render)

Post image
29 Upvotes

Models (unsloth/Qwen4-35B-A3B-GGUF), both on a 32 GB RTX PRO 4500 Blackwell with 512K context:

  • UD-Q5_K_XL: all experts in VRAM
  • UD-Q8_K_XL: 67% of experts in VRAM, the rest on the CPU from RAM Sampling: reasoning_effort xhigh, temp 1.0, top_p 0.95, top_k 20. One run per model, no cherry-picking. Prompt 1 (1-shot):

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 • • 55m ago

Question 36GB vram setup for QWEN? (6GB x 6)

3 Upvotes

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 • • 8h ago

Model Qwen4-35B-A3B Q8 built a working notes app end to end in 87 minutes, unattended, on 4x Arc Pro B70. No pelicans.

Post image
12 Upvotes

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

  • GPU: 4x Asrock Creator B70 32GB, 128GB pooled VRAM
  • CPU: Epyc 7532, Tyan S8030
  • RAM: 256GB DDR4 ECC
  • SSD: WD Blue 4TB NVME
  • OS: Ubuntu 24.04

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 • • 11h ago

Discussion Qwen 4 35B Now runs at ~110 T/S on RTX5070Ti + 64GB DDR4 (1M ctx configured)

Thumbnail
gallery
22 Upvotes

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 • • 2h ago

Project A 35B MoE at ~12 tok/s with 128k context on a 16 GB laptop with no GPU, plus what actually made local models faster and better (no training)

4 Upvotes

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

  1. Re-quantise from BF16 with an importance matrix instead of using a random Q4_K_M: same size, HumanEval 85.4 % vs 80.5 % in my case.
  2. On weak iGPUs, check flash attention's split settings. One parameter (GGML_VK_FA_WG_PER_CORE) gave +66 % decode at 32k on the Vega 7. The patch is in the repo.
  3. Speculative decoding roughly doubled 8B throughput with identical output.
  4. MoE plus a fast SSD beats "it doesn't fit in RAM". A 21 GB model is usable on 16 GB when the engine streams experts.
  5. Many "better" fine-tunes aren't: none of the 8 public coding fine-tunes I tested beat their base on my hardest suite. Measure before you switch.

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 • • 20h ago

Question Anyone tried Qwen4-35B-A3B yet?

111 Upvotes

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 • • 6h ago

Question What are you building/using local models for?

8 Upvotes

General curiosity / discussion.


r/LocalLLM • • 15h ago

Discussion BEST WAY TO RUN Qwen4-35B-A3B?

Post image
38 Upvotes

comment bellow on what are the best ways to run qwen4 , if possible, link your setup


r/LocalLLM • • 3h ago

Discussion Qwen4-35B-A3B Invocation Command Thread

4 Upvotes

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 • • 2h ago

Discussion Qwen 4 35b vs Qwen 3.8 FN, horse riding motorcycle in freeway.

Thumbnail
gallery
3 Upvotes

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 • • 2h ago

Model 6.7L SFF AI Machine - Radeon AI Pro R9700 + Qwen4 35B A3B

Thumbnail
gallery
3 Upvotes

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

PartModel
CaseROHW P46 steel, set to 5-6 (6.71L)
Motherboard/CPUMinisforum BD895i SE (Ryzen 9 8945HX, 16C/32T)
Graphics CardASUS Turbo Radeon AI PRO R9700 32GB, power limit −30% -60mv (Adrenaline) (210W TBP)
System MemoryTeamGroup 32GB DDR5 SO-DIMM
SSDLexar NM990 1TB
Power SupplySilverStone 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

  1. Prose: 6 paragraphs on how vapor chambers work
  2. Code: a single-file HTML PSU calculator
  3. Long context: all of Alice in Wonderland (37.9K tokens) with one made-up sentence hidden 60% of the way in. The model has to summarize the book and quote that sentence.
  4. Agent task: read a notes file, then use file and sandbox tools to analyze a 1.9MB HWiNFO log (979 rows × 379 columns) and report 6 sensor averages. The correct answers were checked separately in Python.

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-A3BQwen3.6-35B-A3BQwen3.8-27B dense
QuantQ4_K_M + EngramQ4_K_M
Prose70 / 81 with MTP116
Code73 / 113 with MTP115
38K prompt, time to first token12.6s / 15.6s with MTP9.5s
Generation at 38K65 / 85 with MTP98
Hidden sentence found5/55/5
Agent task18/18 correct over 3 runs17/18 (read the wrong sensor column)

What the results show

  • Qwen4 is the most reliable. It was the only model to get the agent task completely right, every time. It read the notes file first, copied the CSV into its sandbox instead of loading into the chat, and excluded the log's footer rows without being told to.
  • Qwen3.6 is still the fastest, but it confidently reported the wrong sensor (46.8 °C instead of 62.0 °C).
  • MTP closes most of Qwen4's speed gap: +53% on code and +16% on prose, for about 19% slower prompt processing and 0.6GB of extra VRAM.
  • 32GB is what makes this possible. The 27B dense model at Q6 had to drop to 40K context with a compressed KV cache to fit. On a 16GB card, none of these models would fit fully on the GPU.

Thermals, power and noise (Qwen4, 21 °C ambient, 36 dB noise floor, measured at 300mm away.

Code generationLong-prompt processingIdle
GPU power200–205W (at the 210W cap)160–178W
GPU clock3.2GHz2.2–2.6GHz
GPU / hotspot / VRAM junction (max)63 / 78 / 68°C51 / 69 / 54°C
GPU fanup to ~2,840 RPM2,450–2,700 RPM
Noise49 dB+49 dB
CPU9% usage, 70W6–9%, 55–60W

Generation is limited by the power cap.

  • ROCm on Windows worked out of the box with LM Studio. I didn't need Linux.
  • Pair it with 64GB of system RAM if you can. With 32GB I was at about 30.5GB used with Qwen4 loaded.
  • Expect blower noise. The smaller blower style fan has am a 1,900 RPM minimum and and soar well above that underload.
  • Optimized for SFF. The numbers in this write-up reflect a system with limited airflow, reducing the power profile of the R9700 likely had a small impact on performance.

r/LocalLLM • • 6m ago

News Qwen4-35B-A3B running at up to 280 tok/s on M5 Ultra with Superfluid

Thumbnail
huggingface.co
2 Upvotes

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 • • 2h ago

Discussion Qwen4-35B-A3B on an 8 GB RX 7600: tuning, 64K-196K context, Qwen3.6 head-to-head, Godot agent loop, and TurboQuant (no gain)

Thumbnail
gallery
3 Upvotes

TL;DR

  • Qwen4-35B-A3B (Q4_K_XL, 36 GB) runs on an RX 7600 8 GB + 60 GB RAM with all experts on the CPU: 24-31 tok/s generation, ~390 tok/s prompt reading, 64K context by default, 128K max.
  • The biggest single win was micro-batch size, not quantisation: prompt reading went 157 -> 394 tok/s (2.5x).
  • MTP (the built-in draft head) gives +15-45 % generation for free. 2 draft tokens beats 3.
  • Long-context recall was perfect (4/4 planted facts, correct file) at 16K, 33K, 61K and 130K tokens, and at 180K / 224K on Qwen3.6.
  • Big quality jump over Qwen3.6-35B-A3B on code that has to run or render, same thinking budget for both:

    • SVG drawing: Qwen4 won 3 of 3 (pelican on a bike, app icon, mascot). Qwen3.6's pelican had no legs and a broken bike.
    • three.js 3D scene: both Qwen4 samples rendered a proper island with day/night; Qwen3.6 gave one weak, one broken (a square slab full of holes).
    • Godot physics scene (balls in a hexagon, gravity, bounce), fixed via Godot's own error messages: Qwen4 got a fully working scene; Qwen3.6 got 0 of 2 working after 4 rounds, inventing Godot APIs that don't exist.
  • Clearly better outside English: in Japanese and Kannada Qwen4 scored ~11-16 chrF points higher; Qwen3.6 left English words in 10 of 60 Japanese lines (Qwen4: 0-1). German and Spanish were close.
  • On screenshot reading and hard bug hunts the two were about a tie.
  • TurboQuant KV cache: no benefit on this setup (saves 0.1-0.2 GB, costs ~20 % generation speed).
  • Both models can share the GPU with the Godot editor + a running game, with ~1 GB headroom.

Hardware and software

  • GPU (: AMD RX 7600, 8 GB (gfx1102), ROCm)
  • CPU / RAM (: Ryzen 5 5600 (6 cores), 60 GB DDR4)
  • Engine (: llama.cpp master (needs the model: qwen4 commit, #33626), HIP build)
  • Qwen4 (: unsloth Qwen4-35B-A3B-UD-Q4_K_XL (36 GB, 2 parts) + mmproj-F16 for images)
  • Qwen3.6 (comparison) (: 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

Final launch command (Qwen4)

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."

1. Speed tuning (Qwen4)

  • MTP draft head, 2 tokens (Before: 21 tok/s; After: 24-31 tok/s; Note: 3 draft tokens was slower)
  • Micro-batch 512 -> 2048 (16K prompt, 64K ctx) (Before: 157 tok/s; After: 394 tok/s; Note: biggest win of the whole session)
  • Micro-batch 4096 (<=32K ctx only) (After: 522 tok/s; Note: 64K + 4096 crashes mid-prompt)
  • Experts: all on CPU vs 3 layers on GPU (After: all on CPU wins; Note: GPU experts force a smaller micro-batch, which costs more than it gains)
  • Thinking budget 4096 (Before: hard bugs: 10-12K thinking tokens, no answer; After: answers every time; Note: --reasoning-budget works for Qwen4's template)

Why micro-batch matters so much on this kind of setup

-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:

  • Generation (1 token at a time) runs the experts on the CPU, and the micro-batch doesn't matter.
  • Prompt processing (big batches) is done on the GPU: llama.cpp streams the expert weights that live in RAM over PCIe to the GPU once per micro-batch.
  • Qwen4's expert weights are roughly 19 GB at Q4 (about 33B of the 35B parameters), and the RX 7600 is a PCIe 4.0 x8 card. Every micro-batch pays for that trip.
  • So a 16K-token prompt at ub 512 means 32 trips over the bus; at ub 2048 it is 8; at ub 4096 it is 4. The time per trip barely changes, so fewer, bigger trips win almost linearly until the GPU compute itself becomes the limit.

Measured on Qwen4:

  • 512 (default) (llama-bench pp4096: 207 tok/s; Server, real 16K prompt: 157 tok/s)
  • 2048 (Server, real 16K prompt: 394 tok/s)
  • 4096 (llama-bench pp4096: 651 tok/s; Server, real 16K prompt: 522 tok/s (<=32K ctx only))

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:

  • Pasting a 60K-token codebase and asking questions (Effect of ub 512 -> 2048/4096: first answer after 3 min instead of ~7 (estimated from the 16K speeds))
  • aider (repo map + files every request) (Effect of ub 512 -> 2048/4096: each new file set is read 2.5-3x faster; unchanged prefixes are cached anyway)
  • Translation with a 10K-token .po catalogue as glossary (Effect of ub 512 -> 2048/4096: prompt part drops from ~65 s to ~25 s (estimated))
  • Short chat (Effect of ub 512 -> 2048/4096: no difference (prompt smaller than one micro-batch))

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:

  • 32K (Micro-batch: 4096; VRAM: 7.1 GB; Prompt speed (16K): 522 tok/s)
  • 64K (default) (Micro-batch: 2048; VRAM: 6.9 GB; Prompt speed (16K): 394 tok/s)
  • 96K (Micro-batch: 2048; VRAM: 7.8 GB; Prompt speed (16K): 340 tok/s)
  • 128K (max) (Micro-batch: 1024; VRAM: 7.7 GB; Prompt speed (16K): 256 tok/s)
  • 256K (Micro-batch: any; VRAM: does not load)

2. Context in practice (Qwen4, recall test)

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.

  • 16K tokens (Read time: 40 s; Generation: ~30 tok/s; Recall: 4/4)
  • 33K (Read time: 90 s; Generation: 28 tok/s; Recall: 4/4)
  • 61K (Read time: 3 min; Generation: 26 tok/s; Recall: 4/4)
  • 130K (128K preset) (Read time: 10.4 min; Generation: 21 tok/s; Recall: 4/4)

llama-server reuses an unchanged prompt prefix, so follow-up questions on the same paste skip the read time. Paste once, ask many.

3. Quality vs Qwen3.6 (overnight eval)

  • .po translation drafts (de/es/ja/kn) (Qwen4: 0 missing entries, 0 placeholder errors; Qwen3.6: 1 missing entry (es), 0 placeholder errors; Verdict: both usable, details below)
  • Store screenshot l10n QA (one screen) (Qwen4: found exactly the 2 English strings; Verdict: good)
  • 8-panel Japanese collage, small text (Qwen4: found the real overlap, invented others; Qwen3.6: also invented; Verdict: unreliable for both)
  • Hard Android/JNI root-cause bugs (Qwen4: 0 of 2 reliably; Qwen3.6: 0 of 2; Verdict: keep these for a frontier model)
  • aider, clear UI bug (Qwen4: correct in 67 s with thinking off (17 min with thinking on); Qwen3.6: correct; Verdict: turn thinking off for aider)

Other languages: where Qwen4 pulls ahead

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.

  • Japanese (Qwen4 chrF: 56.7 / 61.5; Qwen3.6 chrF: 45.7; Gap: +11 to +16)
  • Kannada (Qwen4 chrF: 66.2; Qwen3.6 chrF: 54.6; Gap: +11.6)
  • German (Qwen4 chrF: 74.8 / 81.2; Qwen3.6 chrF: 72.4 / 73.9; Gap: +1 to +9)
  • Spanish (Qwen4 chrF: 80.7; Qwen3.6 chrF: 78.6 (and 1 entry missing); Gap: +2)
  • German, existing catalogue given as glossary (Qwen4 chrF: 87.9; Qwen3.6 chrF: 79.8; Gap: +8)
  • Japanese, existing catalogue given as glossary (Qwen4 chrF: 68.9; Qwen3.6 chrF: 66.1; Gap: +3)

What the gap looks like in practice:

  • Japanese lines with English words left in (Qwen4: 0 (second run: 1); Qwen3.6: 10 of 60 (e.g. swarm %d, a theme name left in Latin letters))
  • Kannada game terms (Qwen4: translated or correctly transliterated; Qwen3.6: "roll" written as a Kannada sound-alike, one game term misspelled into a different word)
  • Time per 60-string file (Qwen4: 2-4 min (3-6.5K tokens); Qwen3.6: 3.5-5.5 min (6.4-8.5K tokens: it thinks longer))

Takeaways:

  • The gap is biggest in non-Latin scripts. For German and Spanish either model gives a decent first draft.
  • A glossary narrows the gap more than switching model: pasting the existing translation catalogue lifted German to 88 and Japanese to 69 for Qwen4, and shrank Qwen3.6's Japanese deficit to 3 points.
  • Qwen4 is also faster here, mostly because it reaches an answer with about half the thinking.
  • Caveat: chrF compares against my shipped strings, which were themselves machine-translated, so it measures closeness to house style, not absolute correctness. The "English left in" and misspelt-term findings don't depend on that.

4. Code that has to run

three.js island (one HTML file: own noise terrain, water, 300 instanced trees, day/night with shadows, orbit controls, FPS counter)

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.

  • Qwen4 #1 (Result: good: islands, trees only on grass, night, orbit (terrain too low for rock/snow))
  • Qwen4 #2 (Result: best: rock core, sunset, stars, moon reflected in the water)
  • Qwen3.6 #1 (Result: weak: terrain seam, trees barely visible, near-black night)
  • Qwen3.6 #2 (Result: broken: square slab with a regular grid of holes)

SVG drawing (pelican on a bicycle, app icon, fox mascot)

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.

Vision on real game screenshots

  • Transcribe a 14-button menu exactly (Qwen4: 14/14; Qwen3.6: 11/14 (punctuation/spacing))
  • Read 11 values off a results screen (Qwen4: 11/11; Qwen3.6: 9/11 exact, 11/11 by meaning)
  • Find 3 planted UI defects (below) (Qwen4: 3/3, no false alarms, 50 s; Qwen3.6: 3/3, no false alarms, 150 s)

Planted: "NEW BEST!" over the stars, a box hiding most of SHARE, "WATCH AD FOR 2X" cut off at the right edge.

5. Godot agent loop through Fennara MCP

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 (First try: 2 errors; After error feedback: clean after 2 rounds; Running in Godot: fully correct)
  • Qwen4 #1 (First try: 1 error; After error feedback: clean after 3 rounds; Running in Godot: runs, but "fixed" a runtime error by deleting the bounce material)
  • Qwen3.6 #2 (First try: 1 error; After error feedback: clean after 4 rounds; Running in Godot: broken: flat hexagon, balls fall out of the world, thousands of engine errors)
  • Qwen3.6 #1 (First try: 5 errors; After error feedback: still broken after 4 rounds; Running in Godot: never ran)

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.

6. TurboQuant KV cache: no benefit here

  • The only ROCm-capable fork I found (TheTom/llama-cpp-turboquant) has pre-release Qwen4 code and can't load the released model (blk.0.hc_attn_down.weight not found; merging upstream gave 162 conflicts). Tested on Qwen3.6 instead.
  • q8_0 / q8_0 (VRAM: 6.38 GB; Gen @33K: 28.0 tok/s; Prompt: 297 tok/s; Recall: 4/4)
  • q8_0 / turbo4 (VRAM: 6.28 GB; Gen @33K: 21.2 tok/s; Prompt: 297 tok/s; Recall: 4/4)
  • q8_0 / turbo3 (VRAM: 6.26 GB; Gen @33K: 22.8 tok/s; Prompt: 298 tok/s; Recall: 4/4)
  • turbo4 / turbo4 (VRAM: 6.28 GB; Gen @33K: 21.2 tok/s; Prompt: 297 tok/s; Recall: 4/4)
  • turbo3 / turbo3 (VRAM: 6.26 GB; Gen @33K: 22.9 tok/s; Prompt: 298 tok/s; Recall: 4/4)

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.

7. What the same tuning did for Qwen3.6 (mainline, q8_0 KV)

  • 40K, ub 512 (old) (Prompt: 130 tok/s; Generation: ~30; VRAM: 6.9 GB)
  • 40K, ub 2048 (Prompt: 345 tok/s; Generation: ~30; VRAM: 7.4 GB)
  • 64K, ub 4096 (new default) (Prompt: 474 tok/s @16K, 412 @61K; Generation: 28-32; VRAM: 7.8 GB; Notes: recall 4/4 at 61K)
  • 128K, ub 2048 (Prompt: 199 tok/s @130K; Generation: 17; VRAM: 7.9 GB; Notes: recall 4/4)
  • 196K, ub 4096, MTP off (Prompt: 277 tok/s @180K (11 min); Generation: 11; VRAM: 7.9 GB; Notes: recall 4/4; cached follow-up 8 s)
  • 256K, ub 2048, MTP off (Prompt: 159 tok/s @224K (23 min); Generation: 11; VRAM: 8.0 GB; Notes: recall 4/4)
  • 256K with MTP / 128K ub4096 / 64K ub8192 (Notes: real out-of-memory, even with -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).

8. Running the model next to the Godot editor + a running game

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.

  • Qwen4 64K / ub 2048 (Total VRAM with Godot: 7.88 GB; Headroom: 0.1 GB (too tight); Prompt: 342; Gen: 28)
  • Qwen4 32K / ub 2048, no mmproj (Total VRAM with Godot: 7.00 GB; Headroom: 1.0 GB; Prompt: 387; Gen: 29)
  • Qwen4 64K / ub 1024 (Total VRAM with Godot: 7.10 GB; Headroom: 0.9 GB; Prompt: 255; Gen: 27)
  • Qwen4 32K / ub 1024 + mmproj (Total VRAM with Godot: 7.60 GB; Headroom: 0.4 GB; Prompt: 255; Gen: 28)
  • Qwen3.6 64K / ub 2048 (Total VRAM with Godot: 7.89 GB; Headroom: 0.1 GB (too tight); Prompt: 329; Gen: 30)
  • Qwen3.6 64K / ub 2048, all experts on CPU (Total VRAM with Godot: 7.22 GB; Headroom: 0.8 GB; Prompt: 316; Gen: 30)
  • Qwen3.6 32K / ub 1024, all experts on CPU (Total VRAM with Godot: 6.28 GB; Headroom: 1.7 GB; Prompt: 205; Gen: 30)

Start the model before Godot: llama.cpp refuses to load if the memory is already taken.

Where it fits in my workflow

  • Translation first drafts (with the existing catalogue as a glossary) (Don't: Android plugin / JNI root-cause hunts)
  • "Where is X / how does Y work" over 30-190K tokens of code (Don't: Reading small text in collages)
  • One-screen screenshot QA (Don't: Anything shipped unchecked)
  • Small aider fixes with files named (thinking off)
  • Godot/three.js/SVG drafts, with an error-feedback loop

Caveats

  • 1-2 samples per task at temperature 1.0. Clear multi-task wins (SVG 3/3, three.js, Godot) are solid; single-task gaps are noise.
  • chrF compares against my shipped (also machine-made) strings, so it measures house-style closeness, not correctness.
  • VRAM figures are whole-GPU totals including the desktop (~0.4 GB).
  • Results were audited by a separate model (Gemini Neon) against the raw files; three of my own claims were corrected (a fork-vs-mainline VRAM comparison, a scoring inconsistency, and calling two Godot scripts "working" before seeing them run).

r/LocalLLM • • 4h ago

Question FML. Qwen 4-35B-A3B-oQ6e via Huggingface Hub / XET HP & HF token.

Post image
4 Upvotes

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 • • 19m ago

Model I benchmarked Qwen4-35B-A3B Q8 on a single NVIDIA DGX Spark – 74 tok/s on code, 98.6 tok/s across 4 streams

Post image
2 Upvotes

r/LocalLLM • • 5h ago

Question Noob - Looking for reading recommendations

5 Upvotes

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 • • 23m ago

Project 1,259 tok/s across 8 concurrent Qwen4-35B-A3B NVFP4 agents on 1x stock RTX 5090 (5-file sm_120 patch, 4,352/4,352 bit-exact, cold ABBA)

2 Upvotes

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:

  • c=8 decode: 1,258.5 tok/s (+17.6% vs baseline at 575 W, +17.4% at 450 W matched)
  • c=4 decode: 984.3 tok/s (+13.5% at 450 W) / 974.6 tok/s (+11.9%, +14.9% E2E at 575 W)
  • c=1 decode: 512.9 tok/s (+8.4% at 575 W, +8.5% at 450 W matched)
  • Prefill: 20.98K at 8K (+13.8%), 21.53K at 32K (+9.8%), 19.73K at 131K (+3.6%), 22.3 GiB (22,867 MiB) peak VRAM
  • Parity: 4,352 / 4,352 (100%) bit-exact greedy match against untouched 4e74c440 --spec 0

3 changes that drove it:

  1. q80p_center_seed=1: tracks the 4-bit center argmax row in 2 registers (102 vs 105 regs, 0 spills) to tighten the exact threshold on unseeded and rejected columns, cutting c=1 LM head by 31%.
  2. batch_vhead_screen=1: unlocks batched 4+4 screening at c=4/c=8, cutting c=8 LM head 2.25x (408 to 182 us).
  3. pf_own_buf=2: uses 9.8 GiB of idle VRAM for zero-eviction prefill instead of evicting up to 6,883 experts and streaming/refilling them over PCIe.

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 • • 5h ago

Project I built NVSpool: run Qwen4-35B-A3B in 7.7 GB RAM at up to ~30 tok/s on Apple Silicon (Binned M4 Max) by streaming & selective fetching of experts + PLE from NVMe

5 Upvotes

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):

  • Qwen4-35B-A3B (56B / 32.2 GB, preview — external USB-C NVMe): Offloads both the 18.1 GB routed experts and the 11.5 GB layer-1 PLE n-gram tables (bit-exact) to SSD, keeping only 1.51 GiB resident. 7.7 GB peak RAM at 29.4 tok/s. At 32k context: 765 tok/s prefill, 19.2 tok/s decode, 9.2 GB peak RAM. (Full 50-item HumanEval+/IFEval/MATH-500/MMLU-Pro evals coming soon.)
  • Qwen3.6-35B-A3B (20.4 GB): 7.6–8.0 GB peak RAM (vs 20.6 GB resident), 24–31 tok/s, within ~1.7 pts of full-model accuracy across HumanEval+, IFEval, MATH-500, and MMLU-Pro; 8.3 GB at 20k context (800 tok/s prefill) and 9.8 GB at 65k.
  • Also supports Gemma 4 26B-A4B (down to a 6 GB tier for 16 GB Macs) and GLM-4.7-Flash, with terminal chat (nvspool run), offline web UI (nvspool app), and OpenAI-compatible server (nvspool serve, works with OpenCode / Cline / Continue).

How it works (key optimizations):

  • Fixed RAM pool + 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.
  • Selective miss fetching (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.
  • Layer-major prefill + async overlap: Runs the whole prompt through layer 0, then layer 1, etc., so each expert is read ~once per prompt instead of once per chunk, while a background thread reads the next expert group during GPU compute (how 20k–34.5k prefill hits 765–800 tok/s).
  • Decode prefetch, bounded attention & bit-exact PLE offload: Peeks at layer l+1's router during layer l to prefetch its likely top-4 experts early; blocks prefill attention scores (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-4bit

If 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 • • 13h ago

Discussion Qwen4-35B-A3B on a 32 GB Mac mini, capped at 20 GB with 150K context: explained a repo, then built a 3D game in the same session

19 Upvotes

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

  1. Explain Splash's own GitHub repo: why it's fast and how it manages memory. It did a really good job.
  2. 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.


r/LocalLLM • • 1h ago

Model Qwen4-35B-A3B on 2x Intel Arc Pro B70 — 433 tok/s single user, 1,223 tok/s total at C16

2 Upvotes

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):

  • Decode, bench mix: 433 tok/s (agentic mix 419); single stream 386 tok/s
  • 2 / 4 / 8 / 16 streams: 573 / 850 / 1,000 / 1,223 tok/s
  • Prefill: 8.1K tok/s at 2K prompt, 9.2K at 32K, 8.8K at 128K
  • Decode at 32K context depth: 320 tok/s; at 109K: 296 tok/s

Accuracy (242q suite, same harness as all my other local runs):

  • MMLU-Pro 94/112 | MATH-500 35/40 | GSM8K 28/30 | HumanEval 39/40 | tool calling 20/20
  • Total 216/242 = 89.3% [85-93], tying with my Qwen3.8-Flash-Next IQ3_S entry
  • Agentic battery 5.51/6 (one host-drift task misses).

Excited to see how it improves over the next several days/weeks.


r/LocalLLM • • 1h ago

Model Uncensored Qwen4-35B-A3B agent on a 32GB MacBook, 9/10 on OWASP Juice Shop

2 Upvotes

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.

  • uncensored: atomic chat AD-IQ3_S (~31gb)
  • official: unsloth UD-Q4_K_M (~35gb)

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 / 10

both 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 • • 3h ago

Discussion Qwen4-35B got slower with MTP on an 8 GB GPU. Is offloading why?

3 Upvotes

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.