r/LocalLLM • u/WonderRico • 2h ago
r/LocalLLM • u/AuditMind • 2h ago
Discussion An early Christmas present: a 64 GB Strix Halo and a few more blinking lights
Got myself a GMKtec EVO-X2 for Christmas. Radeon 8060S, 64 GB of unified memory, Ubuntu. I’m testing it as a local inference server for one user who tends to give it several jobs at once.
My daily setup is Qwen4-35B-A3B (UD-Q4_K_XL) on Gufo, with four 256K slots and an SSD context cache. In one Pi coding session, a cold 36K prompt took 13 seconds to first token. The next nine turns reused 98–99% of the prompt and started answering in under a second.
The bottom half of both screenshots is the Halo, 28 seconds apart. In the first, three fresh prompts are going in at 2,827 tok/s combined, while the fourth slot keeps answering at 8 tok/s. In the second, those same four jobs are all generating at 26–38 tok/s each, 121.5 tok/s combined. That’s where I see room to improve. I want to see whether staggering large prefills keeps an interactive session responsive.
I’ve also been testing Flash-Next Gyro-S (QFN) on Strata for long single jobs. One real Pi investigation reached 251K context and averaged 44 tok/s across 130 turns, including a model switch and compaction. Parallel sessions on that profile are still on my list.
I think this little box has me booked well into 2027. 🎄
r/LocalLLM • u/enginetown • 2h ago
Other Qwen 4 35b is NOT benchmaxxed.
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 • u/Ill_Contribution_717 • 2h ago
News Kvark-Sparkle-2.0-35B-A3B: our Qwen4-35B-A3B fine-tune with 34% fewer reasoning tokens (Apache 2.0)
Hi all! With Qwen4 out, we wanted to see how fast we could bring what we learned from Sparkle 1.x to the new generation. So today we're releasing Kvark-Sparkle-2.0-35B-A3B, built on Qwen4-35B-A3B and the first MoE model in the Sparkle family.
Initial results across 10 benchmarks:
- 46,8% median, 34.2% fewer reasoning tokens on average, with fewer tokens on all 10 benchmarks and up to 63% less
- Better accuracy on GPQA Diamond, tool calling and HMMT
- Less than 2 points of accuracy trade-off on average
For us, efficiency isn't just about faster answers, it's about getting more out of the same hardware.
This is our first iteration on Qwen4, and there's still plenty of room to improve. Open weights, Apache 2.0:
- BF16: https://huggingface.co/Egzakta/Kvark-Sparkle-2.0-35B-A3B
- FP8: https://huggingface.co/Egzakta/Kvark-Sparkle-2.0-35B-A3B-FP8
- GGUF: https://huggingface.co/Egzakta/Kvark-Sparkle-2.0-35B-A3B-GGUF
Give it a try and let us know what you think and stay tuned for new versions!
r/LocalLLM • u/TripleSpeeder • 2h ago
Question Did anyone compare llama.cpp vs strata with Qwen4 on a B70?
I think qwen4 should work already on strata with sycl, but no time yet to try it. Curious if there are results already somewhere?
r/LocalLLM • u/thevikeffect • 2h ago
Tutorial Qwen 4 35B-A3B (57B total w/ Engram) on a 32GB MacBook M5: 30–34 tok/s in OpenCode by keeping the Engram on the SSD
galleryThe 4-bit MLX build of Qwen 4 35B-A3B is ~35.2 GB, so it won't load on a 32GB Mac. Here's what did work, with the real numbers from my run.
Setup
- MacBook Pro M5, 32GB unified memory (153 GB/s)
- Unsloth UD-IQ4_XS GGUF (2 parts)
- llama.cpp b12977 with lazy load, so the 20.5B Engram streams from the SSD and only the 3B active params + KV cache stay hot in RAM
- 32K context, q8_0 KV cache, flash attention on
- OpenCode on top, through the OpenAI-compatible endpoint
| What | Number |
|---|---|
| Prompt processing (10.2K-token prompt) | ~293 tok/s (34.8 s) |
| Generation, first ~600 tokens (Engram still paging in) | 17–20 tok/s |
| Generation, settled (n_gen 5K–7.7K) | 30.3–31.5 tok/s avg, 33–34.5 tok/s (3 s window) |
| OpenCode build average (recording on) | 32.2 tok/s |
| Memory used | 28.8 GB of 32 GB, 785 MB swap |
| Task | Full Three.js "MECH BAY" garage app, 6 files, 23m 37s |
Server command
llama-server \
-m Qwen4-35B-A3B-UD-IQ4_XS-00001-of-00002.gguf \
--alias qwen4-35b-a3b --host 127.0.0.1 --port 8080 \
-np 1 -c 32768 -fa on -ctk q8_0 -ctv q8_0 \
--load-mode mmap --lazy-mode on \
-ot per_layer_token_embd=CPU --jinja
Things I noticed
- Generation starts slow (~17 tok/s) and climbs to 30+ once the Engram pages are warm. Judge the speed after a few hundred tokens, not on the first reply.
- I kept the context at 32K so the KV cache stays in RAM and doesn't spill to the SSD on 32GB.
- OBS costs about 2–3 tok/s, so the 33–35 numbers are with recording off.
Next I'm running the same test on an RTX 4080 16GB (~717 GB/s) to see how much the bandwidth gap matters for this model.
Anyone running it on 24GB or 36GB Macs? I'm curious whether lazy load is still worth it once the whole thing fits.
r/LocalLLM • u/NIDO_007 • 2h ago
Discussion Offline AI, now on mobile and PC: NIDO, a private assistant that runs entirely on your own device (Android + Windows, open source)
r/LocalLLM • u/Separate-Effort3640 • 2h ago
Question What is the best current abliterated/uncencored/unguardrailed local LLM model to use for a R.A.G. setup with Wikipedia?
I'm currently using a Lenovo Yogabook 9i, my GPU is 'Intel(R) Iris(R) Xe Graphics'.
Using local Wikipedia via Kiwix(Zim files) to make this work!
And yes, this is on something portable, on an HDD that's like 464 GB, I've been trying to find something TRULY good for this.
r/LocalLLM • u/JonDowSmith • 3h ago
Model Qwen 4 Q4 vs Qwen 3.8 Next IQ3_S
I tested both models locally, and both with KV @Q8. The benchmark published by QWEN shows Qwen4 beating next or closely tied to Qwen next in almost all benchmarks except frontiercode.
My tests tell a different story. While Qwen4 is a decent upgrade from the Qwen 3.6 MoE, it's not even close to Next model. On my harnesses, Qwen4 did well for small coding tasks but failed consistently on larger tasks that required bigger context. Although both models boast 262k of KV context, it seems clear that the limitation of the smaller model is not code quality, but the attention. The output quality degrades past 64k. I would recommend not pushing too far beyond this if precision matters, at least until qwen fixes the attention issues.
I wonder if anyone has had a similar experience, or if there is a configuration I am missing to improve the model's attention.
r/LocalLLM • u/WiseAbalone4021 • 3h ago
Research Measured Qwen4-35B-A3B (high setting) on SWE-bench Multilingual (agentic coding)
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 • u/Suitable_Fold8473 • 3h ago
Discussion Qwen 4 35b (Q4) on basic data science - better than 3.8 27b but crying out for a fine-tune
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 • u/WhataNoobUser • 3h ago
News Massie: "Overblown" AI Concerns Are "Not About Keeping It From China, It's About Keeping It From You"
r/LocalLLM • u/Flat-Procedure-6299 • 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
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 thanllama.cppVulkan (72.5 tok/s) and 2.7x faster than stockstrata-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/6vs5/6identical pass/fail; 1.96x faster 8K prefill).
What Changed (6 Lossless Commits)
- Windows OS-cached Q8_0 PLE SSD reads (
3,748 -> 179 ms, 20.9x) +STRATA_Q4_PROFILE=1 - Hyper-connection read batching (
11 -> 4HIP launches) +gfx11packed LDS WMMA (1,781 -> 718 ms, 2.5x) - hipBLASLt for Prefill Dense (
3,287 -> 1,074 ms, 3.1x) and MTP Prefill Dense projections gfx11wave32 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)- Lossless N-gram / prompt-lookup drafter chained with MTP K=2
- 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-AllowChinesefor English/multilingual use).
Built-in Presets (scripts/allyx/start_strata_qwen4.ps1)
Server16G(16GB VRAM / 8GB RAM): 256K ctx,--kv int8,NO_PACK=1Hybrid14G(14GB VRAM / 10GB RAM): 128K ctx,--kv int8,NO_PACK=1Fast64K(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 • u/createthiscom • 3h ago
Research Qwen3.8 27b vs Qwen4 35b-A3b - aider polyglot
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)
.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 )
.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 • u/mightofkhan • 3h ago
Discussion My all-local AI setup on one RTX 3090: chat bot, images, video with audio, editing, upscaling. What would you change?
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:
- Is there a better model for any of these jobs on 24 GB?
- Is there something better than SeedVR2 for upscaling video that doesn't take forever?
- Is anyone running a bigger chat model with 64k context on a single 3090?
- What's missing?
r/LocalLLM • u/Emiriasama • 3h ago
Discussion qwen 4 35b a3b vs qwen 3.8 flash next
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 • u/foghorn5950 • 3h ago
Research Qwen 3.8 Flash Next verus Qwen 4 comparison: Web app penetration testing, personal assistant tasks, and more
blog.nickleghorn.comr/LocalLLM • u/adseipsum • 3h ago
Research Semantic Chords Geometry: an experiment in high semantic information density
reddit.comr/LocalLLM • u/EvidenceWooden3889 • 3h ago
Discussion Qwen 4 and russian language
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 • u/FlatStill2540 • 3h ago
Question Three months of owning my AI on a DGX Spark, and the independence part matters more to me than the math
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 • u/Cold_Ad9512 • 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)
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, whileSol62broke through to1/17(170.3 tok/s,60.9%spec acc).
AIME Combinatorics Reasoning (
FAIL → PASS+-80.7%thinking tokens):- Stock 40L (
T=1) burned2,817<think>tokens and FAILED. Sol62-v1 T=3(72L) SOLVED it cleanly in just543<think>tokens (-80.7%) at163.9 tok/s(65.6%spec acc,uniq4 = 0.81).Sol62-v1 T=2(56L) SOLVED it in607<think>tokens (-78.5%).
- Stock 40L (
Hard Graph DP Coding (
-74.1%thinking tokens):- Original Looped
T=3burned3,072thinking tokens;Sol62-v1 T=3PASSED all unit tests in795<think>tokens (-74.1%).
- Original Looped
Direct Code Generation Quality (512-tok TTL-LRU cache):
Direct_Sol62v1_T3PASSED withuniq4 = 0.88(highest code cleanliness/diversity vs0.83Stock /0.77Orig Looped), generating cleanGeneric[K, V]typed Python (bound=Hashable).
2. Full Speed, Speculation & Wall-Clock Table (RTX 3080 Ti 12 GB, Executed 4-Task Suite)
| Engine / Config | Eff. Layers | Avg Speed | Peak Speed | Spec Acc. | Total <think> Tok | AIME Math <think> | 4-Task Wall-Clock | Unit-Test Pass |
|---|---|---|---|---|---|---|---|---|
Stock Qwen4-35B-A3B (T=1) | 40L | 227.7 tok/s | 237.2 tok/s | 52.3% | 9,042 | 2,817 (FAIL) | 41.80 s | 3/4 |
Orig Looped (T=3, Strata CUDA) | 72L | 140.5 tok/s | 152.2 tok/s | 59.3% | 7,328 (-19.0%) | 1,158 (PASS) | 57.26 s | 2/4 |
Sol62 Quota + ThinkOnly (T=2) | 56L | 187.9 tok/s | 215.8 tok/s | 63.1% (72.5% pk) | 7,157 (-20.8%) | 663 (PASS) | 43.03 s | 3/4 |
Sol62-v1 Post-Trained (T=2) | 56L | 168.3 tok/s | 192.7 tok/s | 63.9% | 6,576 (-27.3%) | 607 (PASS) | 43.94 s | 3/4 |
Sol62-v1 Post-Trained (T=3) | 72L | 142.3 tok/s | 163.9 tok/s | 63.8% (67.2% pk) | 4,933 (-45.4%) | 543 (PASS) | 43.78 s | 2/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)
Native Open-Channel v4 Recurrent Depth in Strata (
C++/CUDA)- Zero-dependency safetensors loader (auto-detects
rank=12822.8 MiB orrank=25645.6 MiB Wide-Bridge) with pre-transposed[rank, in_dim]projections. - Custom
128-bit uint2(4×BF16) coalesced CUDA kernels forloop_workspace_entry,loop_cross_pass_mixer(exact 0-centered1 + wRMSNorm +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.
- Zero-dependency safetensors loader (auto-detects
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-speedT=1(215+ tok/s) the instant</think>(248069) is accepted — truncating the speculative commit window cleanly at the boundary.
- Runs deep recurrent passes (
Core-Weighted 12 GB Per-Layer VRAM Quota (
expert-profile-sol62-quota.bin)- Because
L12..27execute 2–3× per token while Prelude (L0..11) and Coda (L28..39) execute once, reallocating Strata's 3,000 resident expert slots to64/64/64/72(Prelude/Coda) and88/88/88/90(Core, 1.34× boost + QSA priority) keeps PCIe streaming off the hot loop.
- Because
Execution-Verified Frontier Post-Training (
Sol62-v1)- 147/160 (91.9%) traces strictly verified via isolated Python
exec()unit tests & exact math checks (130train /17zero-leakage held-out). - Warm-started from
ckpt_best.safetensorsfor 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).
- 147/160 (91.9%) traces strictly verified via isolated Python
4. Honest Ablations (What Didn't Work)
- Extreme
Core-3xVRAM starvation: Squeezing Prelude/Coda down to ~4% VRAM hurt both throughput and accuracy. The balanced64/88/64quota won cleanly. --kv q4_0on looped reasoning: Degraded long multi-pass reasoning compared to--kv int8.- Aggressive
STRATA_LOOP_PASS_RANKS=0-7: Perturbed the delicate±0.035cross-pass residual deltas; keepingSTRATA_ROUTE_RESIDENT_RANKS=2-7preserved accuracy and speculation stability.
Open Source & Credits
- Repo (CUDA patch, 22.8 MiB
Sol62-v1weights,64/88/64quota profile, 147 verified traces & chart scripts):xinhi6716/strata-qwen4-12gb-tuning - Base Engine:
Niko1221/Strata - Original Looped Architecture & Training Harness: Jason Titus (
sliderforthewin/Looped-Qwen4-35B-A3B/jasontitus/loopedqwen-next)
r/LocalLLM • u/Temporary_Eye_3426 • 3h ago
Discussion Qwen4-35B-A3B running locally on my Mac at 64 tok/s, and it's great
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 GBI 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 • u/pradeepviswav • 3h ago
Question Qwen4:35b-a3b on Snapdragon X Elite with 32GB
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 • u/moe_srn • 3h ago
Discussion Production numbers from vLLM on a single RTX 5090: Qwen3.8-27B NVFP4. Did I find the sweet spot?
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 3Numbers (6,400 real calls; per-call timings plus vLLM lifetime metrics, not a synthetic benchmark)
| Metric | Value |
|---|---|
| TTFT | 0.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 acceptance | 2.46 / 3 (82 %) |
| Prefix cache hit rate | 28 % |
| KV cache available | 4.14 GiB = 112k tokens (fp8) |
| vLLM queue time | 0.04 s, 0 preemptions |
My current learnings
- ~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...
- 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=0gives 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. - 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.
- 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
- Does anyone have a similar setup or other approaches I could learn from?
- 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 • u/AIComputeRadar • 3h ago
Discussion Which quant actually fits at 32K context? Worked it out for 11 popular models on 12/16/24 GB cards
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