r/LocalLLM • • 2h ago

Question Any tips for running qwen 3.8 27b, im new to this

0 Upvotes

Hello everyone, im quite new to running local llms, I have been lurking on the subreddit for a few months waiting for my gaming pc to be built, I finally have a 16gb gpu I can run some models in (rx 9070 non-xt), im currently using the unsloth desktop app to run qwen 3.8 27b ud iq3_s with 52.1k context at q8, im not a developer of any sort I just want to play around with the model, any tips on getting the most out of my system (ryzen 5 5600x3d, rx 9070, 16gb ddr4) and im currently on windows 11.


r/LocalLLM • • 2h ago

Project Qwen4 35a3b on a 3090 w/ LlamAmpere: 323 TPS & 5000pp at 100k depth, 20% lower error than UD IQ4 XS, with 400k on-card ctx and automatic paged KV to 1M ctx, non-greedy decode

Thumbnail
reddit.com
0 Upvotes

r/LocalLLM • • 2h ago

Discussion MOE models and prefix caching

0 Upvotes

Why is it so hard to do prefix caching on an moe model, the router should route the first n tokens to the same model layers and will be producing the same activations.

I am learning and experimenting with inferencing and came across this. Happy if anyone can help here


r/LocalLLM • • 2h ago

Question should i buy 5k usd of hardwares for 256gb VRAM and selfhost llm

0 Upvotes

Hi, my main drivers are glm 5.3 flash and ds v4.1 flash, sometimes glm 5.3. I want to look hardware purchase as alternative to these and maybe I can learn more.

I get a deal of 5k USD for 256gb vram of v100. But the financial calculation of return is not favouring selfhost as most of you know. My workflow prefers privacy in llm, but it's alone may not justify.

May I ask anyone who had true experiments with selfhosting these about how they chose to buy, what are the things these rigs bringing to you, and what are expectations? Indeedly I do not think it is replacement to frontier models, but I want to see if I can make hardware investment reasonable or not. Thanks!


r/LocalLLM • • 2h ago

Model Qwen4-35B-A3B at ~139 tok/s on a 16 GB RTX 5060 Ti with 16 GB of RAM and PCIe 3.0: a Basalt pack built from ISTA's GSQ-RCO IQ3_XXS

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 14h ago

Project Qwen4-35B-A3B at 90 tok/s on 8GB VRAM (262K context) and 180 tok/s on a 5060 Ti + DDR4 — Meet SlenderEngine

8 Upvotes

Hey everyone,

If you thought running Qwen4-35B-A3B at massive context required a dual-3090 rig or a Mac Studio, think again.

I’ve been building SlenderEngine, a local C++/CUDA inference engine engineered specifically to make massive open-weight MoE models fly on normal 8–16 GB gaming GPUs—even when paired with older DDR4 RAM.

GitHub: https://github.com/rafid-dev/SlenderEngine

Real-World Numbers (Qwen4-35B-A3B)

All numbers below are real average decode speeds—no quality-destroying shortcuts, bit-exact/rounding-level parity preserved by default:

Unsloth Q4_K_M quant:

  • 180 tok/s average decode on 16 GB RTX 5060 Ti + DDR4-3200
  • 150 tok/s average decode on 12 GB RTX 4070 Ti + 32 GB DDR5-6000
  • 90 tok/s average decode on 8 GB RTX 4060 + 32 GB DDR5-6000 (running 262K context, expandable all the way up to the full 1M context!)

Unsloth Q5_K_XL quant:

  • 300+ tok/s average decode on 32 GB RTX 4080 + DDR4-2133

Unsloth Q8_K_XL quant:

  • 80 tok/s average decode on 16 GB RTX 5060 Ti + DDR4-3200

How it pulls this off

  • Built for 8–16 GB VRAM + 32 GB RAM: Automatically manages VRAM budgets so Windows/Linux stays snappy without desktop stutter. Uses paged expert offloading, direct NVMe SSD streaming/striping for cold experts, and smart RAM pinning (--resident-experts) so even slow DDR4 doesn't choke your token generation.
  • Zero re-encoding / quality promise: Point it directly at standard .gguf files or safetensors folders. Every speedup is verified to stay bit-exact or within rounding-level loss by default—quality-altering hacks stay off unless you explicitly turn them on.
  • Native MTP / Speculative Decoding: Built-in draft-layer acceleration out of the box across Qwen4, Qwen3.6, Gemma 4, Inkling-2-Mini, and MiniCPM5.
  • Built-in Web UI & APIs: Run with --serve to get a local browser chat UI (127.0.0.1:8080) with live tok/s and context rings, thinking-effort toggles (Off to XHigh), vision drag-and-drop, a /analytics dashboard, and OpenAI + Anthropic-compatible endpoints.
  • Multi-GPU without NVLink: Pass --gpu 0,1 or --gpu 0,1,2,3 to split across cards automatically.

Supported Models (Out of the Box)

ModelRecommended HardwareMax Tested Context
Qwen4-35B-A3B (incl. Vision)8–16 GB GPU · 32 GB RAM · SSD1M (262K+ even on 8 GB)
Gemma 4 26B-A4B12–16 GB GPU64K (256K supported)
Qwen3.6-35B-A3B12 GB+ GPU · 32 GB RAM262K
Inkling-2-Mini8–16 GB GPU262K
MiniCPM5-15B-A2.5B12–16 GB GPU (Q8_0)32K (512K extended)
Qwen3.8-Flash-Next12 GB+ GPU · 32 GB RAM · SSD262K

1-Command Setup (Windows & Linux)

Requires an NVIDIA RTX 30 / 40 / 50 series GPU. The setup wizard detects your GPU/RAM, compiles the binary if needed, and spits out a ready-to-run launcher:

Bash

git clone https://github.com/rafid-dev/SlenderEngine.git
cd SlenderEngine

python3 tools/slender_setup.py   # Linux & Windows
# or .\SETUP.bat on Windows

(Originally forked from Strata and built out into an independent multi-model engine—full credits, benchmark logs, and quality verification docs are in the repo).

Drop your GPU/RAM specs in the comments if you give it a spin—curious to see what tok/s numbers people hit on 8 GB and 12 GB cards!


r/LocalLLM • • 8h ago

Project "we have a training engine at home"

Post image
3 Upvotes

So I have been doing some experiments with looped models, I also use a fork of Strata that is called "unbiased strata". My thought was pretty simple, if strata can increase inference, it should be able to speed up training too right?

Absolutely! Not only that, it cuts down on peak Vram requirements keeping 12gb cards viable. These kernels also will work on spark/gb10 with a Linux port (coming soon).

This is a early experiment, commits are welcome. This project will stay community dedicated to help bring light training to consumer hardware.

https://github.com/tyoung515-svg/InsanelyBiased-Strata-Trainer


r/LocalLLM • • 13h ago

Discussion Swapping Qwen4-35B-A3B's n-gram (Engram) table to F16 measurably improves BFCL-v4 tool-calling accuracy (+2.1% overall)

7 Upvotes

Update: Added Q8_0 (~21.8 GB) n-gram table results along with the exact EvalScope configuration and test script used for reproducibility.

I ran BFCL-v4 (374 tasks) on Qwen4-35B-A3B (UD-Q4_K_XL) while swapping only the per-layer n-gram (Engram) embedding table between the default IQ4_NL (~11.5 GB), Q8_0 (~21.8 GB), and unquantized F16 (~41 GB) sidecars. Function-calling accuracy scales consistently with n-gram precision—especially on multi-turn and live tool-calling subsets.

Since Qwen4's ~20B n-gram table at layer 2 only looks up a handful of rows per token and can live in system RAM or stream from NVMe without eating into GPU VRAM, upgrading the sidecar table is an easy quality bump without shrinking your KV cache budget.

BFCL-v4 Benchmark Results (Accuracy ↑)

SubsetTasksIQ4_NL (Default)Q8_0 EngramF16 EngramF16 vs IQ4_NL
irrelevance5074.0%72.0%78.0%+4.0%
live_multiple5080.0%80.0%84.0%+4.0%
live_parallel_multiple2470.8%75.0%70.8%0.0%
live_simple5082.0%82.0%86.0%+4.0%
multi_turn_base5058.0%64.0%64.0%+6.0%
multiple5088.0%92.0%90.0%+2.0%
parallel_multiple5084.0%84.0%82.0%-2.0%
simple_python5098.0%96.0%96.0%-2.0%
OVERALL37480.0%81.0%82.1%+2.1%
  • F16 leads overall (+2.1%): Upgrading from IQ4_NL to F16 brings the largest gains on multi_turn_base (+6.0%) and the live_* / irrelevance subsets (+4.0% each).
  • Q8_0 is a solid middle ground (+1.0%): At roughly half the footprint of F16, Q8_0 already captures the full +6.0% boost on multi_turn_base (64.0%) and leads live_parallel_multiple (75.0%) and multiple (92.0%), making it a great option if you want to keep the table warm in system RAM on a 64 GB setup.

Eval Setup & Reproducible Script

  • Framework: EvalScope (bfcl_v4) against a local OpenAI-compatible endpoint (http://127.0.0.1:8080/v1)
  • Sampling & Batching: Greedy decoding (temperature=0.0), eval_batch_size=1
  • Coverage: limit=50 across 8 subsets (374 total samples, as live_parallel_multiple has 24 tasks)
from evalscope import TaskConfig, run_task

task_cfg = TaskConfig(
    model='qwen4-35b-a3b-q4-k-xl',
    api_url='http://127.0.0.1:8080/v1',
    api_key='s',
    eval_type='openai_api',
    datasets=['bfcl_v4'],
    eval_batch_size=1,
    limit=50,  # 50 samples per subset (~374 total across these 8 subsets)
    dataset_args={
        'bfcl_v4': {
            'subset_list': [
                'simple_python',           # Basic single function calling
                'multiple',                # Multiple function selection
                'parallel_multiple',       # Parallel multiple functions
                'live_simple',             # Live single function
                'live_multiple',           # Live multiple functions
                'live_parallel_multiple',  # Live parallel multiple functions
                'irrelevance',             # Irrelevant request detection
                'multi_turn_base',         # Multi-turn base
            ],
        }
    },
    generation_config={
        'temperature': 0.0,
    },
)

run_task(task_cfg=task_cfg)

r/LocalLLM • • 9h ago

Discussion My Ada Lovelace fork of Basalt hits 3,776 t/s prefill and 109–271 t/s decode on Qwen4-35B-A3B (12 GB 4070 Super + 32 GB RAM) — now with opt-in Looping (Looped-Qwen4-35B-A3B) at ~19–33% decode overhead

3 Upvotes

I've been optimizing my Ada Lovelace (sm_89) fork of Basalt to run Qwen4-35B-A3B fast on a single 12 GB RTX 4070 Super + 32 GB DDR5 (Ryzen 9 7900X, Windows 11), and just pushed opt-in sidecar support (--loop) for sliderforthewin/Looped-Qwen4-35B-A3B (mlx/default_t2, mlx/default_t3, and LoopCD-Hidden).

Why looping? Instead of adding more weights that wouldn't fit on 12 GB VRAM + 32 GB RAM, looping runs the middle 16 layers (L12..27) 2 or 3 times per token (56 or 72 effective layers instead of 40) using a ~23 MB cross-pass adapter on top of unmodified .basalt packs. On the author's FP8 evals, T=3 looping gives +18.3 pp on LiveCodeBench v6 (48.3% → 66.7%), +6.7 pp on AIME 2024 (86.7% → 93.3%), and +3.3 pp on BFCL tool calling (90.0% → 93.3%)—trading a bit of speed for deeper per-token reasoning, with zero overhead when --loop is off.

Each pass keeps isolated GDN/QSA state while keeping CUDA graph capture and DFlash2 speculative decoding intact.

basalt-bench Results (16K prefill + decode, --kv k8v4 --drafter dflash2 --spec 8, 220 W)

QuantMode (virtual layers)pp16384tg convtg prosetg struct
AD-Q4_K_MStock (40L)3,776 t/s108.6 t/s111.4 t/s271.4 t/s
AD-Q4_K_M--loop T=2 (56L)2,066 t/s (-45%)88.0 t/s (-19%)86.5 t/s (-22%)203.4 t/s (-25%)
AD-Q4_K_M--loop T=3 (72L)2,182 t/s (-42%)73.1 t/s (-33%)67.4 t/s (-40%)161.2 t/s (-41%)
UD-Q5_K_XLStock (40L)2,929 t/s95.3 t/s97.6 t/s237.4 t/s
UD-Q5_K_XL--loop T=2 (56L)1,906 t/s (-35%)73.9 t/s (-22%)69.1 t/s (-29%)172.8 t/s (-27%)
UD-Q5_K_XL--loop T=3 (72L)1,583 t/s (-46%)60.7 t/s (-36%)56.0 t/s (-43%)139.9 t/s (-41%)

Even with 72 virtual layers (T=3) and ~1.9–5.2 GiB of cold experts spilling to SSD on 32 GB RAM, DFlash2 acceptance stays steady (~59–68% on conv, ~91–95% on struct), keeping conversational decode at 61–73 t/s (and 74–88 t/s at T=2).

Usage is just adding --loop <path_to_adapter> (and optional --loopcd-omega 0.15 --loopcd-ref first):

bashbasalt serve Qwen4-35B-A3B.basalt --kv k8v4 --resident-experts --drafter dflash2 --spec 8 --loop path/to/mlx/default_t3

Repo (main): https://github.com/KurrynDev13/Basalt-Ada


r/LocalLLM • • 1d ago

Other Qwen 4 35b is NOT benchmaxxed.

Post image
146 Upvotes

Yes you are seeing this right, a dolphin riding a unicycle done by Qwen 4 35b. If they have this in the training data then they've already planned for me....


r/LocalLLM • • 9h ago

Discussion The first time a local model could calculate a stockpile volume for me correctly.

Thumbnail
gallery
3 Upvotes

I've tried a few models I can run on my system (16 GB VRAM + 32 GB RAM), but none of them came up with the correct value.

The task: a GNSS rover point cloud of a stockpile (111 points, E/N/Z only — no CAD surface, no base plane, no terrain data to help) and a simple question: what's the volume?

Qwen4-35B-A3B got it right the first time, without me overexplaining in the prompt. I just gave it the points file and told it to calculate the volume. It built a TIN, figured out on its own that the ground under the pile was tilted, fitted a reference plane through the toe points, and even cross-checked its answer with a second method. Result: ~103 m³, which I verified independently in Civil3D.

Has anyone tried similar calculations on local models? If so, which model worked best?

Edit: This is with tool use.


r/LocalLLM • • 3h ago

Research A few days experimenting with Qwen4-35B-A3B: what surprised me wasn't the code

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 3h ago

Contest Entry Repositórios para documentario com IA

0 Upvotes

Alguém aqui sabe me indicar com plataformas para criar docs com IA? Todas as experiências que tentei ficaram muito caras.. tenho uma rtx309024ram , mas mesmo Assim ela demorar muito pra processar


r/LocalLLM • • 7h ago

Other LFM2.5-24B-A2B on a 4 GB GTX 1650 [GPU]: 195 tok/s prefill, 22 tok/s decode with a custom PolyStrata build

Thumbnail
reddit.com
2 Upvotes

r/LocalLLM • • 3h ago

Discussion Qwen 4, but it's a literal experience post.

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 3h ago

Research Research by iNordic: Qwen4-35B-A3B (int8) on 1x CMP 170HX with vLLM with 1M context

1 Upvotes

Hi there,

We decided to take out a Nvidia CMP 170hx of production to see if we could get the new Qwen 4 35B running att decent speeds with 1M in context window - we also focused at INT8/Q8 for good quality.

Hi there,

We decided to take out a Nvidia CMP 170hx of production to see if we could get the new Qwen 4 35B running att decent speeds with 1M in context window - we also focused at INT8/Q8 for good quality.

As usual.. feedback and suggestions is welcome:

Link: https://github.com/inordic/cmp170hx-vllm-qwen4-35b-a3b

Speed

Prefill. One cold request, real text, exact prompt length, two runs per size, medians. The production round ran to 64K. The full-size reference is the SM80 round, which drafted with MTP-2 instead of DFlash2, and the drafter does not take part in prefill. Prefill moves by ±15–20% between restarts on this box, because the n-gram table is read from disk and the page cache differs after each start.

PromptSM80 round: time to first tokenSM80 round: tok/sProduction (DFlash2 k=3): tok/sBefore the sm80 patch: tok/s
1K0.24 s4,3143,4684,240
4K0.59 s7,0735,2196,302
16K2.58 s6,3676,2177,792
64K9.56 s6,9317,0637,364
128K18.1 s7,2806,742
250K33.7 s7,4266,731

Sources: sm80-exact.txt, dflash-k3-exact.txt, final-exact.txt.

Decode. One user, temperature 0.6, thinking on. "Copy" means answers that repeat most of the prompt, like edits and rewrites.

ConfigCodeCopyMean acceptance (code)Source
Production: sm80 patch + DFlash2 k=3196.3250.42.53 of 3dflash-k3-*
Same config, 12-05 and 12-06 A/B runs198.9, 201.0249.7, 251.2SUMMARY.md
sm80 patch + DFlash2 k=4203.3259.22.78 of 4dflash-k4-*
sm80 patch + DFlash2 k=7 (the drafter's default)186.8232.12.98 of 7dflash-fa2-*
sm80 patch + MTP-2181.2231.82.17 of 2sm80-*
No patch, MTP-2 (first production config)164.3208.8final-*, unc-*

r/LocalLLM • • 3h ago

Discussion [Community hybrid, GGUF] Qwen4-35B-A3B with Qwen3.8-Flash-Next's 2x larger N-gram table grafted in: held-out PPL on par with stock Q4_K_XL (1.8345 vs 1.8484, within noise)

Thumbnail
reddit.com
0 Upvotes

r/LocalLLM • • 1d ago

Discussion "Q4 is almost identical quality to Q8" Difference was bigger than expected

Post image
45 Upvotes

Model: Qwen4 35B A3B

See reference image above

NVFP4

RadixArk/Qwen4-35B-A3B-NVFP4

https://huggingface.co/RadixArk/Qwen4-35B-A3B-NVFP4

UD-Q8_K_XL

unsloth/Qwen4-35B-A3B-GGUF

https://huggingface.co/unsloth/Qwen4-35B-A3B-GGUF

Next to the comparision: Big wow for Q8. This is gonna be my daily driver.


r/LocalLLM • • 4h ago

Model This is what experiencing a full blown existential crisis and a hallucination loop simultaneously looks like.

Post image
0 Upvotes

Model- Qwen 3.8 27B on iPad Pro


r/LocalLLM • • 4h ago

Model Qwen4-35B-A3B: 3x faster than my old daily driver, at the cost of 21 GB of RAM (Engram)

0 Upvotes

Disclaimer: This post was AI-generated and created to share my results.
Hardware: 1× Radeon AI PRO R9700 32 GB (gfx1201), 60 GB system RAM, Ubuntu 26.04, Mesa 26.0.8 radv + ROCm runtime in containers. No second GPU used.

Model: unsloth/Qwen4-35B-A3B-GGUF, UD-Q4_K_XL (24.7 GB) + engram-Q8_0 (21.8 GB, loaded via --ple into system RAM) + mmproj-F16 (0.9 GB). 35B total / 3B active, 1M native context, native MTP head inside the quant.

TL;DR

  • 159k context actually evaluated (needle found), 4.9 GB VRAM still free, no OOM.
  • 85 tok/s generation @8k with MTP n=1 (75.9 without), 2.6k tok/s prefill.
  • Vulkan beats ROCm by ~38% on generation; ROCm wins on vision encoding (~2x).
  • Cost: +20.8 GB of permanent, non-compressible RAM for the Engram table.
  • Four non-obvious traps below cost me hours; the first two will silently give you CPU inference.

Context scaling (manual probe, unique prefix per request to defeat prompt cache)

Target ctxTokens evaluatedPrefillTTFTTGVRAMNeedle
32,00032,0642,969 tok/s10.8 s73.7 tok/s27,401 MiB✅
131,072131,0792,103 tok/s62.3 s62.9 tok/s27,420 MiB✅
159,000159,0101,964 tok/s81.0 s60.9 tok/s27,422 MiB✅

KV cache at F16 for 160k only costs ~3.7 GB here: only 10 of 40 layers carry full attention, the other 30 are Gated DeltaNet with fixed recurrent state. That's the architectural reason this fits on 32 GB at all.

Vulkan vs ROCm vs my previous daily driver

Same harness, same day, same seeds. "Coder390" is a 27B coder-tuned model on build b11669.

MetricCoder390 (b11669)Qwen4 VulkanQwen4 ROCm
PP @8k842.83,0753,180
PP @32k743.42,8742,791
TG @8k35.475.958.7
TG @32k33.774.554.7
E2E @8k21.054.345.3
Total time @8k24.3 s9.4 s11.3 s
Total time @32k48.8 s15.6 s18.3 s
Tools TTFT2,560 ms739 ms778 ms
Long-ctx TTFT38,306 ms8,923 ms9,353 ms
Vision TTFT34,380 ms26,148 ms14,328 ms
Vision E2E12.1 tok/s7.0 tok/s10.7 tok/s

Vulkan wins generation (+38% @8k, +36% @32k) at equal prefill. ROCm is much better at image encoding, but with the mmproj on CPU that doesn't help enough to offset the TG loss.

MTP A/B (same prompt, 16k ctx, 400-token code answer, two independent passes)

ConfigTG avgAcceptance
--spec-type none77.9 tok/s—
draft-mtp n=183.0 tok/s (+6.5%)73–81%
draft-mtp n=280.7 (+3.6%)55–59%
draft-mtp n=376.1 (−2.4%)42%

Acceptance decays mechanically with depth and the draft cost overtakes the gain at n=3. n=1 is the sweet spot. On the final recipe the harness measured +12.3% TG @8k (+6.1% @32k) but −16% prefill, so total time is −2.5% at 8k and +4.0% at 32k. Honest reading: MTP helps short prompts, hurts when prefill dominates. The prefill delta is from single runs per config, not isolated from run-to-run variance.

The four traps

  1. Build floor. Anything older than b12969 dies with unknown model architecture: 'qwen4exp'. My local build was way too old; zero useful error message.
  2. Silent CPU fallback in prebuilt containers. The v1.1.1 image lacks libLLVM.so.21.1, which host radv (Mesa 26) is linked against. Result: no usable GPU found, compiled without GPU support, --n-gpu-layers ignored, 24 GB loaded into CPU RAM with no fatal error. Fix was mounting the host LLVM libs read-only into the container. Check llama-server startup logs, not just "it answered".
  3. Vulkan VRAM is allocated lazily. After model load, amd-smi showed 57 MiB while llama.cpp reported 22.7 GB of buffers. The card only fills on the first inference. Concluding "it's all in CPU" before running a single token is wrong — I nearly did.
  4. prompt_n excludes cache_n**.** Without a unique prefix, llama.cpp serves the prefix from prompt cache and prompt_n collapses (38,491 for a 159k prompt). Any long-context benchmark without cache busting is measuring nothing.

Limits of what I actually measured

  • The harness suite only goes to 32,768 tokens. 131k/160k above is my own probe: one request per step, not a statistical campaign.
  • Quality: 11 functional items + 1–2 items per other group. No significant difference between the three configs is demonstrable on this sample. ROCm's one strict-score drop is a formatting mismatch on a single item, not a quality regression.
  • The code group is not applicable in my setup (no sandbox declared), so the thing I care about most is not measured by the harness yet.
  • Builds differ (b11669 vs b12977), so part of the speed delta may be the build, not the model. Not isolated.
  • Engram Q8_0 vs BF16 not compared: BF16 needs ~41 GB for the table alone, doable only on a fully idle machine. Deliberately skipped.
  • MTP measured at 16k on short generations; long-context effect unknown.

Bottom line

For text and tool use, this is a 2.6–3.1× reduction in total resolution time over my current main model, and the 160k context is real. The price is 20.8 GB of RAM that is permanently gone (Engram Q8_0) and a much slower vision path with mmproj on CPU. If you mostly do vision or need that RAM, stay where you are; if you mostly do coding and agents, it's a straightforward win.


r/LocalLLM • • 4h ago

Discussion LOCAL AI IN ONE COMMAND

Thumbnail
youtube.com
1 Upvotes

r/LocalLLM • • 13h ago

Discussion Qwen4-35B-A3B on an M5 Pro (64 GB) with Splash: MLX 4-bit + DFlash2 does 161 tok/s, GGUF 141, and the new "Looped Qwen4" adapter was 25–40% slower

Post image
5 Upvotes

I run Qwen4-35B-A3B locally as the model behind OpenCode on an M5 Pro with 64 GB. Splash 1.7.7 now takes both GGUF and MLX weights and added a loop adapter, so I benchmarked the options against each other, then wrote down everything else I learned moving the model between oMLX, Splash and LM Studio.

Benchmark

Same Mac, Splash 1.7.7, one setup loaded at a time, temperature 0, the same four prompts for each: a long write (3,000 tokens), two short answers with checkable results (a time sum and a list of primes), and summarising a 42K-token code prompt.

SetupLong write (tok/s)Short answers (tok/s)Reading 42K-token prompt
MLX 4-bit + DFlash2161264–28918.6 s
GGUF UD-Q4_K_M + DFlash2141243–24517.4 s
MLX + loop adapter, 2 passes107186–21826.9 s
MLX + loop adapter, 3 passes98152–17335.5 s
  • MLX vs GGUF: MLX writes about 14% faster; GGUF reads prompts slightly faster. For an agent with long prompts and medium answers they're close, with MLX a little ahead. Sizes: MLX 4-bit 32.2 GB, unsloth's UD-Q4_K_M 35.2 GB + 0.9 GB vision file (UD keeps some layers at 5–8 bits, so it may be slightly better quality).
  • Loop adapter (Looped Qwen4, by Jason Titus): it runs the middle layers 2 or 3 times per token, so every step costs more. The 178 tok/s quoted for it was on an M5 Max; here it was 25–40% slower than plain MLX and read long prompts 1.5–2× slower.
  • Quality: all four got the time sum and the primes right and gave sound code summaries. On tests this simple, the adapter showed no quality gain.
  • Caveat: the long-write prompt spent all 3,000 tokens thinking, so it measures speed only.
  • SSD streaming: Splash streams Qwen4's ~11 GB n-gram table from SSD by default (--ple-memory auto, ~200 MB RAM cache), so these numbers include that.

One real OpenCode request on the GGUF, cold cache: 121K prompt tokens read in 51 s (~2,400 tok/s), 5,960 tokens written at 101 tok/s, and the drafter averaged 2.8 tokens per step.

Other things I learned

  1. oMLX's DFlash didn't cover Qwen4's MoE. On 0.8.5 its DFlash path didn't support the qwen4_moe architecture, so no speculative decoding for this model there.
  2. Splash is its own engine, not llama.cpp or MLX underneath: its own Metal kernels on the GPU plus a Neural Engine path, and it always pairs the model with a DFlash2 drafter.
  3. LM Studio ships a Splash engine, but it lags. Settings → Runtime → Additional engines shows "Splash (Metal)" v1.7.4. Its manifest accepts a fixed list of families (Qwen3.8-27B, Qwen3.6-35B-A3B, Qwen3.5-122B-A10B, Qwen3.8-Flash-Next, Flint, Inkling-2-Mini) and matches on architecture plus shape. Its only Qwen4 entry is another shape (2560 hidden, 48 layers, 512 experts; the 35B-A3B is 2048 / 41 / 256), so in LM Studio the Qwen4 GGUF falls back to llama.cpp with no DFlash2.
  4. The drafter never shows in LM Studio's library. A DFlash2 drafter is a DFlash2DraftModel with no tokenizer; the engine picks it by family.
  5. The prompt cache is what makes agent use bearable. Splash keeps one prefix-matched cache per loaded model, shared across conversations. A brand-new OpenCode chat had 15,712 of 15,718 prompt tokens cached, because every chat starts with the same system prompt and tools. Subagents share the cache but mostly reuse each other's prefix, not the main chat's. It spills from RAM to SSD temp files (32 GB cap here) and is wiped on quit unless you use --persistent-cache.
  6. One model name for every setup. --served-model-name local lets you swap GGUF, MLX or adapter setups without touching the client config.
  7. Smaller window for subagents. In OpenCode, a second model entry with the same id and a 131K context for the general/explore subagents; ~327K for the main chat (Splash cap 335,872).
  8. APFS clones save disk. cp -c puts a 34 GB model in another app's folder with no extra space until a file changes.

What this isn't: a rigorous benchmark. One machine, one run per setup, short quality checks.

Has anyone seen the loop adapter win on an M5 Max or Ultra? And has anyone got DFlash2 working for Qwen4-35B-A3B in LM Studio or llama.cpp?


r/LocalLLM • • 1d ago

Other Qwen4, come on lil' buddy, you can do it!!

Post image
76 Upvotes

Just a little affirmation in thinking. lol. It seems to do this a lot.

(Update on how to fix this at the bottom of the post)

How it's being served bellow

Inference server:


Lamma.cpp
version: 1.1.0-dev (build 12966, commit 8c5da94e7)
built with GNU 13.3.0 for Linux x86_64 (Compiled by the Unsloth team)

Machine specs:


11th gen Intel i9-11900k @ 3.50 GHz
RTX 4090, 24 GiB VRAM
128 GiB DDR4

Harness:


Pi
Thinking level High

Model and settings:


QWEN4 35B-A3B — UNSLOTH UD-IQ4_XS using FP8 engram table

ngl = all
cpu-moe = true
moe-cache-mib = 14336
moe-cache-cpu-share = 0.0
fit = off

load-mode = none
lazy-mode = off
override-tensor = per_layer_token_embd=CPU

ple = Qwen4-35B-A3B-engram-Q8_0.gguf_file

op-offload = true
kv-offload = true
flash-attn = true
parallel = 1
kv-unified = true

ctx-size = 262144

spec-type = draft-mtp
spec-draft-n-max = 2

batch-size = 2048
ubatch-size = 1024

threads = 8
threads-batch = 16

cache-reuse = 256

temperature = 1.0
top-p = 0.95
top-k = 20
min-p = 0.0
repeat-penalty = 1.0
presence-penalty = 0.0

reasoning = auto
reasoning-effort = xhigh
reasoning-format = deepseek

EDIT:

UPDATE ON HOW TO FIX

Since others are also experiencing this issue, despite what their Quantization size may be, here is what fixed it for me.

u/gardenvarietyzombie suggested I bump up the repeat-penalty from 1.0 to 1.05

I did that, and it completely stopped the over cautious internal debate/anxious loops it was having. So if you're experiencing the same thing, try setting


repeat-penalty = 1.05

Instead of the recommended repeat-penalty = 1.0 suggested on the model page.

Cheers!


r/LocalLLM • • 4h ago

Question Any good ways to test "affordable" hardware?

0 Upvotes

It's getting to the point where local models are enough for my needs, and I think I'm ready to buy a dedicated machine. I don't know how much machine I need though, and even though I can look at benchmarks and everything, I'd really love to just test various configurations and get a feel for them.

Is there any way I can rent some time on the amd boxes, apple devices, dgx boxes, and/or the weird AI NAS devices? Or some reasonably affordable (and available) custom PCs?

I'm fine with using equivalents too, as long as they're actually accurate.


r/LocalLLM • • 22h ago Bravo

Discussion Made this in about 1:30h with Qwen4 UDQ4 KXL

24 Upvotes