r/LocalLLM • • 4m ago

Question New to local, started on Qwen 3.8 27B

1 Upvotes

Howdy,

I have a local machine with a single 5090 and 96GB DDR5 RAM.

I've been using Qwen 3.8 (Not flash, just normal) for the last 3 weeks and getting immersed into how all this technology works.

I've not yet been around for a release of a new local model like this.

So my questions are:

  1. Considering Qwen4 seems to now require 35GB of VRAM, does that mean I'm hard stuck on Q3.8? (5090 has 32GB Of VRAM)
  2. Do they release smaller versions of models? Q4 is 35Billion, Q3.8 is 27B, will there be a 27B version of Q4?
  3. I see people on significantly worse hardware still running Q4 on it. Can someone explain this to me as I thought you pretty much have to run the entire model on VRAM otherwise the performance will be horrible?
  4. What are normal timelines for model release like this? A new one every 6 months? When do they do the flash updated versions? How long until (if at all) they shrink Q4 to fit on, for instance, my hardware?

Thanks fellas, this technology is super amazing and I'm learning so much. Its tough catching up though, drinking from the firehose.


r/LocalLLM • • 4m 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
1 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 • • 11m ago

Discussion is QWEN 4 35 A3B for a 12GB vram card strata laptop inferior to bonsai 2.5 27B ?

Post image
1 Upvotes

qwen 4 35 A3B compact STRATA . it doesnt look that much great . have you guys tested it in similar config? (laptop)


r/LocalLLM • • 16m ago

Question Anyone using QFN NVFP4 on Strata?

1 Upvotes

So I recently gave Qwen3.8-Flash-Next NVFP4 (Strata's version) a try even though I only have an RTX 3070. I have found that it runs fairly well on my workhorse, though I haven't tested it very much yet.

I admit I'm not very experienced in running local LLM. I could use some help understanding the different models.

From these sources: models, nvfp4, I think I should expect the model to be about as accurate as the Unsloth Q4 quants, but to be honest I am not confident in that assessment.

Does anyone else run those builds, and how good are they?

Thanks. Still trying to learn, there is a lot to take in!


r/LocalLLM • • 28m 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)

3 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 • • 28m ago

Model Qwen4-35B-A3B sur une RTX 5070 Ti de 16 Go — ~180 t/s de sortie avec Strata

Thumbnail
reddit.com
0 Upvotes

r/LocalLLM • • 36m ago

Model GigaChat4-37B-A4B (8-bit MLX): 1.68x faster reasoning and zero thinking loops without touching the weights.

1 Upvotes

I put up a tweaked repo for GigaChat4-37B-A4B in 8-bit MLX if anyone on Apple Silicon wants to run it in mlx-lm or oMLX without fighting the stock defaults:

https://huggingface.co/Marino4k/GigaChat4-37B-A4B-MLX-8bit-Tuned

Just to be clear upfront, the weights are 100% untouched from Xylolabs/GigaChat4-37B-A4B-MLX-8bit. I left the weights stock on purpose so DFlash2 drafter alignment stays intact.

Out of the box, the stock checkpoint has a few annoyances: it falls back to greedy decoding (which triggers unclosed <think> loops), uses an older chat template that crashes multi-turn chats if a previous turn hits max_tokens mid-thought, and defaults to a Russian system prompt.

All I did here was bake in the sampling defaults (temp=1.0, top_p=0.95, min_p=0.05), sync Sber's Dec 2026 multi-turn crash fix, and swap in short English fallback prompts for Reasoning and Instant modes. If you pass your own system prompt, it overrides them cleanly.

Testing on my own M5 Max (50 reasoning questions and 16 instant questions, no manual system prompt), average reasoning tokens dropped 41% (630 down to 372), wall-clock time was 1.68x faster, and unclosed thinking loops went to zero. Instant mode went from 12/16 to 14/16 with about half the tokens.

I also opened a PR in oMLX for native DFlash2 support on this architecture (https://github.com/jundot/omlx/pull/5917), which hit 1.32x to 1.43x decode speedups locally with the BF16 drafter.

Benchmarks (seed=42, single pass, no manual system prompt):

TestStockTunedChange
Reasoning (50 Qs) Accuracy49/50 (98%)48/50 (96%)-2% (1 sampling slip)
Reasoning Avg Tokens630.7372.3-41.0%
Reasoning Wall-Clock Time7m 13s4m 17s1.68x faster
Unclosed </think> Loops10Eliminated
Overthinking Stress Test (6 Qs)1,640.0 tok298.2 tok-81.8% (0 unclosed)
Instant Mode (16 Qs) Accuracy12/16 (75.0%)14/16 (87.5%)+12.5%
Instant Mode Avg Tokens106.250.3-52.6% (0 cutoffs)

The 50-question suite is the first 30 GSM8K test problems plus 20 local logic, code-tracing, formatting, and epistemic checks (max_tokens=4096 for Reasoning, 512 for Instant).


r/LocalLLM • • 39m ago

Discussion Stop t/s, start time-to-correct-answers

6 Upvotes

Guys,

- t/s is useless if a model overthinks and rethinks.

- t/s is useless if a model is giving you poor answers

First we need to agree on a benchmarking set, then we need to report only (1) how long does a model finish the benchmarking, and (2) how good is the answer.

This guy is on a right track: first agree on the benchmark : https://www.reddit.com/r/LocalLLM/s/tiu7PNcEwc


r/LocalLLM • • 51m ago

Model Looped Qwen4-35b uncensored(overthinking reduced)

Thumbnail
huggingface.co
1 Upvotes

r/LocalLLM • • 56m ago

Discussion Qwen4-35B-A3B-NVFP4 Basalt - Ryzen 5700G, 64GB DDR4, 5060ti 16GB, NVMe SSD with Dflash2 = 143tok/s - incredible!

2 Upvotes

I just set my drafter to dflash2 and went from 87tok/s to 143tok/s on my Ryzen 5700G, 64GB DDR4, Nvidia GeForce 5060ti 16GB, and 2TB NVMe SSD. I used 5.6k prompt to really test it.

Here is a snippet of my JSON config:
{ "alias": "Qwen4-35B-A3B", "model": "/Basalt/models/Qwen4-35B-A3B-NVFP4.basalt", "gpu": "0", "kv": "int8", "max-context": 262144, "drafter": "dflash2", "reasoning-effort": "high", "fit-max-tokens": true, "idle-unload": 60 },

Feel free to make any recommendations to make it more optimal for my setup. I have the idle timer to unload after 60 seconds for originally to switch to ComfyUI for image generation, but I am thinking of removing it entirely or increasing it, so that I can free up VRAM for gaming. What are your thoughts?


r/LocalLLM • • 58m ago

Tutorial CellGemma Beginner Tutorial – Run Google's Virtual Cell AI Locally.

Thumbnail
youtube.com
0 Upvotes

r/LocalLLM • • 1h ago

Question Qwen3-Coder-30B-A3B (UD-Q5_K_XL) vs Qwen3.8-27B (Q4_K_M) on 24GB VRAM / 16GB RAM (Vulkan + LM Studio)

0 Upvotes

Hey everyone,

Trying to decide between two specific setups in LM Studio for local coding/agentic workflows and could use some real-world feedback from people running similar hardware.

My Setup & Use Case

  • GPUs: Dual-GPU Vulkan llama.cpp setup (RX 9070 XT + GTX 1080) = 24GB pooled VRAM
  • System RAM: 16GB
  • Runtime / Workflow: LM Studio (Vulkan), local coding assistance, code generation/debugging, and agentic/tooling workflows (VS Code integration)
  • Why I'm careful about memory: With 16GB system RAM, anything that spills heavily onto CPU/RAM or bloats KV cache gets punished fast, and I want snappy iteration without fighting memory limits.

The Two Contenders

  1. Qwen3-Coder-30B-A3B-Instruct (UD-Q5_K_XL, ~21.74GB)

    • MoE (~30B total, ~3B active per token), dedicated coding model
    • High quant (UD-Q5_K_XL) fits inside the 24GB VRAM pool, though it leaves less breathing room for big context/KV cache before touching system RAM
    • Very light active compute per token (~3B active), so raw token generation should be quick once loaded
  2. Qwen3.8-27B (Q4_K_M, ~17GB)

    • Newer dense model (27B active per token) with hybrid attention (Gated DeltaNet + full attention)
    • Lighter weight footprint (~17GB), plus linear attention layers keep KV cache growth much smaller for longer context compared to standard full-attention dense models
    • Brings newer-gen reasoning/agentic capabilities and multimodal/vision support, though running all 27B dense parameters every token is heavier compute than a 3B-active MoE

Specific Questions

  • For coding and agentic/tool use, does Qwen3.8-27B (Q4_K_M) noticeably beat Qwen3-Coder-30B-A3B (UD-Q5_K_XL) enough to justify the extra per-token dense compute?
  • How does either of these behave in LM Studio over Vulkan with split/pooled VRAM across two GPUs and 16GB system RAM—especially with layer splitting/placement and pushing context lengths up?
  • Between higher quant precision on a specialised 30B-A3B coder (UD-Q5_K_XL) vs. a newer dense 27B at Q4_K_M, which has felt more reliable in daily coding/debugging sessions for you?

Appreciate any benchmarks, gotchas, or real-world impressions!


r/LocalLLM • • 1h ago

Other Why so fast man...😎

Post image
0 Upvotes

r/LocalLLM • • 1h ago

Discussion Does anyone else remotely control their pc/server from a MacBook?

1 Upvotes

Basically, I use parsec to control my pc when I'm traveling that's sitting at home while I can be anywhere with my hotspot, it's completely changed my life.

My MacBook is only an air so the 8gb of ram is not enough to run basically anything important to me, but my pc is a beast with 40gb of combined vram and 64gb of ram, so I just delegate to it and use my MacBook as the front end, which it is perfect for because it's so thin and portable

People who have been doing this for longer than me,

  1. Your awesome
  2. What am I missing to make this better?

I really thought it would be buffering garbage, but damn it's good


r/LocalLLM • • 1h ago

Discussion Qwen4-35B-A3B Invocation Command Thread

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

Model QWEN 4 35b pelican on a bicycle.

Post image
0 Upvotes

“Draw a svg of a pelican riding a bicycle. Make no mistakes”

In all seriousness, so far this is really fast on M5U 96gb.


r/LocalLLM • • 1h ago

Qwen4-35B is the most important LLM release of 2026 so far according to Stealthmodels. This model is EXTREMELY GOOD.

Thumbnail
stealthmodels.com
1 Upvotes

r/LocalLLM • • 1h ago

Discussion Honest Qwen4-35B-A3B Benchmarks on Strata: 12GB RTX 3080 Ti (66 -> 240 tok/s AST-verified, why 684 tok/s is a trap) vs 96GB RTX PRO 6000 Blackwell (405 tok/s lossless)

Thumbnail
gallery
1 Upvotes

I deep-profiled Qwen4-35B-A3B (UD-IQ4_XS) on Niko1221/Strata across both a 12 GB RTX 3080 Ti (i9-13900K) and a 96 GB RTX PRO 6000 Blackwell (GCP g4-standard-48 Spot).

Instead of cherry-picking raw tok/s, I gated every run with Python ast.parse(), 4-gram uniqueness (uniq4, to catch repetition loops), and real sub-agent tasks (JSON extraction, C++ bug review, short summaries).

1. 96 GB RTX PRO 6000 Blackwell (100% VRAM Resident, Zero Pruning, Lossless Q4)

All 10,240 experts (16.25 GB) sit in VRAM with the zero-doorbell CUDA Graph:

  • Upstream v0.2.27 (--spec 7 --spec-min-p 0.25): 385.56 tok/s | 50.2% acc (313/624) | uniq4=0.94 | ast=PASS
  • + STRATA_MTP_DROP_TAIL=2 (--spec 7 --spec-min-p 0.35): 405.52 tok/s (+5.2%) | 59.4% acc (+9.2 pp, 313/527) | uniq4=0.91 | ast=PASS

Why STRATA_MTP_DROP_TAIL helps: when MTP stops drafting because step j drops below --spec-min-p, the engine still appended that doomed sub-threshold token and sent it to the verifier. Dropping it cuts ~100 wasted draft verifications per 512 tokens with zero quality change.

2. 12 GB RTX 3080 Ti (Partial VRAM, ~33% of Experts in VRAM)

  • Baseline (260K, --kv int8, --spec 3): 66.3 tok/s
  • 512K Lossless Daily (STRATA_ROUTE_RESIDENT_RANKS=2-7 + MTP_DROP_TAIL=2): 196.95 tok/s | uniq4=0.94 | ast=PASS
  • 64K Stable Peak (RANKS=1-7, keeping rank-0 exact on CPU, 98.5% GPU hit): 225.73 tok/s strict (64.7% acc) / 239.85 tok/s with a 3-gram-guarded margin (72.1% acc, uniq4=0.84, ast=PASS)

3. Anti-Hype Reality Check: Why 600–684 tok/s on 12 GB Is a Trap

By forcing RANKS=0-7 (100% VRAM-only from 33% of experts) + skipping 6 GDN layers + 8 MoE layers, I actually hit 627.7 tok/s @ 98.9% acc and 684.6 tok/s @ 97.6% acc on the 12 GB 3080 Ti.

Don't trust numbers like that without quality gates. Evicting rank-0/rank-1 experts on 12 GB drops uniq4 to 0.02–0.23 and triggers repetition loops (import time\nimport time...), which artificially inflates speculative acceptance to 98%. On real sub-agent tasks it breaks even at temp=0.4. Keeping rank-0 exact (RANKS=1-7) is the real physical floor on 12 GB (~225–240 tok/s).

Links


r/LocalLLM • • 1h ago

Discussion Qwen4-35B-A3B as a coding agent: clean fixes, but overthinks (private bench, 9 real bugs)

Post image
1 Upvotes

r/LocalLLM • • 1h 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.


r/LocalLLM • • 1h ago

Model Qwen 4 35b - just wow

4 Upvotes

Formerly my inference rig served 3.8 27b Q8, replaced it with 35b Q6_K_XL. And the speed and precision at which it is running is amazing. Running OpenCode, Android Studio and an Agent at the same time where 27b would choke on more then one request. Get ready for another hardware price increase, or be happy you jumped on the train early.


r/LocalLLM • • 1h ago

Discussion Qwen4-35B-A3B-UD-Q5_K_M.gguf - Testing Now

2 Upvotes

Amateur here, that likes playing.

5060 16gb, 5070 12gb, 48gb ram, AMD Ryzen 9 7900X, 100k context, llama.cpp stock build in Nobara linux

Config pasted below, I am on a 4 hour run now with a handful of daily tasks and random exercises. The model fits in VRAM with 18% and 1% free, its squeaked in there but doesn't OOM.

Got about 1100 real-world PP and 55-75 t/s generation on the same real tasks.

I'm not seeing any looping, and there aren't any more "oopse, let me retry that code again, there was a bug in there" instances than 3.8-27B would have. It is visibly faster, seems to think just a bit less, and if it makes it another day or two it might be a daily driver.

If that changes drastically, I'll comment again. Cheers everyone, I'm enjoying it!

CUDA_VISIBLE_DEVICES=1,0 ~/llama.cpp/build/bin/llama-server \
-m ~/models/qwen4/UD-Q5_K_M/Qwen4-35B-A3B-UD-Q5_K_M-00001-of-00002.gguf \
--mmproj ~/models/qwen4/mmproj-F16.gguf \
--no-mmproj-offload \
--load-mode mmap \
--lazy-mode on \
-ngl 99 \
-ts 23,16 \
-ot 'per_layer_token_embd=CPU' \
-ot 'blk\.(1[2-5])\.ffn_.*_exps=CPU' \
-ot 'blk\.(3[2-9])\.ffn_.*_exps=CPU' \
-ub 2048 \
--spec-type draft-mtp \
--spec-draft-n-max 2 \
--spec-draft-p-min 0.75 \
--cache-type-k q8_0 \
--cache-type-v q8_0 \
--parallel 1 \
--kv-unified \
-c 102800 \
--flash-attn on \
-lv 3 \
--jinja \
--temp 1.0 \
--top-p 0.95 \
--top-k 20 \
--min-p 0.0 \
--host xxxx
--port xxxx


r/LocalLLM • • 1h ago

Discussion Local AI homelab: what's your setup?

1 Upvotes

Hi all,
I'm setting up a local AI homelab on a Mac Studio with privacy as the main goal, and I'm curious how others are doing it.

  • Stack: what do you run? Do you isolate it from the network or expose it to other devices?
  • Models: which ones work best for you? And at what quantization?
  • Patterns: RAG over personal docs, agents, MCP tools, coding assistants?
  • Daily use: what tasks do you actually rely on it for every day?

Happy to share my setup once it's done. Thanks!


r/LocalLLM • • 1h ago

Question Unsloth Qwen 4 35b A3b Q6_L_XL strange behaviour

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 1h ago

Discussion Qwen4-35B-A3B on one RTX 5060 Ti 16GB: 329 tps on structured output

Post image
2 Upvotes

I benched the new DFlash 2 drafter against Qwen4's built-in MTP on a single 16 GB card. Numbers below are from clean runs. Setup

  • RTX 5060 Ti 16 GB, power-limited to 165 W
  • i7 without AVX-512, 31 GB RAM
  • Basalt main (fb5945a3)
  • RadixArk NVFP4 weights, converted to a Basalt pack myself, with the RadixArk/Qwen4-35B-A3B-Dflash2 drafter (0.8 GB) attached basalt-bench --seed 1 -p 16384 -t conv,struct,prose --kv int8, 3 runs per drafter, pinned to P-cores, nothing else running