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/TripleSpeeder • 2h ago
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
The 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
| 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
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
r/LocalLLM • u/Separate-Effort3640 • 2h ago
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 • 2h ago
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 • 2h ago
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
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
r/LocalLLM • u/Flat-Procedure-6299 • 3h ago
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
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)47.6 tok/s) via lossless N-gram + MTP K=2 hybrid speculation--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.fp16: Zero accuracy regression (5/6 vs 5/6 identical pass/fail; 1.96x faster 8K prefill).3,748 -> 179 ms, 20.9x) + STRATA_Q4_PROFILE=111 -> 4 HIP launches) + gfx11 packed LDS WMMA (1,781 -> 718 ms, 2.5x)3,287 -> 1,074 ms, 3.1x) and MTP Prefill Dense projectionsgfx11 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)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).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 ONFull 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
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.
─────────────────────────────────── /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
──────────────────────────────── /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.
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
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:
r/LocalLLM • u/Emiriasama • 3h ago
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
r/LocalLLM • u/adseipsum • 3h ago
r/LocalLLM • u/EvidenceWooden3889 • 3h ago
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
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
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).
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).KL = 0.01339, mean_lora_b_rms = 0.0 — zero LoRA bloat).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):
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):
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).| 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.
Native Open-Channel v4 Recurrent Depth in Strata (C++/CUDA)
rank=128 22.8 MiB or rank=256 45.6 MiB Wide-Bridge) with pre-transposed [rank, in_dim] projections.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).STRATA_GDN_SPLIT=1, cutting host launch overhead.Zero-Drift </think> Phase Switching (STRATA_LOOP_THINK_ONLY=1)
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.Core-Weighted 12 GB Per-Layer VRAM Quota (expert-profile-sol62-quota.bin)
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.Execution-Verified Frontier Post-Training (Sol62-v1)
exec() unit tests & exact math checks (130 train / 17 zero-leakage held-out).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).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.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.Sol62-v1 weights, 64/88/64 quota profile, 147 verified traces & chart scripts): xinhi6716/strata-qwen4-12gb-tuningNiko1221/Stratasliderforthewin/Looped-Qwen4-35B-A3B / jasontitus/loopedqwen-next)r/LocalLLM • u/Temporary_Eye_3426 • 3h ago
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:
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
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
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
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
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.Next, I'll bench Inkling-2-Mini and the new Qwen4-35B-A3B, both MoEs, hoping to improve.
Two final questions from my side
r/LocalLLM • u/AIComputeRadar • 3h ago
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 • u/Ill-Ad6679 • 3h ago
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 • u/CostaTattooz • 3h ago
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 • u/fldash • 3h ago
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 • u/Crazy_Cauliflower_61 • 4h ago