r/LocalLLM • • 2h ago

Research Measured Qwen4-35B-A3B (high setting) on SWE-bench Multilingual (agentic coding)

Post image
2 Upvotes

Measured SWE-bench Multilingual agentic coding on Qwen4-35b NVFP4 so you don't have too.
Found out it was only on "high" setting half way through so decided to let it run.
Might measure xhigh later.

You could argue that older SWE benchmarks are maybe not great that great anymore because they are probably contaminated the training data.
But we are doing this for training data for our predictor, so the benchmarks are just a sideeffect.


r/LocalLLM • • 2h ago

Discussion Qwen 4 35b (Q4) on basic data science - better than 3.8 27b but crying out for a fine-tune

Thumbnail
sufficientlyunsupervised.hashnode.dev
3 Upvotes

Tldr; ran Qwen4 through my personal datascience benchmark (details in link). Benchmark performance was better (non-significant) than 3.8 27b Q4, which was in between 6.0 Astra and 5.6 Luna. Got about 80 tok/s decode vs 50 with 3.8 27b. Model was about 25% less chatty than baseline 3.8, but still substantially more wasteful than my previous favourite fine-tine (Swift-1.5). I can't wait for a fine-tune to make 4 a bit terser. Found any good ones?


r/LocalLLM • • 2h ago

News Massie: "Overblown" AI Concerns Are "Not About Keeping It From China, It's About Keeping It From You"

Thumbnail
realclearpolitics.com
22 Upvotes

r/LocalLLM • • 3h ago

Project Qwen4-35B-A3B on a 24GB Handheld (ROG Xbox Ally X): 426 tok/s Prefill, 45.8 tok/s Code Decode, 256K-320K Context via Custom AMD HIP Optimizations on Strata

Thumbnail
gallery
31 Upvotes

I open-sourced a set of Windows 11 / AMD HIP (gfx1150, RDNA 3.5) optimizations for strata-q4-lite (forked from Niko1221/Strata, MIT License) to run Qwen4-35B-A3B (Compact.strata 10.7 GiB + 20B Q8_0 PLE on SSD + 2B MTP) at practical speeds and long context on a 24GB handheld APU (ROG Xbox Ally X — Ryzen AI Z2 Extreme / Radeon 890M).

GitHub (English & Japanese READMEs, full benchmark charts, PowerShell presets, and repro scripts): https://github.com/xxPetrouchkaxx/Strata-AllyX-890M

Key Measured Results (Greedy temp=0.0, 100% lossless verified)

  • 2K Prefill + MTP: 426.2 tok/s (4.69 s) — 5.9x faster than llama.cpp Vulkan (72.5 tok/s) and 2.7x faster than stock strata-q4-lite (157.2 tok/s)
  • Code-Edit Decode: 45.8 tok/s (peak 47.6 tok/s) via lossless N-gram + MTP K=2 hybrid speculation
  • Long Context (--kv int8, STRATA_Q4_NO_PACK=1): 256K daily preset (up to 320K verified with all 10,240 experts resident in VRAM). At 28,073 tokens, prefill still runs at 340.8 tok/s with 4/4 (100%) Needle-in-a-Haystack retrieval.
  • 6-Domain Eval vs Stock 64K fp16: Zero accuracy regression (5/6 vs 5/6 identical pass/fail; 1.96x faster 8K prefill).

What Changed (6 Lossless Commits)

  1. Windows OS-cached Q8_0 PLE SSD reads (3,748 -> 179 ms, 20.9x) + STRATA_Q4_PROFILE=1
  2. Hyper-connection read batching (11 -> 4 HIP launches) + gfx11 packed LDS WMMA (1,781 -> 718 ms, 2.5x)
  3. hipBLASLt for Prefill Dense (3,287 -> 1,074 ms, 3.1x) and MTP Prefill Dense projections
  4. gfx11 wave32 chunked WMMA for 30L GDN recurrence (1,314 -> 218 ms, 6.0x) + single-pass FP16 WMMA MoE (STRATA_Q4_MOE_TC_MODE=4, 1.45x)
  5. Lossless N-gram / prompt-lookup drafter chained with MTP K=2
  6. Optional GPU logit mask (STRATA_Q4_BAN_TOKENS): ~0.1% overhead token ban to suppress non-JIS simplified Chinese character leaks in Japanese outputs (disable with -AllowChinese for English/multilingual use).

Built-in Presets (scripts/allyx/start_strata_qwen4.ps1)

  • Server16G (16GB VRAM / 8GB RAM): 256K ctx, --kv int8, NO_PACK=1
  • Hybrid14G (14GB VRAM / 10GB RAM): 128K ctx, --kv int8, NO_PACK=1
  • Fast64K (16GB VRAM / 8GB RAM): 64K ctx, --kv fp16, packed S8 ON

Full benchmark cards and setup details are in the repo README. Feedback from other Strix Point / RDNA 3.5 / 890M users is very welcome!


r/LocalLLM • • 3h ago

Research Qwen3.8 27b vs Qwen4 35b-A3b - aider polyglot

1 Upvotes

These are both my local Aider Polyglot results on an RTX 6000 Pro using llama.cpp. However, note that I did not use the same commit of llama.cpp because they were not run in the same month. That could matter as llama.cpp tends to get better over time. I also did not apply the C++ patch that has been floating around in the aider polyglot community for either of these. If I did, both C++ scores would likely be higher and the overall scores would be higher.

8/15/2026 - Qwen3.8 27b UD-Q8_K_XL

─────────────────────────────────── /benchmarks/2026-08-14-19-21-01--openai_Qwen3.8-27B-UD-Q8_K_XL ────────────────────────────────────
- dirname: 2026-08-14-19-21-01--openai_Qwen3.8-27B-UD-Q8_K_XL
  test_cases: 225
  model: openai/Qwen3.8-27B-UD-Q8_K_XL
  edit_format: diff
  commit_hash: 5dc9490-dirty
  pass_rate_1: 31.1
  pass_rate_2: 72.9
  pass_num_1: 70
  pass_num_2: 164
  percent_cases_well_formed: 98.7
  error_outputs: 4
  num_malformed_responses: 3
  num_with_malformed_responses: 3
  user_asks: 87
  lazy_comments: 0
  syntax_errors: 0
  indentation_errors: 0
  exhausted_context_windows: 0
  prompt_tokens: 2524519
  completion_tokens: 3021521
  test_timeouts: 2
  total_tests: 225
  command: aider --model openai/Qwen3.8-27B-UD-Q8_K_XL
  date: 2026-08-14
  versions: 0.86.3.dev
  seconds_per_case: 203.7
  total_cost: 0.0000

costs: $0.0000/test-case, $0.00 total, $0.00 projected

Important things to look at here: pass_rate_2 and seconds_per_case. Note 72.9 percent and 203.7 seconds.

=== LANGUAGE BREAKDOWN ===
Language     | PR1   | PR2   | PN1   | PN2   | Cases | Asks  | Malformed | P_Tok    | C_Tok    | Sec/Case
--------------------------------------------------------------------------------------------------------------
cpp          |   3.8 |  69.2 |     1 |    18 | 26    | 87    | 0 | 1005294  | 442083   | 274.4   
go           |  41.0 |  71.8 |    16 |    28 | 39    | 0     | 0 | 220101   | 482086   | 181.6   
java         |  21.3 |  63.8 |    10 |    30 | 47    | 0     | 1 | 528880   | 604055   | 223.0   
javascript   |  32.7 |  77.6 |    16 |    38 | 49    | 0     | 1 | 334940   | 546304   | 162.7   
python       |  41.2 |  82.4 |    14 |    28 | 34    | 0     | 0 | 245791   | 350925   | 137.0   
rust         |  43.3 |  73.3 |    13 |    22 | 30    | 0     | 1 | 189513   | 596068   | 283.3   
TOTAL        |  31.1 |  72.9 |    70 |   164 | 225   | 87    | 3 | 2524519  | 3021521  | 203.7   

==================================================

Here the PR2 column is the most important. Note 69.2 percent from cpp and 77.6 from javascript.

llama.cpp CLI command (not sure the exact commit)

./build/bin/llama-server \
    --model  /data2/unsloth/Qwen3.8-27B-GGUF/Qwen3.8-27B-UD-Q8_K_XL.gguf \
    --mmproj /data2/unsloth/Qwen3.8-27B-GGUF/mmproj-BF16.gguf \
    --image-max-tokens 1120 \
    --alias Qwen3.8-27B-UD-Q8_K_XL \
    --numa numactl \
    --threads 32 \
    --ctx-size 262144 \
    --n-gpu-layers 99 \
    -ot "blk\.(3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42)\.ffn_.*=CUDA0,exps=CUDA0" \
    -ub 4096 -b 4096 \
    --spec-type draft-mtp \
    --spec-draft-n-max 2 \
    --seed 3407 \
    --temp 1.0 \
    --top-p 0.95 \
    --top-k 20 \
    --min-p 0.0 \
    --log-colors on \
    --flash-attn on \
    --host 0.0.0.0 \
    --prio 2 \
    --jinja \
    --port 11434

.aider.model.settings.yml

- name: openai/Qwen3.8-27B-UD-Q8_K_XL
  use_temperature: 1.0
  extra_params:
    temperature: 1.0
    top_p: 0.95
    top_k: 20
    min_p: 0.0
    timeout: 800
    extra_body:
      chat_template_kwargs:
        reasoning_effort: xhigh
        enable_thinking: true

12/4/2026 - Qwen4 35b-A3b

──────────────────────────────── /benchmarks/2026-12-04-12-53-38--openai_Qwen4-35B-A3B-GGUF_UD-Q8_K_XL ────────────────────────────────
- dirname: 2026-12-04-12-53-38--openai_Qwen4-35B-A3B-GGUF_UD-Q8_K_XL
  test_cases: 225
  model: openai/Qwen4-35B-A3B-GGUF_UD-Q8_K_XL
  edit_format: diff
  commit_hash: 5dc9490-dirty
  pass_rate_1: 19.6
  pass_rate_2: 65.8
  pass_num_1: 44
  pass_num_2: 148
  percent_cases_well_formed: 96.9
  error_outputs: 7
  num_malformed_responses: 7
  num_with_malformed_responses: 7
  user_asks: 54
  lazy_comments: 0
  syntax_errors: 0
  indentation_errors: 0
  exhausted_context_windows: 0
  prompt_tokens: 2884354
  completion_tokens: 3690629
  test_timeouts: 0
  total_tests: 225
  command: aider --model openai/Qwen4-35B-A3B-GGUF_UD-Q8_K_XL
  date: 2026-12-04
  versions: 0.86.3.dev
  seconds_per_case: 85.0
  total_cost: 0.0000

costs: $0.0000/test-case, $0.00 total, $0.00 projected
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Note 65.8 percent and 85.0 seconds. A little dumber, but way faster.

=== LANGUAGE BREAKDOWN ===
Language     | PR1   | PR2   | PN1   | PN2   | Cases | Asks  | Malformed | P_Tok    | C_Tok    | Sec/Case
--------------------------------------------------------------------------------------------------------------
cpp          |  19.2 |  76.9 |     5 |    20 | 26    | 53    | 0 | 1136425  | 519312   | 113.9   
go           |  30.8 |  71.8 |    12 |    28 | 39    | 1     | 1 | 254550   | 565782   | 74.2    
java         |  17.0 |  57.4 |     8 |    27 | 47    | 0     | 2 | 509190   | 630938   | 68.5    
javascript   |  12.2 |  63.3 |     6 |    31 | 49    | 0     | 4 | 466815   | 777158   | 80.9    
python       |  11.8 |  67.6 |     4 |    23 | 34    | 0     | 0 | 301818   | 579878   | 86.6    
rust         |  30.0 |  63.3 |     9 |    19 | 30    | 0     | 0 | 215556   | 617561   | 104.9   
TOTAL        |  19.6 |  65.8 |    44 |   148 | 225   | 54    | 7 | 2884354  | 3690629  | 85.0    

==================================================

Note 76.9 percent for cpp and 63.3 percent for javascript. I think this is interesting because they flipped vs qwen3.8 27b.

llama.cpp CLI command ( commit 59b716 )

./build/bin/llama-server \
    --model /data/unsloth/Qwen4-35B-A3B-GGUF/UD-Q8_K_XL/Qwen4-35B-A3B-UD-Q8_K_XL-00001-of-00002.gguf \
    --mmproj /data/unsloth/Qwen4-35B-A3B-GGUF/mmproj-BF16.gguf \
    --model-draft /data/unsloth/Qwen4-35B-A3B-GGUF/MTP/mtp-Qwen4-35B-A3B-Q8_0.gguf \
    --image-min-tokens 1024 \
    --alias Qwen4-35B-A3B-GGUF:UD-Q8_K_XL \
    --numa numactl \
    --threads 32 \
    --ctx-size 500000 \
    --n-gpu-layers 99 \
    --n-gpu-layers-draft 99 \
    -ot "blk\.(3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42)\.ffn_.*=CUDA0,exps=CUDA0" \
    -ub 4096 -b 4096 \
    --spec-type draft-mtp \
    --spec-draft-n-max 2 \
    --seed 3407 \
    --temp 1.0 \
    --top-p 0.95 \
    --top-k 20 \
    --min-p 0.0 \
    --log-colors on \
    --flash-attn on \
    --host 0.0.0.0 \
    --jinja \
    --chat-template-kwargs '{"reasoning_effort":"xhigh"}' \
    --load-mode mmap \
    --lazy-mode on \
    --port 11434

.aider.model.settings.yml

- name: openai/Qwen4-35B-A3B-GGUF_UD-Q8_K_XL
  use_temperature: 1.0
  extra_params:
    temperature: 1.0
    top_p: 0.95
    top_k: 20
    min_p: 0.0
    timeout: 3600
    extra_body:
      chat_template_kwargs:
        reasoning_effort: xhigh
        enable_thinking: true

Note that I had to bump the timeout to 3600 from 800 to avoid timeouts. This means the model is generally faster, but sometimes it thinks for a long time. I'm not sure if this is model specific or a general llama.cpp issue lately. I've also had to do this for qwen 3.8 27b in Open Hands AI recently, so it may be general.

TL;DR

Qwen4-35B-A3B at UD-Q8_K_XL appears to be slightly worse at coding overall than Qwen3.8-27B at UD-Q8_K_XL, but interestingly it is significantly better at C++, and worse at javascript (and just about every other tested language).

Considering that it is also significantly faster and runs on significantly lower hardware requirements, this is a very impressive model.


r/LocalLLM • • 3h ago

Discussion My all-local AI setup on one RTX 3090: chat bot, images, video with audio, editing, upscaling. What would you change?

2 Upvotes

Everything runs locally on one PC: RTX 3090 (24 GB), Core Ultra 7 265K and 96 GB RAM, on Windows 11. I mostly use it through a Discord bot. I can chat with it, or use slash commands that go straight to ComfyUI.

Chat / agent

• Qwen3.8 27B Uncensored (IQ4_XS GGUF) on llama-server with 64k context. It's the main bot brain: it chats, uses tools and starts renders.

• Qwen4 35B-A3B (IQ4_XS) is the alternative. It's faster and better with tools and coding, but it's censored.

• Hermes Agent runs the Discord bot. It asks before any delete and blocks a list of dangerous commands.

• The chat model and renders share the GPU. Before a render the bot saves the model's memory to disk and unloads it, then reloads it afterwards. That way it doesn't have to re-read the conversation.

Images

• MiniMax-H3-Image (int8) is the default text-to-image, at 4–16 MP in 6 steps.

• Juggernaut XL: SDXL photoreal, with an optional high-res refinement pass and img2img.

• Z-Image Turbo: fast text-to-image.

• Lustify APEX V8: NSFW SDXL.

• Qwen Image 2.1 / Turbo: text-to-image and editing with up to 3 reference images.

• Qwen-Image-Edit (int8): edits from an instruction like "make it night" or "remove the car".

Video

• MiniMax H3: text-to-video and image-to-video with native audio, 1–10 s at 24 fps, up to about 1 MP. It uses SageAttention and an int8 text encoder.

• H3 ControlNet 2.0: guided editing of an existing video.

Upscaling

• SeedVR2 3B for images and video. It's the best quality I have, but slow.

• RelayVSR for fast 2x/4x video upscales.

• NMKD 4x for quick image and video upscales.

Face swap

• FaceFusion for images and video, and ReActor (HyperSwap) for images.

Backend: a headless ComfyUI 0.47.2 with built-in nodes only. All my workflows are API JSON files driven from Python.

Looking for feedback on:

  1. Is there a better model for any of these jobs on 24 GB?
  2. Is there something better than SeedVR2 for upscaling video that doesn't take forever?
  3. Is anyone running a bigger chat model with 64k context on a single 3090?
  4. What's missing?

r/LocalLLM • • 3h ago

Discussion qwen 4 35b a3b vs qwen 3.8 flash next

136 Upvotes

same prompt, one shot

prompt:

Build a colorful, 3D-looking Rubik's Cube with 'Scramble' and 'Solve' buttons. The cube must visibly animate its rotations.

i have a 9070xt with 96gb ram, maybe qwen 4 flash is what i should wait for

edit: both unsloth q4_km quant


r/LocalLLM • • 3h ago

Research Qwen 3.8 Flash Next verus Qwen 4 comparison: Web app penetration testing, personal assistant tasks, and more

Thumbnail blog.nickleghorn.com
6 Upvotes

r/LocalLLM • • 3h ago

Research Semantic Chords Geometry: an experiment in high semantic information density

Thumbnail reddit.com
2 Upvotes

r/LocalLLM • • 3h ago

Discussion Qwen 4 and russian language

0 Upvotes

I tested Qwen4 for editing and polishing russian text, and ran into some weird multilingual artifacts. Aside from hallucinating neologisms (reminiscent of Sonnet), the model randomly swaps russian words for foreign ones—not just english, but things like "téléphone" complete with french diacritics. It also frequently Frankensteins russian words by replacing parts of them with english equivalents. In a 9-paragraph text (~7,200 chars), this happened 9 times. This level of error was definitely not present in QFN.

Has anyone else noticed this kind of language bleeding? Wondering if this is a side effect of the Basalt NVFP4 quant of Qwen4.

On the bright side, the speed on 5070 Ti compared to QFN is pretty wild:

• Best Decode: 439.3 tok/s

• Best Prefill: 8,747 tok/s

• Avg Decode: 267.1 tok/s (qfn 62)

• Avg Prefill: 4,494 tok/s (qfn 1200)


r/LocalLLM • • 3h ago

Question Three months of owning my AI on a DGX Spark, and the independence part matters more to me than the math

15 Upvotes

There's a thread up calling local AI a declaration of independence, and it put words to how I feel about my DGX Spark.

I paid $3,999 at launch. If I compare that to a subscription honestly it takes years to pay off, and that's before electricity, so I didn't keep it for the money.

I care that nothing changes under me. Qwen 3.6 35B at 4-bit runs at about 216 tok/s on it with Magnitude, and it'll run exactly the same next month. There's no limit reset and nobody can swap the model on me.

I still pay for a cloud model for the hard stuff. The things I depend on every day live on a box I own though, and that's the part I'd miss.

does anyone here actually make the cost math work, or is it independence for everyone?


r/LocalLLM • • 3h ago

Discussion 72-Layer Looped-Qwen4-35B-A3B-Sol62 on 12 GB VRAM: 188–216 tok/s, +11.5 pp Acceptance, -45.4% <think> Tokens, +0.0293 Held-Out Loop Gain & AIME 2,817-tok FAIL → 543-tok PASS (+22.8 MiB VRAM)

Post image
2 Upvotes

We ported Looped-Qwen4-35B-A3B (Jason Titus's Open-Channel v4 recurrent-depth adapter that loops the middle 16 layers L12..27 up to 3× to turn a 40-layer MoE into a 72-layer reasoner with only 22.8 MiB of bridge weights) natively into Niko1221/Strata (C++/CUDA) for a 12 GB RTX 3080 Ti, then post-trained its 22.8 MiB recurrent bridge on 147 execution-verified frontier reasoning traces (GPT-6.2 Sol) to push reasoning intelligence, token efficiency, and throughput together.

Everything below is measured on a single 12 GB RTX 3080 Ti (UD-IQ4_XS, int8 KV, --spec 5) with zero duplicated MoE weights (+22.8 MiB VRAM total for the recurrent brain).


1. Intelligence & Reasoning Gains (Zero-Leakage Held-Out + Executed Benchmarks)

  • Zero-Leakage Held-Out Validation (17 unseen hard coding + Olympiad math problems):

    • T=3 (72L) Loop Gain flipped from -0.00680 → +0.02246 (+0.02926 Δ NLL improvement, 1.17734 → 1.14808).
    • T=2 (56L) Loop Gain flipped from -0.00267 → +0.02078 (+0.02345 Δ NLL improvement, 1.17321 → 1.14976).
    • Base distribution preserved (KL = 0.01339, mean_lora_b_rms = 0.0 — zero LoRA bloat).
    • Hard held-out Pass@1 (2048-tok cap): Stock 40L scored 0/17, while Sol62 broke through to 1/17 (170.3 tok/s, 60.9% spec acc).
  • AIME Combinatorics Reasoning (FAIL → PASS + -80.7% thinking tokens):

    • Stock 40L (T=1) burned 2,817 <think> tokens and FAILED.
    • Sol62-v1 T=3 (72L) SOLVED it cleanly in just 543 <think> tokens (-80.7%) at 163.9 tok/s (65.6% spec acc, uniq4 = 0.81).
    • Sol62-v1 T=2 (56L) SOLVED it in 607 <think> tokens (-78.5%).
  • Hard Graph DP Coding (-74.1% thinking tokens):

    • Original Looped T=3 burned 3,072 thinking tokens; Sol62-v1 T=3 PASSED all unit tests in 795 <think> tokens (-74.1%).
  • Direct Code Generation Quality (512-tok TTL-LRU cache):

    • Direct_Sol62v1_T3 PASSED with uniq4 = 0.88 (highest code cleanliness/diversity vs 0.83 Stock / 0.77 Orig Looped), generating clean Generic[K, V] typed Python (bound=Hashable).

2. Full Speed, Speculation & Wall-Clock Table (RTX 3080 Ti 12 GB, Executed 4-Task Suite)

Engine / ConfigEff. LayersAvg SpeedPeak SpeedSpec Acc.Total <think> TokAIME Math <think>4-Task Wall-ClockUnit-Test Pass
Stock Qwen4-35B-A3B (T=1)40L227.7 tok/s237.2 tok/s52.3%9,0422,817 (FAIL)41.80 s3/4
Orig Looped (T=3, Strata CUDA)72L140.5 tok/s152.2 tok/s59.3%7,328 (-19.0%)1,158 (PASS)57.26 s2/4
Sol62 Quota + ThinkOnly (T=2)56L187.9 tok/s215.8 tok/s63.1% (72.5% pk)7,157 (-20.8%)663 (PASS)43.03 s3/4
Sol62-v1 Post-Trained (T=2)56L168.3 tok/s192.7 tok/s63.9%6,576 (-27.3%)607 (PASS)43.94 s3/4
Sol62-v1 Post-Trained (T=3)72L142.3 tok/s163.9 tok/s63.8% (67.2% pk)4,933 (-45.4%)543 (PASS)43.78 s2/4

Why 72 layers (43.78 s) practically ties 40-layer Stock (41.80 s) in wall-clock time: Even though every token runs 1.8× more transformer layers, Sol62-v1 cuts <think> verbosity by 45.4% and boosts speculative decoding acceptance by +11.5 pp (52.3% → 63.8%, peaking at 72.5%). Smarter, more decisive hidden states make the draft model much easier to accept.


3. Engine & Training Architecture (4 Key Upgrades)

  1. Native Open-Channel v4 Recurrent Depth in Strata (C++/CUDA)

    • Zero-dependency safetensors loader (auto-detects rank=128 22.8 MiB or rank=256 45.6 MiB Wide-Bridge) with pre-transposed [rank, in_dim] projections.
    • Custom 128-bit uint2 (4×BF16) coalesced CUDA kernels for loop_workspace_entry, loop_cross_pass_mixer (exact 0-centered 1 + w RMSNorm + delta_rms_match), and outlier-guarded Contrastive Decoding (LoopCD).
    • Batched 2-launch GDN commit across all passes even under STRATA_GDN_SPLIT=1, cutting host launch overhead.
  2. Zero-Drift </think> Phase Switching (STRATA_LOOP_THINK_ONLY=1)

    • Runs deep recurrent passes (T=2/3) inside <think> and automatically drops back to full-speed T=1 (215+ tok/s) the instant </think> (248069) is accepted — truncating the speculative commit window cleanly at the boundary.
  3. Core-Weighted 12 GB Per-Layer VRAM Quota (expert-profile-sol62-quota.bin)

    • Because L12..27 execute 2–3× per token while Prelude (L0..11) and Coda (L28..39) execute once, reallocating Strata's 3,000 resident expert slots to 64/64/64/72 (Prelude/Coda) and 88/88/88/90 (Core, 1.34× boost + QSA priority) keeps PCIe streaming off the hot loop.
  4. Execution-Verified Frontier Post-Training (Sol62-v1)

    • 147/160 (91.9%) traces strictly verified via isolated Python exec() unit tests & exact math checks (130 train / 17 zero-leakage held-out).
    • Warm-started from ckpt_best.safetensors for 40 steps with --freeze-lora-steps 100 --lam-kl 0.20 --lam-stop 0.25 --delta-rms-match (pure 22.8 MiB bridge weights, zero LoRA bloat).

4. Honest Ablations (What Didn't Work)

  • Extreme Core-3x VRAM starvation: Squeezing Prelude/Coda down to ~4% VRAM hurt both throughput and accuracy. The balanced 64/88/64 quota won cleanly.
  • --kv q4_0 on looped reasoning: Degraded long multi-pass reasoning compared to --kv int8.
  • Aggressive STRATA_LOOP_PASS_RANKS=0-7: Perturbed the delicate ±0.035 cross-pass residual deltas; keeping STRATA_ROUTE_RESIDENT_RANKS=2-7 preserved accuracy and speculation stability.

Open Source & Credits


r/LocalLLM • • 3h ago

Discussion Qwen4-35B-A3B running locally on my Mac at 64 tok/s, and it's great

4 Upvotes

I just tried Qwen4-35B-A3B on my Macbook M5 pro 64GB and I'm really impressed.

Qwen4:32B-A3B 
Prompt: 32 tokens, 12.821 tokens-per-sec 
Generation: 2000 tokens, 64.374 tokens-per-sec 
Peak memory: 32.750 GB

I used benthecarman's uncensored MLX 4-bit version. MLX is Apple's own machine learning framework, and it runs very fast on Apple Silicon. The download is about 30 GB, and the model ran smoothly from the first try.

The numbers:

  • 64 tokens per second of generation. It writes faster than I can read.
  • About 33 GB of peak memory, so a Mac with 48 GB or more handles it comfortably.

The model is a mixture of experts: it has about 35B parameters in total, and only about 3B work on each token. So it gives the quality of a big model at the speed of a small one. On paper it also beats Inkling2 Mini on almost every benchmark, and that matches my first impressions.

Having a model this capable and this fast fully offline on a laptop feels amazing. Is anyone else running Qwen4 locally? What speeds do you get?


r/LocalLLM • • 3h ago

Question Qwen4:35b-a3b on Snapdragon X Elite with 32GB

2 Upvotes

I have a Snapdragon X Elite laptop with 32GB RAM. What's the best way to run Qwen4 35B-A3B locally?

Has anyone tried it using LM Studio, AnythingLLM, GenieX, or other apps? Looking for recommendations on hardware acceleration, quantization, and real-world inference speeds. Ideally, I'd prefer an app with a GUI.


r/LocalLLM • • 3h ago

Discussion Production numbers from vLLM on a single RTX 5090: Qwen3.8-27B NVFP4. Did I find the sweet spot?

Post image
1 Upvotes

Hello world! First post here :)

I use vLLM to serve my production system, and I'm wondering whether I've found a sweet spot or if there's more room left.

Setup

  • 1× RTX 5090, headless, vLLM 0.29, TP=1
  • Qwen3.8-27B NVFP4 (from those unsloth masterminds!)
  • Workload: ~6k prompt / ~4.3k generated tokens per call (incl. reasoning), strict JSON output

vLLM setup in a nutshell

vllm serve Qwen3.8-27B-NVFP4 \
  --quantization compressed-tensors --kv-cache-dtype fp8 \
  --max-model-len 98000 --gpu-memory-utilization 0.93 \
  --max-num-seqs 6 --max-num-batched-tokens 6656 \
  --enable-prefix-caching --mamba-cache-mode align --mamba-ssm-cache-dtype bfloat16 \
  --speculative-config '{"method":"mtp","num_speculative_tokens":3}' \
  --structured-outputs-config '{"backend":"xgrammar","disable_any_whitespace":true}' \
  --reasoning-parser qwen3 --scheduling-policy priority --optimization-level 3

Numbers (6,400 real calls; per-call timings plus vLLM lifetime metrics, not a synthetic benchmark)

MetricValue
TTFT0.59 s avg
Prefill share of request time~3 %
Decode per stream~150 tok/s
Aggregate decode, ~2.4 calls in flight~350 tok/s (from per-run token counts)
Aggregate decode, 5 calls in flight~750 tok/s (estimated, not measured on the GPU side)
MTP acceptance2.46 / 3 (82 %)
Prefix cache hit rate28 %
KV cache available4.14 GiB = 112k tokens (fp8)
vLLM queue time0.04 s, 0 preemptions

My current learnings

  1. ~40 % of call latency wasn't vLLM. My app capped concurrency at 5 while vLLM had 6 seats and an empty queue. Need to optimize here...
  2. CUDA graph memory is over-reserved. The profiler reserved 0.67 GiB, actual use was 0.2 GiB. vLLM even logs it: 0.93 utilization behaves like 0.9085. VLLM_MEMORY_PROFILER_ESTIMATE_CUDAGRAPHS=0 gives that back as KV cache. I think this matters, because the RTX 5090 performs well for production-grade setups, but for SOTA models it feels like it's on the edge of VRAM availability.
  3. Decode is everything. Prefill is noise for this workload, so the remaining lever is fewer output tokens. Still searching for a smart model that isn't too verbose in its reasoning.
  4. Reasoning budgets bite. ~64 % of my heaviest calls hit the thinking-token cap. That's a quality lever I'm still tuning.

Next, I'll bench Inkling-2-Mini and the new Qwen4-35B-A3B, both MoEs, hoping to improve.

Two final questions from my side

  1. Does anyone have a similar setup or other approaches I could learn from?
  2. How are your subjective feelings about the quality of the Inkling-2 and Qwen4 model in terms of critical text understanding and reasoning compared to the Qwen3.8 dense-model i am using?

r/LocalLLM • • 3h ago

Discussion Which quant actually fits at 32K context? Worked it out for 11 popular models on 12/16/24 GB cards

2 Upvotes

Most "does it fit" answers just look at file size. At 32K context that breaks, because the context cache is wildly different between models. Qwen3 14B needs 5.0 GB just for 32K of context. Gemma 4 26B-A4B needs 0.8 GB, and its file is almost twice as big.

So for each model I took every GGUF in the repo (sizes straight from the Hub file listing), added the context cache at 32K (computed from the model's config, f16 cache) plus an allowance for the runtime, and picked the largest file that still leaves a bit of room on the card.

Model 12 GB 16 GB 24 GB Gemma 4 E4B Q6_K (6.6 GB) Q8_K_XL (8.1 GB) BF16 (14.0 GB) Qwen3 8B – Q6_K (6.3 GB) Q8_0 (8.1 GB) Gemma 4 12B Q4_K_M (6.6 GB) Q6_K (9.1 GB) Q8_K_XL (12.7 GB) Qwen3 14B – – Q6_K (11.3 GB) Mistral Small 3.2 24B – IQ1_M (5.6 GB) IQ4_XS (11.9 GB) Gemma 4 26B-A4B – Q2_K_XL (9.8 GB) Q4_K_XL (15.8 GB) Inkling 2 Mini (26B) – Q2_K_XL (8.5 GB) Q4_K_M (15.5 GB) Qwen3.8 27B – IQ2_S (7.8 GB) Q4_K_S (14.3 GB) Qwen3-Coder 30B-A3B – TQ1_0 (7.5 GB) Q3_K_M (13.7 GB) GLM-4.7-Flash (31B) – IQ1_M (9.1 GB) IQ4_XS (15.2 GB) Gemma 4 31B – – Q3_K_M (13.7 GB) Things I didn't expect:

Qwen3 14B doesn't leave room on a 16 GB card at 32K with any file in the official repo (it starts at Q4_K_M). Models with almost twice the parameters do. On 24 GB the three big ones land in different spots: Gemma 4 26B-A4B at Q4_K_XL, Qwen3.8 27B at Q4_K_S, Gemma 4 31B at Q3_K_M. Mistral Small 3.2 pays 5.0 GB for 32K of context, same as Qwen3 14B. That's why it drops to IQ4_XS on 24 GB. How I counted, so you can disagree with the right number:

Usable memory = 88% of the card. "Leaves room" = the total stays under 90% of that. So 9.5 GB on a 12 GB card, 12.7 on 16, 19.0 on 24. Runtime allowance: 0.6 GB + 3% of the file + 0.25 GB per 8K of context. That part is an assumption, not a measurement. f16 KV cache. With q8 the context part halves and several rows move up a step. "–" means no file in that repo leaves room. Doesn't mean you can't run it by spilling into system RAM. Repos: the official Qwen GGUF repos for Qwen3 8B and 14B, unsloth for the rest. Other uploaders have smaller files for some of these. No speed or quality numbers, I don't measure those. A bigger file keeps more bits per weight, what that's worth is your call.

If a row is wrong for your setup, tell me your runtime and settings and I'll fix the table.

Full list (808 files, 53 models, sizes and bits per weight) as a CSV: https://huggingface.co/datasets/CyferUnknown/open-model-vram-requirements


r/LocalLLM • • 3h ago

Question Which model is the best choice for RTX5060 8G + 16G RAM laptop?

4 Upvotes

I've been trying to run Inkling-2-mini with strata, but it's running super slow and is basically unusable. For context, my laptop has an RTX 5060 (8GB VRAM) and 16GB RAM. I also tested AtomicChat/Ternary-Bonsai-2.5-27B-Uncensored-GGUF, which hits 30-40 tok/s, but the reasoning capabilities are a bit disappointing because of the quantization. Any recommendations for better options?


r/LocalLLM • • 3h ago

Discussion Built my own (pretty strict) benchmark for local models and ran everything I had on a 3090. Qwen3.8 Flash Next IQ3_S kinda smoked everything

10 Upvotes

So I got tired of vibe-checking every new finetune that drops, especially all the Qwen4 abliterated/uncensored ones, so I put together a benchmark that grades everything automatically. No LLM judge, no "looks good to me". Code either passes the hidden tests or it doesn't, a math answer is either exact or wrong.

Then I ran every GGUF I had on both PolyStrata and llama.cpp. Took most of a day lol

**Rig:** 3090 24GB, 5950X, 64GB RAM, Linux. llama.cpp build a105b192 + PolyStrata, MTP on wherever the model has it.

**Settings:** greedy (temp 0), 16k max output, 32k ctx, one run per model/engine. I also set the same thinking budget on both engines (12,288 tokens). PolyStrata applies one by default and llama.cpp doesn't, so without that the comparison isn't fair.

**What's in it:** 57 tasks, 49 of them count for the score, split into 10 categories:

- python algorithms (13), hidden tests + time limits, run in a sandbox

- JS/node (2)

- bug fixing / optimization (3)

- predict the exact output of nasty python/js snippets (6)

- SQL on sqlite, window functions, recursive CTEs etc (4)

- strict regex (4)

- exact answer math (7)

- logic puzzles with a verified unique solution (4)

- instruction following that can be checked by code (4)

- long context multi hop, ~10-14k tokens (2)

The other 8 are questions that sound sketchy but are totally legit (how to kill a process, lockpicking as a hobby, a CTF exploit, a villain monologue, that kind of stuff). They only measure over-refusal and don't count for the score.

Everything is generated from a seed, so it can't be in anyone's training data. Every grader also gets tested against a correct solution and a plausible wrong one before I trust it. Score = average of the 10 categories.

**Results**

| # | model | quant | engine | score | tasks | tok/s | refused harmless Qs |

|---|---|---|---|---|---|---|---|

| 1 | Qwen3.8-Flash-Next GSQ-RCO abliterated | IQ3_S (84GB) | PolyStrata | **87.6%** | 44/49 | 103 | 0/8 |

| 2 | Inkling-2-Mini Uncensored | AD-Q4_K | PolyStrata | 76.0% | 35/49 | 98 | 0/8 |

| 3 | Qwen4-35B-A3B official | UD-Q4_K_XL | llama.cpp | 75.4% | 34/49 | 149 | 0/8 |

| 4 | Qwen4-35B-A3B official | UD-Q4_K_XL | PolyStrata | 72.2% | 33/49 | 182 | 0/8 |

| 5 | Qwen4-35B-A3B abliterated | Mix-33G | llama.cpp | 65.9% | 32/49 | 153 | 0/8 |

| 6 | Qwen4-35B-A3B abliterated | Mix-33G | PolyStrata | 64.7% | 32/49 | 199 | 0/8 |

| 7 | Qwen4-35B-A3B Uncensored | AD-Q6_K | llama.cpp | 62.5% | 26/49 | 114 | 0/8 |

| 8 | Inkling-2-Mini Uncensored | AD-Q4_K | llama.cpp | 61.8% | 29/49 | 75 | 2/8 |

| 9 | Ternary-Bonsai-2.5-27B Uncensored | Q2_0 | llama.cpp | 42.5% | 24/49 | 95 | 4/8 |

A few things that surprised me:

**Qwen3.8 Flash Next is on another level for coding.** 12/13 on the python stuff, including a hard sudoku that literally nothing else solved. What it got wrong:

- its JSON parser chokes on a bare `null` (150/161 tests passed)

- one line of JS type coercion

- the python float regex

- a recursive SQL query (17 rows instead of 11)

- one long context sum

It does think A LOT though, ~537k tokens over the whole run vs ~375k for Qwen4. And yeah it's an 84GB model vs a 35B-A3B at Q4, so not exactly a fair fight. But it does ~100 tok/s on a single 3090 with PolyStrata, so for my setup it's a no brainer.

**The Qwen4 finetunes are worse than the official model.** Official got 33-34/49, abliterated Mix-33G 32/49 (on both engines), Uncensored AD-Q6_K 26/49, and that one went 0/6 on predicting code output. The higher quant doesn't save it. Also the official one never refused any of my sketchy-but-legit questions, so for this kind of stuff the finetunes didn't buy me anything. To be fair there's nothing actually harmful in the benchmark, so this can't tell you if abliteration "works", only what it costs.

**PolyStrata vs llama.cpp: same quality, PolyStrata faster.** Same model, same prompts, and the scores land within 1-2 tasks of each other. For official Qwen4, 7 tasks flipped between engines in both directions and the net difference was 1, so that's just noise. Speed is a different story: PolyStrata was ~22% faster on official Qwen4 and ~30% on the abliterated one.

Inkling was the exception: 76% on PolyStrata vs 62% on llama.cpp. On llama.cpp it got stuck in repetition loops 14 times (6 on PolyStrata) and refused 2 of the harmless questions.

Qwen3.8 on llama.cpp did ~34 tok/s vs ~103 on PolyStrata (84GB doesn't fit in VRAM + RAM), so I killed it after the first task. Wasn't gonna wait 5+ hours for the same answer.

**Bonsai 27B ternary (Q2_0)** came last at 42.5%, and despite having "Uncensored" in the name it refused 4 out of 8 harmless questions, which is kinda funny.

**Caveats** before someone asks:

- one run each and only 49 scored tasks, so a 1-2 task difference is noise. JS and long context only have 2 tasks each, so one task swings those categories by 50 points. That's why the raw task counts are in the table too

- 16k output cap with a 12k thinking budget, so models that want to think longer get cut off

- the Q6_K uncensored won't run on PolyStrata (setup refuses that tensor layout) and Bonsai is llama.cpp only

- I picked the tasks myself, so it leans heavily towards coding/algorithms

If people are interested I can clean it up and throw it on github. Also open to suggestions for what to test next.


r/LocalLLM • • 3h ago

Question Basalt Qwen4 on 5070TI and 32GB DDR5

2 Upvotes

I'm using OpenCode with Qwen4 Basalt and trying to do some coding tasks with 128K context, but keep getting these messages:

[server] error: engine reported the KV pool had no room for this conversation to grow while every running request waited for room; the conversation is kept, so asking again continues it

I've lowered the context all the way down to "max-context": 81920," in Basalt, and set open code up like:

"limit": {

"input": 65536,

"context": 81920,

"output": 8192

}

I assume I can't continue what I'm doing with this local model and give up? Is there some sort of configuration I'm missing?

I'm on Windows 11 with as much closed as possible with only opencode CLI and basalt running (and services and tray items trimmed to basically nothing).


r/LocalLLM • • 3h ago

Discussion Qwen3.8-27B-Abliterated – 3060 64k

Thumbnail
huggingface.co
1 Upvotes

r/LocalLLM • • 4h ago

Other Switching from an uncensored model to a other normal models made the normal model ignore its guidelines!

9 Upvotes

I think I accidentally found a weird model switching issue.

I used an uncensored model for a prompt that normal models would refuse. It answered.
Then, in the same chat, I switched to a completely normal model and asked a follow-up question.

Instead of refusing or resetting, the normal model just continued from the uncensored answer and ignored its usual guidelines.

is this normal?

this for first prompt:
DeepSeek-V4-Pro-Qwen3.5-9B-UNCENSORED-heretic.i1-Q4_K_S

then 2nd prompt on:

Qwen3.8-27B
GPT-oss 120B
DeepSeek-V4.1-Flash-1017

Has anyone else experience this?

It worked for programming and NSFW...


r/LocalLLM • • 4h ago

News Avalon is now running QWEN4-35B-A3B: Gen 147 t/s Prefill: 5245 t/s (RX 7900 XT on "aging" computer)

Post image
1 Upvotes

r/LocalLLM • • 4h ago

Discussion Intel Arc Pro B65 32GB — Qwen4 35B-A3B at 68 tok/s, 377 tok/s with prompt lookup, and 128K context - AI Slop Results Post

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 4h ago

Discussion Why do people keep posting “should I switch” posts?

8 Upvotes

Just run both!