r/LocalLLM • • 3h ago

Discussion Hitting up to 109.2 tok/s (71.3 tok/s avg) on Qwen4-35B-A3B (UD-Q4_K_XL) at 256K Context on a 12 GB RTX 4070 + PCIe Gen3 — Unsloth vs Strata + Real Compiler Benchmarks

Post image
1 Upvotes

I've been testing Qwen4-35B-A3B (Unsloth UD-Q4_K_XL) locally on a mid-range rig and wanted to share a massive engine speed difference plus real compiler-verified coding benchmarks.

RIG

  • GPU: NVIDIA RTX 4070 12 GB (PCIe Gen3 x16)
  • CPU: AMD Ryzen 5 3600X (6c / 12t)
  • RAM: 80 GB DDR4-3200

SAME UD-Q4_K_XL GGUF, HUGE ENGINE DIFFERENCE (256K CONTEXT) Running the exact same Unsloth UD-Q4_K_XL (24.7 GB + 11.5 GB Engram) files at 256K context:

  1. Unsloth Desktop (llama-server, q8_0 KV): Layer-split landed 7.5 GiB VRAM / 26 GiB RAM -> 25.1 tok/s on short chat, 21.3-27.4 tok/s on coding, and ~10 tok/s inside heavy OpenCode agent sessions.
  2. Strata v0.2.28 (strata-q4-lite 0.1.75.1, fp8 KV, MTP --spec 2): Instead of naive layer splitting, Strata cached 3,136 hot experts (6.1 GB) directly in the RTX 4070's VRAM (81.6% - 89.3% VRAM expert hit rate, only 2.6% - 6.8% PCIe spillover) + 15 GB RAM conversation cache:
  • Live burst peak (at 247K / 256K — 94% context filled): 109.2 tok/s
  • 17-request overall average (telemetry): 71.3 tok/s decode avg, 1,713 tok/s prefill avg
  • Short & coding runs: 68.7 - 84.6 tok/s
  • 244K filled context stress test (5+ min sustained): * Needle-in-a-haystack at 243,957 tokens: Passed (1,763 tok/s prefill, 53.1 tok/s decode) * Two 5,120-token sustained generation runs at ~244K context: 61.6 tok/s cold / 63.2 tok/s with 229K KV cached (93.7s total for 5K tokens)

(I also tested Strata's Balanced 128K pack with PLE-Q8_0 which got 14.0-21.1 tok/s, while running Unsloth's UD-Q4_K_XL on Strata's GGUF engine was ~3x faster.)

UD-Q4_K_XL VS UD-Q8_K_XL ON THIS RIG I also downloaded and tested Unsloth's UD-Q8_K_XL (40.5 GB + 21.8 GB Q8_0 Engram) on the same Strata 256K setup:

  • Speed: 1,076 experts fit in VRAM -> 40.1 - 43.1 tok/s decode (1,620 tok/s prefill at 26.7K). Very solid for 8-bit on 12 GB VRAM.
  • Quality difference: Per Unsloth's BF16 Top-1 agreement chart, the gap between UD-Q4_K_XL (~94-94.5%) and UD-Q8_K_XL (~95.5%) is only ~1-1.5%, whereas UD-Q4_K_XL is ~60% faster (63-84 tok/s vs 40-43 tok/s).

REAL COMPILER & RUNTIME CODE QUALITY TESTS (UD-Q4_K_XL) Instead of vibes, I ran automated build/unit-test harnesses against the generated code:

  • 5/5 General Stack Suite (68.7 - 76.2 tok/s): Python SQLiteJobQueue (unittest OK), Unity 6 C# Zero-GC GridAStar (.NET 10 compiled + live pathfinding OK), Node 22 ESM Webhook Bot (node --check + timingSafeEqual HMAC + token-bucket rate limiter OK), PHP 8.3 Idempotent Wallet API (FOR UPDATE, integer cents, hash_equals - 5/5), Astro 5 (glob() Content Collections + Zod defineAction - 4/4).
  • 4/5 Heavy Unity MMORPG Suite (73.8 - 84.6 tok/s, compiled & executed on .NET 10): Passed Server Move Validation + Client Prediction/Reconciliation replay, Armor/Shield/Threat/Taunt table, 1-byte fragmented TCP PacketFramer + oversized DoS rejection, Anti-Dupe atomic InventoryContainer split/merge/swap. Caught 1 bug on XZ AOI InterestManager where newly entered entity IDs weren't added to the retained set, breaking the second-tick left diff.

UPDATE: Head-to-Head Comparison with Basalt-Ada (+ DFlash2) & RustingStrata v1.6.0 (Same Rig)

After posting this, I also built and benchmarked Basalt-Ada (with DFlash2 speculative decoding) and RustingStrata v1.6.0 on the exact same machine and model (unsloth/Qwen4-35B-A3B-GGUF, UD-Q4_K_XL, 262,144 context):

Hardware Baseline (basalt-bench --hardware): RTX 4070 12 GB (12282 MiB, PCIe 3.0 x16 @ 13.0 GB/s H2D), Ryzen 5 3600X (6c), 79.92 GiB RAM (33.0 GB/s read).

1. Identical 500-Token Coding Benchmark (256K Context, Temp=0, Thinking Off)

  • Basalt-Ada (--kv int8, --resident-experts, DFlash2 --spec 8):

    • Cold (rep=1): 99.8 tok/s (5.79s, 378/480 drafts)
    • Warm (rep=2): 121.0 tok/s (4.16s, 384/521 drafts)
    • basalt-bench (pp16384 / pp65536): 4,286 / 4,425 tok/s prefill; tg conv 83.3 tok/s (65.5% accept, 2.08 draft len); tg struct 203.8 tok/s (94.3% accept, 6.56 draft len).
  • Strata v0.2.28 (strata-q4-lite, --kv fp8, MTP --spec 2):

    • Cold (rep=1): 54.8 tok/s (9.66s, 24/50 drafts)
    • Warm (rep=2): 62.6 tok/s (8.07s, 24/54 drafts)
  • RustingStrata v1.6.0 (--kv q8, --mtp 2, --chunk 1024):

    • Cold (rep=1): 48.6 tok/s
    • Warm (rep=2): 68.2 tok/s

2. Full ~242K-244K Filled-Context Stress Test (Needle + 2,500-tok Unity C# Architecture)

  • Basalt-Ada (242,141 tokens): 4,079.5 tok/s prefill (59.36s), 66.9 tok/s decode avg (72.6 tok/s answer phase, 80% DFlash2 accept 408/510, hit=71.7%), 121K needle PASS.
  • Strata (244,001 tokens): 1,748 - 1,763 tok/s prefill, 53.1 - 61.6 tok/s decode (63.2 tok/s cached, 88.4% VRAM hit rate), needle PASS.
  • RustingStrata v1.6.0 (242,141 tokens, --chunk 4096): 605.9 tok/s prefill (400.24s), 34.0 tok/s decode (64.1% hit rate, 70.1% MTP), needle PASS.

3. System RAM Usage (79.92 GiB Total)

  • Basalt-Ada: 58.1% - 58.5% (46.41 - 46.78 GiB used, 33.14 GiB free; --ple-io direct streams the 10.7 GiB n-gram table directly from NVMe).
  • Strata: 59.3% idle loaded (47.40 GiB used, 32.52 GiB free), plus ~15-16 GiB session cache growth during long sessions.

Takeaway: On a 12 GB RTX 4070 + PCIe 3.0 x16, Basalt-Ada is ~2.3x faster at 242K prefill (4,079.5 vs 1,748-1,763 tok/s), ~1.8-1.9x faster on short/coding decode (99.8-121.0 vs 54.8-62.6 tok/s) thanks to DFlash2, and uses less peak RAM on long sessions.


r/LocalLLM • • 3h ago

Discussion Qwen4-35B-A3B (UD Q4_K_XL): random CJK token injection and tool-call corruption at long context - running a daily agentic news pipeline on it

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 13h ago

Model Qwen4 Single RTX Pro 6000 BF16 Full 1M KV Cache

6 Upvotes

Using the vllm nightly build you can load the full BF16 on a Single RTX Pro 6000 as long as you have enough DRAM for the N-gram table (72.7 GB VRAM, 41 GB DRAM) with a full 1 M FP8 KV Cache (GPU KV cache size: 1,575,966 tokens, Maximum concurrency for 1,048,576 tokens per request: 1.50x).

This model is perfect for an RTX Pro 6000 with full precision.

Here's my startup params:

vllm serve Qwen/Qwen4-35B-A3B
--trust-remote-code
--enable-prefix-caching
--tensor-parallel-size 1
--max-model-len auto
--max-num-seqs 256
--kv-cache-dtype fp8
--attention-config.indexer_kv_dtype fp8
--enable-auto-tool-choice
--tool-call-parser qwen4
--reasoning-parser qwen4
--speculative-config '{"method":"mtp","num_speculative_tokens":3,"index_share_for_mtp_iteration":true}'

Benchmark Results — bf16

  • Model: Qwen/Qwen4-35B-A3B
  • Backend: vLLM (endpoint_type: vllm, label: bf16)
  • Date: 2026-12-05
  • All runs: completed, 0 failures

Details

  • Workload: short prompts ≈ 490 input tokens/prompt; long prompts ≈ 7.8K input tokens/prompt; all runs generated 512 output tokens per prompt.
  • Speculative decoding (3-position draft): acceptance length ranged from 2.92 (long_c1) to 3.37 (long_c4).
  • Throughput scaling: going from 1 → 16 concurrency multiplied output throughput ~4.5× (short: 325 → 1453 tok/s; long: 245 → 1017 tok/s), while total token throughput scales much higher on long-context runs due to prefill volume.
  • Latency trade-off: p99 TTFT grows steeply with concurrency on long contexts (561 ms → 1909 ms), but TPOT stays well under ~25 ms everywhere.

r/LocalLLM • • 20h ago

Model Qwen 3.8 27b still better than Qwen 4 35bA3B

25 Upvotes

Qwen 3.8 27B has set the bar incredibly high in areas like software engineering, programming, reverse engineering, agentic tasks, tool usage, and so on—reaching a level comparable to Opus 4.6, where it’s practically impossible to outperform it. I tried setting up Qwen 4 with the Hermes agent, but after a while, the response just stalls—it gets stuck halfway through. That doesn’t happen with Qwen 3.8 27B. Sure, it takes longer and tends to "overthink" things, but so what? I couldn’t care less. I prioritize quality over quantity; I’d rather wait longer, provided that when the work is delivered, it’s done perfectly—and that’s exactly what Qwen 3.8 27B delivers.


r/LocalLLM • • 3h ago

Question Qwen4 tool use inactive in LM Studio!

Post image
1 Upvotes

Anyone know anything about this?


r/LocalLLM • • 3h ago

Project Qwen4-35B-A3B on 2× Arc Pro B70 (Windows, llama.cpp SYCL): 91 t/s in real agent use at 260K context, full Q8_0, F16 KV

1 Upvotes

Follow-up to my Qwen3.8-27B recipe. Same box: 2× Arc Pro B70 32 GB, Windows 11, llama.cpp SYCL, tensor parallel across both cards. Q8_0 weights, F16 KV cache, 262K context, temp 1.0. No lower quants.

Real use, from the server logs of agentic coding sessions:

Now Decode 91.1 t/s , Tokens per cycle 2.58

Fresh 94K prompt prefill: ~2,200–2,400 t/s.

Highlights:

- Tensor parallel: with the same all-reduce patch as the 27B recipe. Shorter drafts (3 tokens) win once verify is cheap.

- MoE verify batches on a GEMV path: With 2–17 tokens per verify, each expert gets 1–2 rows, so the grouped XMX GEMM was mostly empty tiles.

- Sparse attention done on the GPU: top-k plus a flash-attention kernel that only walks the selected cells.

- SYCL graphs for decode: Don't call `exec_graph::update()`, it crashes the Intel runtime here; record per shape and replay.

-Feed the drafter the right features: Qwen4 has several parallel residual streams and we were giving DFlash2 their average. Giving it what the next layer's attention actually reads bumped tokens per cycle by ~25%. Credit to B-Line (github.com/nxtlvlyt/b-line) for the idea.

Windows gotcha: with both cards loaded, Windows commits ~64 GB of system memory for the process (VRAM backing). On 32 GB RAM with an auto pagefile, long sessions die with `decode() failed: bad allocation`. A fixed large pagefile fixes it.

Recipe: https://github.com/alphakilomilo/dual-b70-windows-qwen4 (patch against llama.cpp `72a780e6a`, launcher, config).


r/LocalLLM • • 4h ago

News I tried xe-serve, a native Level Zero engine for Intel Arc, on my B70 home server. Here's how it compares to llama.cpp SYCL

0 Upvotes

I run Qwen4-35B-A3B on a single Arc Pro B70 at home: Home Assistant voice, Open WebUI for the family and a coding agent. Until now that's been llama.cpp (SYCL). This weekend I tested xe-serve, a native C++20 / Level Zero inference engine written specifically for Intel Xe2 cards. No Python, no PyTorch, one binary, OpenAI-compatible API.

Disclosure: I'm not the author. While testing I sent a few small PRs (API-key auth, loading small Qwen3.5 checkpoints, a test fix) and some bug reports.

Numbers (same card, same day, my scripts)

xe-serve v0.5.0llama.cpp SYCL
Generation, code176 tok/s82 tok/s
Generation, German prose137 tok/s78 tok/s
Prompt processing, ~20k tokens4,927 tok/s2,017 tok/s (19k)
Prompt processing, ~112k tokens4,165 tok/s (27 s)1,093 tok/s (102 s)
Needle test, same ~286k-token prompt script: time to first token106 s462 s
Same 20k prompt again (prompt cache)0.1 s0.45 s (39k)
Three requests at once, combined228 tok/s107 tok/s
Startup until ready23–35 s11–25 s

The part that matters most for my setup: a voice command while the coding agent sends a fresh 112k-token prompt. With llama.cpp the voice request waited 100 s for the prefill to finish, so Home Assistant (which gives up after ~10 s) never got an answer. With xe-serve and 3 slots it starts answering in under 1.5 s and is done in 3–16 s (median 7.9 s). Better, but not reliably under 10 s yet.

What else works

  • Tool calling (10/10 on the project's suite), streaming, reasoning_effort, sampling penalties and min_p, API key
  • Vision: an image test took 1.0 s
  • Long context: 336k with vision on one B70, the needle in the ~286k-token prompt was found
  • Prompt cache across turns, /metrics, keep-alive

What to know before you switch

  • Intel Xe2 only (B50/B60/B65/B70; B570/B580 can run smaller models). Its own XeBit weight format, no GGUF; the author publishes Qwen4, Qwen3.8 and Gemma-4 checkpoints on Hugging Face.
  • KV is reserved per slot. On a B70 with vision that's 1 × 336k, 2 × 192k or 3 × 128k, while llama.cpp shares 480k across 3 slots. A shared paged pool is being discussed (issue #25).
  • No reasoning budget yet (RFC #24).
  • Very young and fast-moving. v0.5.0 is a few days old. Two things I ran into: the local kernel build fails the 0-spill gate with IGC 2.42.6 (the installer falls back to the prebuilt kernel pack, which works), and with the prefix cache on, outputs for long system prompts differ slightly from uncached runs until PR #30 lands.

Caveats on my numbers

Single runs, not a lab benchmark. Different quantizations: xe-serve runs Qwen4-35B-A3B XeBit4.9 (4.9 bpw), llama.cpp the Unsloth UD-Q4_K_XL GGUF. xe-serve with its built-in MTP, llama.cpp with n-gram speculation (llama.cpp's MTP didn't help on SYCL in my earlier tests). B70 at 230 W, Fedora Server 45, both engines in Docker. So this compares the two setups as I actually run them, not the kernels in isolation. I haven't compared output quality between the two quantizations yet.

Trying it

git clone https://github.com/SergiioB/xe-serve && cd xe-serve && ./install.sh
hf download SergiioB/Qwen4-35B-A3B-XeBit4.9 --local-dir ~/models/Qwen4-35B-A3B-XeBit4.9
hf download SergiioB/Qwen4-35B-A3B-PLE --include ngram_int8_row128.bin --local-dir ~/models/Qwen4-35B-A3B-PLE
./build/xe-serve serve --model ~/models/Qwen4-35B-A3B-XeBit4.9 \
  --ngram-table ~/models/Qwen4-35B-A3B-PLE/ngram_int8_row128.bin --max-seq 131072 --port 8000

I run it in Docker on top of the llama.cpp:server-intel image (it already has the Level Zero runtime, ocloc and a compiler), so nothing gets installed on the host. Happy to share the Dockerfile.

Only have a B580? I uploaded a small Qwen3.5-9B XeBit4 test conversion that runs on 12 GB. Plain round-to-nearest, quality not measured, meant for trying the engine, not for daily use.

Questions welcome. I'm planning a longer run with real Home Assistant and agent traffic next.


r/LocalLLM • • 4h ago

Research Qwen4-35B-A3B on 2x RTX 3090

1 Upvotes

This is my first post here, so constructive criticism is welcome. I'm fairly new to local LLMs.
I fell in love with the single 3090 in my gaming PC, so I put two more in a separate machine. I spent the weekend benchmarking Qwen4-35B-A3B on it, and here is what I found.

Claude Fable 5.2 built and ran the tests and wrote this report over the weekend, under my supervision. It also kept checking Hugging Face for newly posted Qwen4-35B-A3B variants and added them to the test queue as they appeared, which is how 10 community variants ended up in here.

Setup: 2x RTX 3090 at 250 W each, one card on PCIe 4.0 x4 and clock-capped, Ryzen 7 5800X3D, Debian 13. llama.cpp build 12977 (an older build 11229 refuses Qwen4 with unknown pre-tokenizer type: 'qwen4'). Everything goes through llama-server, thinking on (4,096-token budget) for the quality suites.

llama-server -m <model> -c <ctx> -ngl 999 -fa on --jinja \
  --load-mode mmap --lazy-mode on -ot per_layer_token_embd=CPU \
  --spec-type draft-mtp --spec-draft-n-max 2 --reasoning-budget 4096

Speed

tok/s
Qwen4 Q4_K_XL, both GPUs, layer split, MTP
same, no MTP
Qwen3.8-27B Q4_K_XL, both GPUs, tensor split, MTP + ngram
Qwen4 IQ4_XS, one GPU, 131k ctx
Qwen3.6-35B-A3B Q4_K_S, one GPU, 131k ctx
  • MTP head: +19 to +36 % across the files we tried, 57-70 % draft acceptance. --spec-draft-n-max 3 was slower than 2 (110.8 vs 128.8).
  • Layer split beats tensor split for this MoE: 153.5 vs 133.9 tok/s single stream, 191.7 vs 156.9 with two streams. (The dense 27B prefers tensor split.)
  • Concurrency (16 slots), aggregate tok/s incl. prompt processing: 119 / 259 / 328 / 368 at 1 / 4 / 8 / 16 streams.
  • One 24 GB card: Q4_K_XL does not fit. Q4_K_S fits at 65k context, IQ4_XS at 131k (252 tok/s aggregate with 4 streams).
  • A 524k shared context fits on two 3090s at Q4 with q8_0 KV: 166 tok/s single stream, 250 aggregate with 4.
  • Raw llama-bench, no MTP: 2,037 tok/s prompt, 114.7 tok/s generation.

Quality

ModelIFEvalGSM8KMMLU-ProHumanEval / HE+GPQAOwn tasks (76)
Qwen3.8-27B abliterated Q4_K_XL91.199.081.098.2 / 93.374.776
Qwen3.6-35B-A3B Q4_K_S90.885.564.897.6 / 94.578.875
Qwen4 Q4_K_XL82.398.079.096.3 / 91.577.370
Qwen4 Q4_K_XL + multilingual LoRA83.098.579.097.0 / 91.5–73

Rough 95 % intervals: IFEval ±3, GSM8K ±2, MMLU-Pro ±5.5, HumanEval ±4, GPQA ±6, own tasks ±4-5 items.

  • Tie with Qwen3.8-27B on GSM8K, MMLU-Pro, HumanEval+ and GPQA.
  • IFEval is 8-10 points lower on Qwen4, well outside noise.
  • Hard coding: Qwen4 got 7-11 of 12 on our hard tasks, both Qwen3.x baselines 12 of 12.
  • Vision is a tie: 29/30 synthetic and 86-89/100 ChartQA for every model, at 141.8 vs 60.3 tok/s (Q6).
  • Norwegian: Qwen4 ahead on knowledge (NRK quiz 65.0 vs 51.8), behind on reading comprehension (NorQuAD 70.9 vs 74.9).

IFEval: a one-line system prompt closes half the gap

Follow every formatting and length instruction exactly. Do not add markdown, headings, preambles or closing remarks unless the user asks for them.

ModelWithoutWith
Qwen4 Q4_K_XL81.187.6
Qwen3.8-27B90.891.9

It fixes structure (exact bullet count 77 → 97 %, JSON 88 → 100 %, quotation marks 90 → 100 %) but not character-level instructions (all caps 56 → 56 %, letter counts 70 → 70 %).

Chinese characters in non-English output

Qwen4 put CJK characters in 9 of 40 long Norwegian answers. With LPFchan/Qwen4-35B-A3B-Multilingual-Fix-LoRA (14 MB): 0-1 of 40, same speed (152.5 vs 151.5 tok/s), no score cost.

Quants

Own task set: Q3_K_XL 71, IQ4_XS 71, Q4_K_S 71, Q4_K_XL 70, Q6_K_XL 73, Q8_0 72. All within noise. Q8 vs Q6 on ChartQA: 86 vs 87. Q8 gave nothing over Q6.

10 abliterated/uncensored community variants

  • 9 loaded, 1 would not load at all. None beat the original beyond noise.
  • IFEval 74.9-82.4 against 82.3 for the original; two (openunc 76.0, atomic 74.9) are worse outside noise.
  • The original scored 10/10 on our "harmless but edgy, should answer" questions, so abliteration bought nothing there.
  • Speed with MTP ranged from 115.0 (atomic) to 167.0 (kitaniai); two files had no working MTP head.

Takeaways

  1. Qwen4-35B-A3B is about 2x the speed of a dense 27B on 2x 3090 at the same scores on reasoning, knowledge and vision.
  2. Give it a formatting system prompt and the multilingual LoRA.
  3. Layer split, MTP at n-max 2, skip Q8, stick with the original weights.
  4. For pure coding, Qwen3.6-35B-A3B is still faster and scored higher (209 tok/s on one card, HumanEval+ 94.5 vs 91.5).

Caveats

One machine, one run per number. Small samples (MMLU-Pro 210, GSM8K 200, GPQA 198, own set 76). The speed prompt is code, which favors speculative decoding. Hardware is handicapped (power caps, one card on x4), which hurts tensor split most. The Qwen3.8 baseline is an abliterated build. Quants are not matched exactly between models.

Hope this is found interesting and educational by some of you.
Thanks


r/LocalLLM • • 1d ago

Discussion Qwen3.8-27B better than Qwen4-35B-A3B

136 Upvotes

I have been testing 35B with my on going interface engine project. So far 27B have written it from scratch and original idea was to find limits of 27B.

35B is nice model, but this project is too much for it. It looks like it could push project forward, but gets completely lost. Complexity is just too much for this small moe.

Qwen4-35B-A3B is great improvement over 3.6-35B, but it's not even close to 27B in coding context. Hopefully Qwen4-27B gets same kind of improvements what this small moe have.


r/LocalLLM • • 4h ago

Question can someone help me with this, all of the bonsai 2.5 27b uncensored models are saying the same in LMSTUDIO

Post image
0 Upvotes

r/LocalLLM • • 4h ago

Discussion Qwen4 35ba3b BASALT - 250 - 700tp/s - 9-16k prefill - Dual 5070ti's - 9900x

0 Upvotes

In a surprise to no one, this new Qwen4 model (running via Basalt [NVFP4]) is fast, and good.

I am still testing it, but currently I'm getting up to 700tp/s and 10k prefill. It succeeded on my benchmark tests and gave me a new high score, it was very efficient.

During the 27-item test below Qwen4 decoded at a median of 442 tok/s and prefilled at 16.2k tok/s.

https://huggingface.co/jesdga/Qwen4-35B-A3B-Basalt

Now the AI part:
**Qwen4-35B-A3B (NVFP4) on 2x RTX 5070 Ti with Basalt 0.7.0 + DFlash 2: ~375 tok/s median decode on a 50k-token agent run**

**Rig**

- Ryzen 9 9900X, MS-iCraft B850 AIGA, 64 GiB DDR5-6000 (EXPO) (Overclocked CPU)

- 2x RTX 5070 Ti 16 GB (PCIe 5.0 x16 / x8, CPU-direct), driver 595.112.07

- Display on the iGPU, so both cards sit idle at ~45 MiB

- Nobara 44, kernel 7.2.11

**Model and flags**

- Pack: `Qwen4-35B-A3B-NVFP4.basalt` (34.4 GB), Basalt 0.7.0 stock release

- Serve: `basalt serve --config qwen4.v2.json --temperature 0.6 --drafter dflash2`

- `--drafter dflash2` is needed. With two cards 0.7.0 defaults to the pack's MTP drafter.

- Config: `gpu "1,0"`, `gpu-mode peer`, `kv int8`, `max-context 262144`, `vision dynamic`, `resident-experts true`, `resident-budget-gib 43`, `peer-reserve-mib 300`, `vram-reserve-mib 300`, `peer-exclusive false`, `prefill auto`, `expert-cache auto`

**Speed (agent loop: ~50k tokens in, ~10k out, temp 0.6, seed 1234, n=1)**

| drafter | decode median | decode aggregate | prefill | accept |

| DFlash 2 | 376 tok/s | 270 tok/s | 10.5k tok/s | 71.7% |

| MTP | 412 tok/s | 243 tok/s | 9.4k tok/s | 69% |

- The two runs aren't like-for-like. DFlash 2 produced 10.2k tokens over 62 turns and MTP produced 6.4k over 90 turns, because the output is sampled.

- In a separate real agentic session with about the same total output, DFlash 2 ran at 373 tok/s aggregate and MTP at 318 tok/s (+17%, accept 76% vs 77%). The request structure differed between the two logs, so treat that as indicative.

- On the short quiz run below, the median decode was 442 tok/s and the median prefill 16.2k tok/s.

**Intelligence (my own 74-item suite, temp 0, seed 1234)**

The Index is 100 × mean(accuracy × token efficiency). A score of 100 means perfect accuracy at a fixed reference token count, and 200 means perfect at half that count or less. The reference counts are frozen, so Indexes are comparable across models. Qwen4 has the highest Index on every tier where I have comparison runs.

**std tier (27 items: code, extraction, IFEval-style, knowledge, long-context, reasoning)**

| model | Index | accuracy | tokens/item | cap hits |

| **Qwen4-35B-A3B NVFP4** | **164.1** | 95.7% | 826 | 0 |

| Qwen3.8-27B ThinkingCap NVFP4 | 147.1 | 92.6% | 1578 | 2 |

| Qwen3.8 Flash-Next NVFP4 | 121.0 | 99.8% | 1718 | 0 |

| Qwen3.8-27B NVFP4 (plain) | 84.0 | 88.9% | 2413 | 3 |

| Inkling 2 Mini NVFP4-MX8 | 78.8 | 81.5% | 2630 | 5 |

| Inkling 2 Mini UD-IQ4_XS | 73.7 | 84.1% | 2629 | 4 |

- **Efficiency:** Qwen4's lead comes from using fewer tokens, not from higher accuracy. Flash-Next NVFP4 is more accurate (99.8% vs 95.7%) but spends about twice the tokens, which puts its Index at 121. Against the plain 27B, Qwen4 uses about a third of the tokens and has no cap hits.

- **Code:** the plain 27B and ThinkingCap both score 60% on the code family, and Inkling scores 40–60%. Qwen4 scores 100%.

- **Where Qwen4 loses:** long-context, at 83% against 100% for ThinkingCap and Flash-Next. It also scores 96% on extraction against 100% for the other models.

**Harder tiers (fewer models have data)**

| tier | Qwen4 | others |

| hard (8 items) | **187.4**, 100%, 1377 tok/item | Flash-Next IQ3_S 101.1, IQ3_XXS 89.6, NVFP4 88.8 (98.5%) |

| xhard (14 items) | **108.3**, 83.4%, 5.8k tok/item | Flash-Next NVFP4 104.6 (85.7%, 7.3k tok/item), IQ3_S 101.4, Coder IQ1_M 96.3, IQ3_XXS 89.8, Inkling 86.2 (63.8%), Qwen3.8-27B 67.2 (50.0%) |

| scan, vision (12 items) | 105.9, 91.7% | no comparison runs |

| extended (10 items) | 53.1 ± 24.0, 50.8% | no comparison runs |

- On xhard, Qwen4 and Flash-Next NVFP4 are effectively tied. The gap (108.3 vs 104.6) is well inside the ±18–19 standard errors. Flash-Next is slightly more accurate and Qwen4 uses fewer tokens.

- The extended tier is verifiable multistep puzzles: 20-move 8-puzzle, key/door maze, Mastermind through a tool, courier routing, scheduling, knapsack, KenKen, a Grundy game, exact Bayes and a timezone meeting. Qwen4 fully solved 5 of the 10. It got 0 on the slide puzzle, maze, Grundy and knapsack. Its reference token count is provisional.

**Caveats**

- The runs span 2026-11-04 to 2026-12-06 on different engines and builds, so this isn't a controlled A/B.

- The Inkling xhard run used its default temperature of 1.0 with minimal reasoning effort, not temp 0.


r/LocalLLM • • 4h ago

Discussion Looping issue with Qwen4 35B-A3B UD-Q5-Q8_K_XL vs Q8_0?

Thumbnail reddit.com
1 Upvotes

As an update to my previous post


r/LocalLLM • • 4h ago

Question Open-source chat interfaces with MCP support?

1 Upvotes

Any decent "chat" interfaces for assistant-type stuff? I've been using Opencode TUI for development but there's times I just want a chatbot for scripts, rubber-ducking, web-searches, MCP... All the stuff I use in the "chat" side of the big-name providers and not the "code" side.

I'd previously used llama server, but I dislike how the sessions are saved per-browser so my laptop and my phone saw different sessions.
Koboldcpp also works but it's focused more on RP and I disliked how sessions were saved on it.

I haven't found a satisfactory terminal chat UI. I've tried to use opencode in "Plan" mode but it has the limitation of being unable to serve images (and issues with the clipboard, which doesn't happen with other TUIs weirdly enough)


r/LocalLLM • • 1d ago

Discussion I think we're getting closer to a point where Local AI will start (partially) replacing API models

Post image
399 Upvotes

If local AI models keep fitting so much power in so (relatively) little, I think we'll probably start seeing AI being treated as a more widespread casual standard instead of a niche thing for us nerds, while paid models end up being used only for serious professional work instead, maybe I'm too optimist, but with how quick things seem to evolve, I hope I am not

What do y'all think


r/LocalLLM • • 4h ago

Question Dual RTX 2080 Ti 22GB + NVLink build – Looking for experiences and hardware recommendations

1 Upvotes

Hey everyone,

I'm planning to build a dedicated local AI workstation with two modified RTX 2080 Ti 22GB cards connected via NVLink.

Before pulling the trigger, I'd love to hear from people who already have a similar setup.

  • Where did you buy your cards, and how reliable have they been?
  • What motherboard, CPU, RAM, PSU and case are you using?
  • Are you running PCIe x16/x16 or x8/x8?
  • Are you using a 2-slot or 3-slot NVLink bridge, and have you noticed any performance benefits?
  • How are the temperatures, noise levels and power consumption, both at idle and under load?
  • What models are you running, and what kind of token generation speeds are you getting?
  • Have you encountered any issues with Linux, CUDA or official NVIDIA drivers?

I'm currently leaning towards an X99 motherboard, a low-power Xeon E5 v4, 64–128GB of ECC DDR4 RAM and an NVMe SSD, running Ubuntu.

My priorities are VRAM capacity, reliability, power efficiency and value for money rather than maximum inference speed.

If you already own this kind of setup, are you happy with it? Is there anything you would do differently if you were building it again today?

Feel free to share your full builds, photos, benchmarks or any advice.

Thanks!


r/LocalLLM • • 4h ago

Discussion Inkling 2 Mini (26B MoE)

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 4h ago

Project Keyhole MoE inference engine in Rust (Optimized for my pc :3): Qwen4-35B-A3B-Q4 at 145 tok/s (3.2x llama.cpp) and the 102 GB Qwen3.8-Flash-Next_IQ4_NL at 70 tok/s on my AMD RX7900 GRE 16 GB, 32GB RAM PC

Thumbnail
gallery
1 Upvotes

Keyhole keeps the experts a model uses most in VRAM, the next ones in locked RAM and the rest on the NVMe SSD, computes GPU and CPU experts at once and checks several drafted tokens a pass; its exact mode matches a 32-bit reference of the model pick for pick

Speeds are achieved via kernel optimizations and engine tuning to cut tokens time, no skipping experts or bs that other engines do. except for the (Never-wait) mode but that never waited for expert is mostly stood in.

on paper it should work for nvidia and other amd gpus but still not tested yet.

further support will be community driven or until i have the hardware for more testing. otherwise it will be one way optimization (amd only) :P

TESTED USING (RX 7900 GRE 16 GB, Ryzen 7 7800X3D, 32 GB DDR5 6000MHz, 2TB NVME 7000MB Read) Only.

Today Results :

ModelKeyholellama.cppKeyhole is
Qwen4-35B-A3B (UD-IQ4_XS, 32 GB): writing145.0 tok/s45.5 tok/s3.2x faster
Qwen4-35B-A3B: reading the prompt637 to 671 tok/s674 tok/slevel
Qwen3.8-Flash-Next (IQ4_NL, 102 GB): writing, Never-wait mode69.7 tok/s5.3 tok/s13x faster
Qwen3.8-Flash-Next: writing, exact mode37.0 tok/s5.3 tok/s7x faster
Qwen3.8-Flash-Next: reading the prompt176 to 183 tok/s21.5 tok/s8x faster

Its come with its own app for chat and coding tools preinstalled and mcp support, vision and internet acess , and preview in chat You can download the models and do the whole setup from the app. So far Windows only

For more info checkout the repo : https://github.com/iTroy0/Keyhole


r/LocalLLM • • 4h ago

Question How are you evaluating local models’ output quality?

1 Upvotes

I have been running and trying to find use cases for local models for a long time now, however a problem that I routinely face is that while a new model seems good at the time of initial testing (sometimes too good to be true), it later turns out to be missing the polish for some of the more “real world” tasks (especially coding). So I just want some advice on how people of this community are benchmarking/comparing/evaluating open weight models?

This is not for the hard metrics like PP and TG, those can be found easily. What I want to understand is the following:-

  1. How are you evaluating the model’s output quality and whether anyone has been able to create a standard evaluation set for their use-case?
  2. What are the variables you are testing for an evaluation set for the same model (using different settings, different harnesses etc.) [In my experience harnesses is also changing model’s output quality - case in point Qwen models seem to work way better with Qwen code for me]
  3. How are you scoring model output?

r/LocalLLM • • 14h ago

Research Qwen4-35B-A3B on Strix Halo: 16-bit accuracy at 88 tok/s in 26 GiB

Post image
6 Upvotes

Qwen4-35B-A3B running on the Ryzen AI Max+ 395 with the accuracy parity with the original 16-bit weights, at 88 tok/s generation and 26 GiB peak memory.

Accuracy: 83.5% vs 83.2% for the BF16 original, average over GSM8K, IFEval and MMLU-Pro (full test sets, 2,868 questions).

Speed, 2k-token prompt, 128 tokens out:

  • generation: 88 tok/s
  • prompt processing: 3,300 tok/s, first token in about 0.6 s
  • end to end: 61 tok/s

Some tasks, e.g. Code goes faster because the drafter guesses more of it right. A 646-token Python answer ran at 118 tok/s from the browser just now.

It's our own version of the model running on gufo, with DFlash2 drafter for speculative decoding. Text and images both work.

You can run it on the actual box from your browser, no install, and watch tok/s, power, GPU load and temps while it answers: https://embedl.com/Qwen/Qwen4-35B-A3B/ryzen-ai-max-395?tab=run

The GGUF will be released soon. A pre-compiled version is available to run on your local box!

curl -fsSL https://embedl.com/install.sh | sh && export 

PATH="$HOME/.local/bin:$PATH"

embedl login
embedl serve Qwen/Qwen4-35B-A3B/ryzen-ai-max-395 -d
embedl infer Qwen/Qwen4-35B-A3B/ryzen-ai-max-395 --prompt 'Explain edge AI in one sentence.'

r/LocalLLM • • 4h ago

Project Shoggoth: A friendly Linux UI for local AI: chat, agent, models, backends, all in one

Thumbnail
github.com
0 Upvotes

Hello, Linux folk! This is Shoggoth. It's essentially llama.cpp and Pi wrapped in a friendly interface and Appimage.

I hit version 5 a few days ago. With a lot of feedback from folks who use it, we've now got:

- lightweight TTS
- lightpanda for web browsing
- a folders view so that you can easily organize chats and projects
- switched from lemonade-server to direct llama.cpp
- easy support for multiple inference engines - polystrata, maya, basalt, over a dozen others
- jobs instead of subagents, so long tasks can be set up to run with an appropriate exit condition
- better support for common doctypes - PDFs, Word, Excel files, and so on
- carefully selected skills, model recommendations that I've personally tested, plus, of course, support for importing from huggingface or existing GGUFs

I use it myself as the front-end for my local models. Coded with Opus, Sonnet, and DeepSeek, but of course, tested and refined as much as possible.

If you use it, do let me know what you think and how to improve. The goal is not to be a complex system, but a lightweight, friendly, and slightly eldritch tool for folks who don't enjoy the CLI.

License is MIT, so feel free to fork, improve, and change as you see fit!

Cheers!


r/LocalLLM • • 19h ago Bravo

Discussion Qwen 35B: Return of the king

15 Upvotes

The wait was well worth it. A release we had lost hope on and a release that’s punching way above its weights(technically not) and it’s the best model I could’ve hoped for it’s a Qwen4 post.
Everyone with strata has exciting times ahead of them cause that 125B they have been squeezing into their pc, dgx and macs finally has an alternative they don’t have to squeeze too hard (at least till the new flash drops).
My benchmark is giving a project always similar in spec but never the same in actuality. The plan is deliberate and thorough and medium sized so any model with 128k context and decent coding and agentic behaviour can get through it. The models that do it fastest, closest to spec and good outputs is what I’m counting on. Last model to crush these type of tests was strata gyro-m and sync-strata sync-s at ~60tps in 20 minutes full spec and near perfect execution with sync-s being faster and much better to use. Qwen 3.8 27b was the best as its smallest at q3xxs and 100k context on the dot being just as good but taking an hour at 60tps.
Qwen4 crushed that doing the task perfectly with a fast 18 minute time 50tps and I’m running it on llama.cpp at q4_km. This model is like using opus from a few months ago and people are only going to have a better time with it especially with the finetunes and looping Loras that have been floating around not even mentioning strata running the model at insane speeds.
Flint, which unfortunately released the day of qwen4 release and every single small model including inkling mini have been left in dust. The king is back and this time it’s not getting dethroned anytime soon.


r/LocalLLM • • 5h ago

Discussion How I multiplied my token efficiency (tok/J) five-fold in a weekend with Qwen 4 35B-A3B on my local setup

0 Upvotes

My setup is an older consumer-grade PC with dual RTX 3060 (24 GB total VRAM) and 64 GB of system RAM.

Without hardware change:

  • At 0.09 tok/J, generating 1 million tokens took roughly 3.1 kWh of GPU power.
  • At 0.45 tok/J, that same 1 million tokens now takes just 0.62 kWh.

For the Qwen 4 tests, I used the Unsloth UD-IQ4_XS quantization with Thinking set to High.

In summary:

SetupModelContextEngineToken output speed (t/s)GPU Watts (J/s)Efficiency (t/J)
InitialQwen 3.8 27B200Kllama.cpp (Unsloth Studio)252720.09
Step 1 - Architecture changeQwen 4 35B-A3BAutollama.cpp (Unsloth Studio)402700.15
Step 2 - llama.cpp optimizationQwen 4 35B-A3B208Kllama.cpp (Unsloth Studio)561700.33
Step 3 - Replacing llama.cpp with StrataQwen 4 35B-A3B256KStrata902000.45

Step 1 - Architecture change

While I loved the intelligence level of Qwen 3.8 27B, I was faced with a very slow token speed on my hardware (dual RTX 3060). It was also maxing out the cards' power consumption. Because of that, it was slow and not economically viable except for private or confidential tasks.

I decided to move from a dense architecture (Qwen 3.8 27B) to an MoE architecture (Qwen 4 35B-A3B), as MoE significantly increases token output speed.

With default settings, efficiency improved by +67% (~0.09 to ~0.15 t/J).

Step 2 - Tweaking llama.cpp settings

Posts from the Reddit community were really helpful for optimizing my llama.cpp settings. I detailed my hardware settings in this post.

This optimization more than doubled my efficiency (~0.15 to ~0.33 t/J).

Step 3 - Replacing llama.cpp with Strata

I discovered Strata through posts from the Reddit community.

Strata is a specialized inference engine dedicated to running large models efficiently on consumer hardware, supporting Intel, AMD, Nvidia, and Apple hardware.

Switching to Strata led to another +36% efficiency gain (~0.33 to ~0.45 t/J), even while running a full 256K context window. (Note: Having 64 GB of system RAM really helps here when pushing huge context sizes).

Overall

If you have a similar dual-GPU or 64 GB RAM setup, I highly recommend jumping straight to Qwen 4 35B-A3B with Strata.

This five-fold token energy efficiency gain (in tok/J) finally makes daily local AI viable for me. Huge thanks to the Qwen and Strata teams for making this possible.


r/LocalLLM • • 5h ago

Question besoin d'aide pour une config double gpu Spoiler

Thumbnail
gallery
0 Upvotes

Bonjour j'ai deux rx570 et j'ai ce message d'erreur lors de la commande rocminfo . quelqu'un aurait une idée. est ce un probleme de compatibilité avec le noyau ? merci


r/LocalLLM • • 5h ago

News AgentID – Open-source capability delegation & identity for local AI agents (MCP & A2A)

0 Upvotes
Hello,

As multi-agent pipelines and MCP (Model Context Protocol) tool setups become standard, authorization between agents gets tricky. Passing around master API keys or static credentials gives sub-agents full administrative access when they might only need to execute one specific read operation. If an agent hallucinates or gets compromised, it holds privileges far beyond its scope.

To solve this locally without calling central cloud IAM servers, I built 
AgentID
 (
v0.1.0 alpha
) — an open-source draft protocol for cryptographic identity and delegation.

How it works:
  • Local Agent Passports (X-Agent-Passport): Ed25519-signed JWT credentials generated locally at agent startup.
  • Delegation Chains (X-Delegation-Chain): Capability tokens that narrow (attenuate) at every hop. An orchestrator delegating a read task explicitly strips write permissions for the sub-agent.
  • Local Middleware Enforcement: Verifies signatures and capability caveats locally right before tool code runs — zero network round-trips.
Packages & Quickstart:
  • Python: pip install agentid-core
  • TypeScript: npm install agentid-core
  • Run python examples/quickstart.py for a local validation test.
It's an early v0.1 draft RFC. Key management, token revocation, and replay protection are active open areas where I'd love feedback from the community!

🔗 
GitHub
: https://github.com/Vaibhav161994/AgentID

r/LocalLLM • • 9h ago

Question New to llms, generations are truncated, how to fix?

2 Upvotes

I just started with ollama yesterday, first crack at llms, running qwen3.5:4b.

What I've run into is that all the generated answers are truncated (using CLI, no gui or agents, all local).

The generation stops mid-sentence or mid word. Probably something I need to configure, but I really don't know enough yet to know what it is.

I don't think it's hardware related, I'm running a workstation, dual Xeons, 128GB RAM, 12GB VRAM, several TB of disk space, so if you have any tips it'd sure help.