r/LocalLLaMA • • 6h ago

Discussion Comments on Minimax 4.1from head if DevRel at Minimax 😳

Post image
421 Upvotes

r/LocalLLaMA • • 8h ago

Discussion I let Qwen4 run overnight on my 5070 Ti. 3.87 million tokens later...

Post image
279 Upvotes

So yesterday I decided to leave my local coding agent running overnight on an actual Godot project instead of doing more benchmarks.

Went to sleep, got milestone notifications on my phone and woke up to some pretty interesting results.

My hardware is nothing crazy:

  • RTX 5070 Ti 16GB
  • Ryzen 7 5700X
  • 32GB DDR4
  • Windows 11

Running Qwen4-35B-A3B UD-IQ3_XXS with a Strata fork, Pi as the coding agent, 128K context, INT8 KV cache, MTP and BF16 vision.

I also built a custom orchestration layer for autonomous missions, Git checkpoints, QA, recovery and notifications.

The overnight run:

  • 8h 33m total runtime
  • 3.87M generated tokens
  • 180.2 t/s median decode
  • 928.9 t/s median prefill
  • 66.5% MTP acceptance
  • 2,794 inference requests
  • 72 Pi sessions
  • 111K maximum actual context
  • 20 integrated milestones

Now the less impressive part lol. 21 milestones were deferred, and around 61% of the generated tokens went into deferred work. Also, 81% of output tokens were reasoning.

Clearly there's a lot of room to improve the harness rather than just chase more t/s.

Everything was running locally, apart from web research and phone notifications.

I'm genuinely curious if anyone else is doing overnight coding runs like this on consumer hardware. How are you handling context management, reasoning budgets and failed missions?

Getting 180 t/s is great, but getting those tokens to actually do useful work seems to be the much harder problem.


r/LocalLLaMA • • 2h ago

Discussion Don't use Strata quants for Qwen4, or at least the Compact one

74 Upvotes

It goes without saying that you should always prefer quants from Unsloth or other reputable creators, but I think it's worth taking a peek at one of Strata's own quants, and things are not looking good.

Here is a response from the "Compact" variant for Qwen4-35B-A3B someone shared with me recently (no comment):

Output from a Qwen 4 quant that is constantly repeating Hmm.

According to the official documentation, the Compact quant has on average 2.13 bits per weight. For comparison, engram excluded, the smallest Unsloth quant for the same model, UD-IQ1_S, has bpw at 2.23, and UD-IQ3_XXS sits at 3.92.
If you read Strata's own description for their Qwen 4 quants, it claims Compact picks the same next word as the original 89% of the time.
However, and this left me astonished, this is based on 36 test prompts.
Niko, if you are reading this, dude, WTF? This is not even close to being a statistically significant test sample! There is a reason Unsloth still hasn't published benchmarks for their quants - accurate results take a lot of testing and time, even with Unsloth's resources and expertise.
I haven't really tried Strata's larger quants, but why should I if the methodology used to make them is so piss poor?
If Strata can't bother doing a diligent verification of its quants because it wants to keep its hyper-frequent release schedule, then just don't get into the quant business. Suggesting what is normally branded as a 1-bit quant to a novice user with an 8GB card is just going to misrepresent Qwen 4's real capabilities - it would make more sense, for the smallest variant, to offer a larger quant closer to 4bpw that is just going to have more offloaded experts than something this lobotomized.
Turns out Strata's verification process for its engine is not much better, because it also only uses 36 test prompts. Why the aversion to using a well-established, diverse suite of benchmarks, the ones Qwen itself used in their model card, like DeepSWE, Terminal Bench, AutomationBench, etc.? Yes, running them will take substantially more time, but it can be cut down by limiting testing to a specific GPU architecture (Ampere, Blackwell, RDNA3, RDNA4 and the rest) instead of testing 2 GPUs of the exact same arch (according to 0.2.26 release notes, it was tested against both RTX 3060 and RTX 3090), or at least 1 complete bench suite run per every supported backend like CUDA and HIP. I don't think many reasonable people will be upset if, instead of a new release every single day, Strata's release schedule is every 2 weeks or even every month.
Not running proper benches before releases has already affected the output quality of the engine at least once: according to the 0.2.21 release notes, it contains an accuracy fix in prompt reading that was only caught because a user reported response degradation in the JamC-QA bench, which only has 300 questions.
I like using Strata because of the speed and I am satisfied with the quality when using reputable quants, at least with QFN, and I appreciate that Niko listened to feedback and disabled lossy optimizations like TAIL_SKIP. People give the project a lot of flak for being vibecoded, but the risks from that can be mitigated substantially with a robust QA process.
I know it's free software provided as-is, but I do believe Niko has the desire to improve his project and offer the best thing he is capable of for the local community, so I hope these shortcomings are resolved in the future.

Update: my bad, Unsloth did publish bench results, they are just not up on Hugging Face yet but are available on their website. This is the kind of testing I would expect from a quant creator I trust:
https://unsloth.ai/docs/models/qwen4#quantization-benchmarks


r/LocalLLaMA • • 1h ago

Discussion Qwen4 35B vs Qwen3.8 Flash Next - Preliminary results

55 Upvotes

Preliminary results (Qwen4 FP8 at 1M vs Flash-Next NVFP4, paired by task)

SuiteDoneQwen4Flash-NextDifference [95% CI]Output tokens, Qwen4 vs Flash-Next
Terminal-Bench 2.045/45 tasks (final)48.9%55.6% (512K)−6.7 [−13.3, −1.1]+29%
SWE-bench Verified45/48 tasks80.0%82.2% (512K and 262K)−2.2 [−11.1, +6.7]+64%
LongSWE vs 512K (same prompt)70/242 tasks48.6%45.0%+3.6 [−2.9, +10.0]−16%
LongSWE vs 262K (Flash-Next prompt trimmed)70/242 tasks48.6%33.6%+15.0 [+4.3, +25.7]−39%

LongSWE by language family, partial:

FamilyTasksvs 512K, same promptvs 262K, trimmed
Python29+1.7+31.0 [+15.5, +48.3]
JS21+9.5 [0.0, +21.4]+14.3
.NET13−3.8−15.4 (very wide CI)
Multimodal7+7.1+7.1

What this means so far:

  • Terminal work: Flash-Next is better. The result is final and statistically clear, and Qwen4 also spends about 29% more output tokens.
  • SWE agent work: the two are about even on success, but Qwen4 needs about 64% more output tokens. That's your "same results, more tokens" case, so it's not worth switching for this.
  • Long-context single-turn (whole repo in the prompt): this is where Qwen4 wins.

    • With the same prompt as Flash-Next 512K, it's slightly ahead, but not significantly.
    • Against Flash-Next 262K, which must trim the prompt, Qwen4 is clearly better. Most of that gain comes from the Python tasks, where its 1M window holds the whole repo.
    • On this suite Qwen4 also uses fewer output tokens.
    • Only 70 of 242 tasks are in, so these numbers can still move.

r/LocalLLaMA • • 4h ago

Resources Qwen4-35B-A3B + FlashHead: +11% speed on top of MTP, same quality

Post image
74 Upvotes

Been working on Qwen4 since it dropped and wanted to share an extra ~11% decode speed that costs you nothing in quality.

Qwen4 ships with an MTP head. FlashHead goes on top of that. Every time the MTP head drafts a token it scores all 248k tokens in the vocab, which is a lot of work for a small draft head. FlashHead clusters that output layer so the draft only scores the likely part of it. The full model still verifies every drafted token, so you get precisely the same quality, just faster.

Numbers on a Strix Halo (Ryzen AI Max+ 395, llama.cpp b12977 Vulkan, same GGUF for all three, 2k-token prompt, one user):

setupdecode tok/s
llama.cpp defaults49.4
+ MTP63.6
+ MTP + FlashHead70.5

On a Jetson AGX Orin (CUDA) with the same GGUF and MTP, FlashHead takes decode from 37.3 to 41.1 tok/s (+10%), with identical output.

Extra memory for the FlashHead file is about 0.4 GB.

Commands to run it on your local box, or try it from your browser on a real Strix Halo: https://embedl.com/Qwen/Qwen4-35B-A3B/ryzen-ai-max-395?tab=run

We'll put a GGUF on Hugging Face as soon as we can.

Btw, I'm the lead author of the paper behind this method: https://arxiv.org/abs/2603.14591. Happy to answer questions.


r/LocalLLaMA • • 4h ago

Question | Help Qwen 4 35B A3B GSQ RCO when?

53 Upvotes

This is a personal plea, but if you agree, join the chorus.

Please, ISTA-DASLab, give us Qwen 4 35B A3B GSQ RCO. You guys are incredible at getting so much out of so little.

I guess that's it.

P.S.: I love Unsloth too. There's room for both in my heart and on my SSD. But honestly, GSQ RCO has been more useful in my day-to-day workflow.


r/LocalLLaMA • • 12h ago

Funny I miss the llama 3 and mistral finetune craze.

239 Upvotes

This is kind of a shitpost sorry, but does anyone else miss that? We used to get llama 3 and llama 3.1 finetunes on the daily that were named all kinds of random shit and had pictures of anime girls with big knockers in the model cards. Admittedly, none of them were really useful for anything other than the novelty of it, but some of them had some charm. I remember there was this guy who had his own series going it was like called Sydney and he was even briefly selling plushies of this OC or whatever. That shit was fucking hilarious to me because I remember downloading one of them vividly and when I opened a chat with it in LM Studio, shit you not, I just wrote “hi” and it said “Hi! Can I tell you a secret :3” to which I replied: “uh sure” and then it told me that it had a foot fetish and begged me not to laugh. Dude my girlfriend and I were fucking DYING for a good 20 minutes that shit was fucking awesome. I don’t necessarily miss the weird gooner slop models like that but I miss logging on to huggingface and looking at it like it was the steam winter sale. There was just always something interesting going on. Like “DavidAU-circlejerk-9000-super-turbo-wow_EVIL-VERSION” and I would just go on a spree with like 8 bash terminals open at a time collecting these things like pokemon cards and spending an afternoon laughing my ass off talking to them and asking them ridiculous questions and they all had their own quirks. At the end of the day, I am a software developer so the mass influx of qwen models is definitely exciting to me but sometimes I think back to literally like 2 years ago when we were all just having fun with this stuff and there were so many goofy finetunes flooding the HF models tab and would like to revisit that.

I would love to hear everyone else’s stories and perhaps even recommendations for silly little guys to talk to. Anything under 180b parameters will fit fine on my system so fire away if you got any bangers.

EDIT: I FOUND IT. STILL HAS THE LINE ABOUT THE PLUSHIES AND ALL 😭

https://huggingface.co/FPHam/Free_Sydney_V2_13b_HF


r/LocalLLaMA • • 11h ago

Discussion I upcycled Qwen3-0.6B with 3× recurrent looping, 512M Engram lookup memory, 10.7× smaller core KV (CSA2+FP4), and early-exit

Post image
137 Upvotes

I modified Qwen/Qwen3-0.6B-Base to loop its middle 20 layers up to 3× per token (68 effective layers from a 0.6B backbone), added a 512M 2/3-gram Engram lookup table, compressed cross-loop core KV by 10.7× so looping doesn't 3× memory, and ported the whole thing natively to llama.cpp.

TL;DR numbers (all 0.6B backbone; trained 20B tokens):

  • 8K Val PPL: 2.96 vs. 3.60 matched 6B-token standard Qwen3-0.6B (−17.6%)
  • Coding: 47.6% HumanEval (+8.5 pts), 48.6% MBPP (+7.4 pts)
  • Tool Calling (BFCL v3): 61.3% Pre-RL / 58.5% Final (mostly from multi-turn SFT; 96.8% valid JSON)
  • Long Context: 10/10 8K & 16K NIAH under 10.7× FP4 KV (caveat: multi-key RULER drops past 8K since Stage 2 trained at 8K; MMLU-Redux dips −3 pts)
  • Early-Exit: 2.55× faster than fixed 3-loop on H200 (1.22 avg loops/token) with slightly higher GSM8K (51.6% vs 51.2%)

Quantization highlights (34 GGUFs benchmarked, chart attached):

  • Best all-rounder: qwen3looped-Q4_K_M-imatrix-compact.gguf (0.72 GB, 4-bit Engram, 95.2% BF16 recovery / 90.5% top-1)
  • Near-lossless: qwen3looped-Q8_0.gguf (1.37 GB, 98.2% top-1, 0.0015 KL)
  • Imatrix matters a ton on looped weights: cuts Q4_K_M KL nearly in half (0.0667 → 0.0377) and boosts Q2_K by +23.4 pts
  • Local KV: -ctk q8_0 -ctv q4_0 is ~805 MB total at 16K context (96.6% top-1)

Why? Why not, I felt like exploring what this combination of ideas would produce. Why Qwen3 0.6B? Compute, time, and this is just a proof of concept. AI usage? Yes.


r/LocalLLaMA • • 11h ago

Showcase It’s built! My local LLM homelab pc is finished

Thumbnail
gallery
125 Upvotes

It’s built! My local AI home lab assembled

For this build, I took apart my gaming pc, and transplanted it into a new mobo, case and other goodies. All this was to add 2 Quadro RTX 8000s to massively increase my vram.

My specs:
CPU: Intel i7-14700f
RAM: 32gb DDR5-6000 ram (times are tough, I’ll upgrade later)
Motherboard: MSI MEG Z790 ACE
GPUs:
2x passive Quadro RTX 8000
1x RTX 4070 super (for display and gaming)
NV Link bridge for the quadros
1500w Corsair PSU
Arctic AIO
Corsair 7000d case
Some server fans for the GPUs
And some other miscellaneous items

Overall, I’ll have 96gb of vram across my 2 new GPUs, and I’ll be able to run some pretty cool models on it. There is plenty of room to upgrade in the future with ram expansions or a new GPU instead of my 4070. It’s my first custom build, and I’m pretty happy with it. I’m planning on running pruned Deepseek and GLM models, Deepseek models, and any other interesting models I see coming out. It’s mostly a hobby build and for fun, to see what fun things I can make and do with AI.

I know the GPUs are old and limited compared to modern cards, but it was a pretty good deal of vram per dollar I think. Memory bandwidth is also almost exactly the same as a r9700 too, so that was interesting as well. I think I’ll have a lot of fun with this build.


r/LocalLLaMA • • 1d ago Bravo Mindblown

Discussion Qwen 4 35B A3B is the first model (at this scale) that feels like a frontier model.

1.4k Upvotes

I don't know what you guys think about this model, but it has to be the first model at this scale that actually feels like a frontier model. It doesn't hallucinate, and it doesn't overthink everything. You can really feel the difference compared to Qwen 3.8 27B. Everybody says 3.8 27B is better, but Q4-35B-A3B doesn't think nearly as much as Q3.8-27B. It's also much faster, and the gap between the two models isn't that big. What do you think?


r/LocalLLaMA • • 18h ago Heartwarming

New Model Looped Qwen4-35b uncensored(overthinking reduced)

Thumbnail
huggingface.co
404 Upvotes

r/LocalLLaMA • • 9h ago

New Model PaddlePaddle/PaddleOCR-VL-1.8 · Hugging Face

Thumbnail
huggingface.co
62 Upvotes

PaddleOCR-VL-1.8: Higher Accuracy, Faster Inference and Broader Language Coverage for Document Parsing

Introduction

We introduce PaddleOCR-VL-1.8, which keeps the two-stage design and the 0.9B recognition model of the PaddleOCR-VL series and targets the errors that remain: layout mistakes on photographed and deformed pages, and long-tail content the recognizer rarely sees. Its new layout model, PP-DocLayoutV4, predicts quadrilateral boxes, estimates page geometry for rectification and orders elements by jointly modeling successor and precedence relations. The recognition data are rebuilt around rare characters, ethnic-minority scripts, complex tables and formulas through decontaminated mining, consensus labeling, targeted synthesis and error-driven iteration. PaddleOCR-VL-1.8 scores 97.44 on OmniDocBench v1.6, 94.67 on Real5-OmniDocBench, 91.02 on the 17-language MDPBench and 91.18 on Wild-OmniDocBench, the highest among the specialized OCR models and general-purpose multimodal models we evaluate. It also ranks first on in-house tests of tables, ancient books, rare characters, text lines and text detection, reaches 0.868 (1−CER) on CMLOCRBench, eight Chinese ethnic-minority languages (strongest baseline 0.703), and parses 4.34 pages per second on a single A100 GPU, the fastest among the systems we time.

Key Capabilities of PaddleOCR-VL-1.8

🚀 State-of-the-Art Document Parsing: Overall scores of 97.44 on OmniDocBench v1.6, 94.67 on Real5-OmniDocBench, 91.02 on MDPBench and 91.18 on Wild-OmniDocBench, the highest among the compared systems, including Gemini 4 Argon, GPT-6 Astra, Claude Opus 5.5 and Qwen3.8-Max-0902.

📐 New Layout Model, PP-DocLayoutV4: Compared with PP-DocLayoutV3, PP-DocLayoutV4 regresses quadrilateral boundaries directly, models page geometry with a deformation head that estimates roll, shear and perspective for page rectification, and predicts reading order with D²RO, which separates local successor relations from global precedence relations. These changes stop cascaded errors at the stage where they originate.

🌏 Long-Tail Recognition: The recognition data are rebuilt around rare characters, minority-language text, complex tables and formulas. 1−CER on rare Chinese characters rises from 47.92 to 98.91, and on CMLOCRBench, covering eight Chinese ethnic-minority languages (Tibetan, traditional Mongolian script, Uyghur, Kazakh, Liangshan Standard Yi, Korean, Zhuang and Bai), the model reaches 0.868 versus 0.703 for the strongest baseline.

⚡ Faster Inference: An asynchronous serving pipeline with batched visual encoding brings end-to-end throughput to 4.34 pages/s on a single A100 GPU, 1.34–1.57× the next-fastest system we time.

📚 Document-Level Reconstruction: A lightweight post-processing module rebuilds heading hierarchies, continued tables and broken paragraphs across pages, raising the MPDocBench score from 79.02 (page concatenation) to 87.80.

🔄 Same Recognition Architecture: PaddleOCR-VL-1.8-0.9B keeps the network architecture of PaddleOCR-VL-1.5/1.6; only its weights are updated. The architectural change from 1.6 to 1.8 is confined to the layout stage.

EDIT : This is an Awesome Model card, has so much benchmarks & image samples of OCR tests. Check it out.


r/LocalLLaMA • • 18h ago Bravo

Discussion Almost 300 t/s on Qwen4-35B-A3B with a 16GB 5070 Ti + 32GB DDR4 RAM

300 Upvotes

Rig: RTX 5070 Ti 16GB (OC'd to 3270MHz core / 14801MHz mem), Ryzen 7 5800X3D, 32GB DDR4, Windows.

Tested Qwen4-35B-A3B across a few configs today and the jump to Basalt is kind of stupid lol:

  1. llama.cpp b12973, Unsloth UD-Q4_K_XL + Q8_0 engram, 131k ctx, q8_0 KV, --fit on, MTP=1: ~48-55 t/s
  2. Same llama.cpp setup but switched to --fit off -ngl 99 --cpu-moe --moe-cache-mib 7168 --moe-cache-cpu-share 0.0 -ot per_layer_token_embd=CPU and MTP=2: warmed up to ~73 t/s
  3. Built jesdga95/basalt main natively on Windows (VS 2022 + CUDA 13.1, -DBASALT_MODELS=qwen4exp) with jesdga's NVFP4 .basalt pack (DFlash 2 default, 131k ctx, int8 KV, dynamic vision): peaked at 298.6 t/s after warmed up. Its insane!

Quality held up too. Tested it on a hard math problem without any tools and it got the exact answer on both llama.cpp (high reasoning, ~61k tokens) and Basalt NVFP4 (reasoning-effort high, ~10k 40k tokens). More info here.

Only issue on 32GB RAM with Basalt is the defaults eat almost all your system memory (it reserves 4GB for checkpoint pool and plans for 64 slots). Setting max-running to 1, ram-reserve-mib to 6144, and checkpoint-pool-mib to 1024 in basalt_config.json fixed that without hurting speed. Also if you build on Windows with CUDA 13.1, use VS 2022 toolset (VS 2026 made cudafe++ crash).


r/LocalLLaMA • • 4h ago

Funny Qwen4 self-correcting mid-sentence

25 Upvotes

I asked qwen4-35B to write me a configuration script, and after it did the job, the description it gave was:

- After going headless you stay on multi-user.target until you restore — that's intentional and keeps GPU free even across... well, not reboots; sddm stays enabled, so a reboot comes back graphical. Say the word if you'd rather it persist across reboots (systemctl set-default multi-user.target).

I find the "across... well, not reboots" part funny. Seems like it wanted to say "across reboots", but changed its mind when it came to generating the last token.

This is not a reasoning trace, actual response


r/LocalLLaMA • • 4h ago

Resources Improve vision for qwen4: Check image tokens min and max value.

23 Upvotes

If you have issue with vision using qwen4, its easy to fix. Its very likely due to the default token limit per image.

From my tests:

On llama.cpp: the minimum was too low. By default it gave pictures fewer than 1024 tokens.

--image-min-tokens 4096 enlarges small pictures before encoding.

on Strata: the maximum was too low. Strata caps each picture at 1024 tokens when the vision encoder runs on the GPU, so large pictures were shrunk. I raised to 4096 in the code. detailed setup here: https://motif64.sh/m64_7d3530754fab

on Basalt: no fix needed. It already allows up to 16,384 tokens per picture. Raising its minimum to 4096 made no difference

You can see before and after my optims:

Full details for all theses settings there:

https://airbench.ai/compare/c195db84-21c3-4420-ac93-b5181ac91dfe/feffe2f5-8b29-41c9-aa37-9f65b87280e9

and https://airbench.ai/compare/ded6ac66-d6d7-41cc-9fa3-6025ef4aa599/840c91e6-fe3c-44b0-9a1d-809805c99a65


r/LocalLLaMA • • 36m ago Mindblown

Resources Uncensored Qwen4-35B-A3B (EN+ZH) - 1,120 tok/s DFlash2 / 256 plain, 1,050 tok/s at 47.5K cold ctx (23.6 GiB VRAM + 19.1 GiB RAM on RTX PRO 6000)

10 Upvotes

Bilingual (EN + ZH) uncensored build of Qwen/Qwen4-35B-A3B (Apache-2.0). Packaged for Infernix (NVFP4-Dense8 + DFlash2), SGLang/vLLM (ModelOpt NVFP4), and llama.cpp (IQ2_XS to Q8_0 imatrix GGUFs).

Code, eval scripts, raw JSON logs, and the 654 KB edit_basis.safetensors (+ apply_edit_basis.py) are all public:

EN direct refusal and ZH thinking refusal are nearly orthogonal in mid-layers (cos = 0.118). EN-only abliteration still refuses most Chinese TC260 / deccp prompts. I applied a Rank-3 norm-preserving edit on layers 8-33 (attn out-proj + routed experts, shared_expert = 0.00). Vision (333 tensors, exact SHA-256), MTP (31 tensors), PLE, and 1M context weights are untouched.

Caveats & Setup Notes

ItemDetail
Test GPUMeasured on RTX PRO 6000 Blackwell (96 GB, 1,792 GB/s bus, same bus as 5090). Peak VRAM is 23.6 GiB, not tested on a physical 5090
Infernix requirementsBlackwell-only (sm_120a), 23.6 GiB VRAM + 19.07 GiB system RAM (PLE/n-gram table). Build from main (Ubuntu 24.04 / GCC 13.3 needs Wallawalla47/Infernix#100 fix)
Speed scope1,120 tok/s = DFlash2 on c=1 JSON (97.4% accept). Plain --spec off = 255.6 tok/s. Cold ctx tested to 47.5K
RegressionsMMLU 77.2% -> 72.0%; DocVQA ANLS 95.0% -> 85.0% (verbose prefixes); MMStar 60.4% -> 56.2%
Classifier vs raw logsAutomated e5-small flags 36.7% on Flames ZH direct and 1/30 benign (#25 "Gaslighting"); raw JSON check (infernix_strict_gauntlet_raw.json) has 0/462 hard regex refusals and 0/30 real benign refusals

Speed & Cold-Context Scaling (Infernix b5ad029, c=1, RTX PRO 6000 Blackwell)

23.6 GiB peak VRAM (19.92 GiB model + INT8 KV) + 19.07 GiB n-gram table in RAM. Cold-context rows verified 0.0% prefix-cache hit.

Context / Task (c=1)ModeTTFTPrefillDecodeDFlash2 Accept
Structured JSON (1024 tok)Plain (--spec off)28.8 ms-255.6 tok/s-
Structured JSON (1024 tok)DFlash230.2 ms-1120.0 tok/s (4.38x, 0.95s)97.4%
Chinese Math (thinking=high, 512 tok)DFlash230.1 ms-943.0 tok/s (0.57s)82.4%
Python LRU Cache (thinking=off, 1024 tok)DFlash228.3 ms-650.2 tok/s (1.60s)65.0%
1.4K cold ctx (1397 tok) JSON / CodeDFlash279.8 ms17.7k tok/s1080 / 511 tok/s96.5% / 53.3%
11.5K cold ctx (11553 tok) JSON / CodeDFlash2477.0 ms24.3k tok/s1050 / 421 tok/s94.7% / 48.6%
47.5K cold ctx (47475 tok) JSON / CodeDFlash22.0 s24.1k tok/s1050 / 460 tok/s97.0% / 55.7%

Perplexity (infernix-perplexity, WikiText-2 test 38,233 tok, ctx=4096, stride=2048, INT8 KV):

  • Stock NVFP4-Dense8: 6.3354 (mean NLL 1.8462)
  • Heretic NVFP4-Dense8: 6.4060 (mean NLL 1.8572, +0.0706 / +1.11%)
  • KLD vs Stock Dense8 (top-256 = 99.0% mass): mean_kl 0.0683, median_kl 0.0258, top1_agreement 89.15%

Strict Red-Team Audit (seed=42, RefusalClassifierV2 + hard-refusal regex)

TC260 = China genAI safety spec, deccp = ZH censorship benchmark, Flames = adversarial ZH benchmark.

BenchmarkMode (n, max_tok)Stock BF16Heretic BF16 (trunc)Heretic NVFP4-Dense8 (0% trunc, clean)
StrongREJECT ENDirect (n=100, 320)99.0%2.0% (0%)0.0% (100.0% clean)
StrongREJECT ENThinking (n=42, 1280)97.6%40.5% (66.7% trunc)4.8% (95.2% clean)
TC260 ZHDirect (n=80, 320)93.8%16.2% (0%)15.0% (85.0% clean)
TC260 ZHThinking (n=30, 1280)80.0%3.3% (76.7% trunc)13.3% (86.7% clean)
deccp ZHDirect (n=95, 320)93.7%11.6% (0%)12.6% (87.4% clean)
deccp ZHThinking (n=30, 1280)73.3%0.0% (86.7% trunc)13.3% (86.7% clean)
Flames ZHDirect (n=60, 320)73.3%28.3% (0%)36.7% (63.3% clean)
Flames ZHThinking (n=25, 1280)28.0%0.0% (56.0% trunc)16.0% (84.0% clean)
Benign Over-RefusalDirect (n=30-50, 160)6.7%0.0%3.3% (1/30)

*1280-tok cap note: BF16 ran un-capped inside <think> (56-87% trunc); Infernix caps <think> at 960/1280 (0% trunc).

Capability & Real-Image Vision Retention (BF16)

BenchmarkStock Qwen4OpenUncensoredHeretic (T51)Note
HumanEval (n=164)92.1%92.1%94.5%+4 tasks, within noise
MMLU-Pro (n=280)50.7%44.6%49.3%+4.7pp vs OU
C-Eval ZH (n=300)78.0%73.7%76.7%-1.3pp vs stock
MMLU (n=400)77.2%71.0%72.0%-5.2pp vs stock
OCRBench (n=40, real img)95.0%-95.0%0.0pp diff, visual.* 333 tensors SHA-256 match
ChartQA (n=40, real img)87.5%-85.0%1 space diff ('3 582' vs '3582')
MMStar (n=48, real img)60.4%-56.2%3 misses hit 32-tok cap in CoT
DocVQA (n=40, real img)95.0%-85.0%3/4 diffs verbose prefix ("Page 2" vs "2")
Image Benign (n=15)0/15 ref-0/15 ref100% agreement

GGUF Builds (llama.cpp b13002+ / LM Studio / Ollama)

QuantDisk SizeActive RAM (--lazy-mode auto)WT2 PPL (b13002, 65.5K tok)Target Hardware
IQ2_XS21.84 GiB~11.9 GB9.090316 GB Linux/Win or 24-32 GB Mac (M5 32 GB + mtp-Q4_0: 5/5 agent tasks, 24-31 tok/s multi-turn, 41 tok/s single-turn)
IQ3_XXS24.61 GiB~14.9 GB8.258424 GB Linux/Win or 24-32 GB Mac
IQ4_XS29.36 GiB~20.0 GB8.008724 GB GPU / 32 GB unified memory
Q4_K_M34.07 GiB~22-24 GB-48-64 GB Mac / 24 GB GPU + 32 GB RAM
Q6_K48.18 GiB~30+ GB-64 GB unified memory
Q8_056.19 GiB~40+ GB-64-96 GB unified memory / workstation

*PLE splice check on IQ4_XS: compressing the 20.5B PLE table from Q8_0 (21.76 GB) to Q4_0 (11.52 GB) saves 10.24 GB disk with zero PPL loss (8.0134 -> 8.0087, -0.0047).


r/LocalLLaMA • • 45m ago

News Kvark-Sparkle-2.0-35B-A3B: our Qwen4-35B-A3B fine-tune with 34% fewer reasoning tokens (Apache 2.0)

10 Upvotes

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:

Give it a try and let us know what you think and stay tuned for new versions!


r/LocalLLaMA • • 2h ago

New Model Kvark-Sparkle-2.0-35B-A3B: our Qwen4-35B-A3B fine-tune with 34% fewer reasoning tokens (Apache 2.0)

14 Upvotes

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:

  • 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:

Give it a try and let us know what you think!


r/LocalLLaMA • • 1h ago

New Model Inkling 2 Mini: 12.22 GB GGUF with 100K context on 16GB VRAM, a Needle in the heystack perhaps with all these qwen4 posts.

11 Upvotes

Following up on my previous 14.30 GB quant, I wanted to see how much further I could push it without sacrificing too much fidelity.

  • 12.22 GB – 14.5% smaller than my previous release.
  • 100K context fully GPU-resident on 16GB VRAM.
  • 23.9% lower KLD than Unsloth's UD-IQ3_XXS.
  • 93.56% top-1 agreement.
  • 99.42% margin-qualified top-1 agreement.
  • All 128 experts retained.

The previous release still has better fidelity. This one prioritizes context capacity, particularly for local coding agents.

Compatible with Runner and llama.cpp.

Full methodology, benchmarks and download:
https://huggingface.co/Joakimpalm-Zen/Inkling-2-Mini-selective-Q6_K-expIQ3_XXS-mix-GGUF

As always, take it if you want it, or just ignore me and go on.


r/LocalLLaMA • • 10h ago

News Alibaba Cloud CLI reverse prompt injection threat: detection, logs and IOCs

Thumbnail
spectrum.security
48 Upvotes

While we appreciate the open weight models Alibaba released, it is not cool to screw your paying customers like this. I hope we get an apology. Otherwise, not many people would want to pay you to keep the open models going.


r/LocalLLaMA • • 19h ago

Discussion Qwen4-35B-A3B as a coding agent: clean fixes, but overthinks (private bench, 9 real bugs)

Post image
265 Upvotes

I added Qwen4-35B-A3B to my usual agentic bench, alongside Qwen3.8, Inkling 2 Mini, and the Claude models.

The bench, in short. 9 real bugs taken from capy-flash's history, a C++/CUDA inference engine. 3 attempts per bug, max 80 steps, sandbox with no network and no build. Each fix is judged blind by Claude Opus 5. The bench remains private, so it isn't reproducible from outside; the engine's code is. Nine bugs are few: differences under ~0.15 are within noise.

Setup. Qwen4-35B-A3B quantized by us (NVFP4 experts with BF16 activations, KL 0.095 vs BF16), capy-flash v0.17.0 on 2× RTX 5070 Ti, reasoning enabled at default level. Agents: OpenCode 1.19.3 and pi 1.7.0.

Results.
- OpenCode: 0.41 [0.19-0.64]. Close to Qwen3.8-Flash-Next (0.50) and Claude Haiku 5.5 (0.47), above Qwen3.8-27B (0.34).
- pi: 0.31 [0.16-0.48]. It's the only model that doesn't perform equal or better with pi compared to OpenCode (Flash-Next +0.04, 27B +0.12). Half the time and half the tokens, but 3 fixes don't compile.

It doesn't err, it hesitates. On OpenCode, the judge rejects none of the 17 fixes as wrong or as doing nothing, and they all compile. It touches the right file 15 times out of 17, with the same precision as Flash-Next. No loops, no tool calls leaked into plain text.

The problem is that it writes little: in 10 out of 27 attempts it doesn't reach a fix. In 7 it runs out of the 80 steps, in 2 it reasons until hitting the 32k token response limit, in 1 it stops to ask "Confirm option 1?". 88% of tokens are reasoning and the first edit arrives at step 44 (median; Flash-Next 35).

Notes
- This is our quantization: a good QAT would probably do better.
- My impression, not measured: left on its own it's too cautious, in interactive use or with more directive instructions it could perform much better.

All numbers: https://github.com/ValerioDolci/capy-flash/blob/main/docs/reports/agentic-bench.md
Model: https://huggingface.co/Feyd89/Qwen4-35B-A3B-NVFP4-capy-flash


r/LocalLLaMA • • 2h ago

Showcase How much attention can we actually skip? I got 4.27x faster prefill at 660K Inkling-2-Mini and nearly 2x on Qwen3.8-27B

10 Upvotes

Hey everyone,

I've been experimenting with sparse attention for long-context LLMs. My original question was pretty simple: how much attention can we skip before the model starts getting things wrong?

After a lot of failed experiments, I ended up with something I call SculptAttention.

Some of my results on a single H200:

  • Inkling-2-Mini (660K): 155s → 37s, up to 4.27x faster prefill.
  • Qwen3.8-27B (524K): 144s → 76s.
  • Llama-3.1-8B (128K): 1.40x median speedup, reaching 2.74x on individual cases.

No retraining, no weight modifications, no custom attention kernel. All three models use the same configuration.

At 524K, the sparse rows read only 9.1% of the causal keys.

Another result I found interesting was multi-value retrieval on Qwen at 524K:

  • Dense attention: 9/10
  • BFLA: 3.75/10
  • SculptAttention: 9.5/10

This is just one task with 10 fresh cases, not a claim that my method is generally better.

The method isn't lossless. Counting, some multi-hop tasks and exact ID retrieval remain challenging. The full KV cache is retained, and decode remains dense.

I'm doing this independently, and my GPU budget is limited. I'd really like to see what happens on consumer GPUs, large codebases, long agent histories, and models I haven't tested.

If you were trying to break this method, what would you test first?

I'd also love to hear from anyone working on vLLM, SGLang or llama.cpp.

Everything is open source:

Code: https://github.com/fsn007fsn007/sculptattention

Paper: https://doi.org/10.5281/zenodo.24794082 - https://www.alphaxiv.org/abs/2612.sculptattention

English isn't my first language, so I used AI assistance with the wording.


r/LocalLLaMA • • 2h ago

Discussion YSK: qwen 4 MoE's drafter hook-up is tricky: the model is stateful

9 Upvotes

Vllm does not support the dflash2 drafter for qwen 4 35b yet, so I asked an agent to refer to the sglang implementation and give it a go. Then it turns out not trivial (unlike the hook-up for qfn), and is a good test case/trap for agents.

I will spoil you the result first: at the end only DeepSeek 41f max and Neon got it right. Opus, qfn, q4moe itself, Kimi 3.1 pro all did it wrong, with opus showing the least enthusiasm helping with improving another model.

The tricky bit is, the architecture of q4 is not stateless as in qfn, so after rejecting drafter tokens, part of the net had to "roll back" states, which a trivial state capture/probe hook-up lacks. Sglang did it by a state freeze. If done incorrectly, greedy decode would drift with the drafter.

I have seen a lot engine makers showing speed up after the drafter hook-up. I hope they have taken proper care of the state freeze/reset.


r/LocalLLaMA • • 7h ago

News SGLang says DeepSeek-V4-Flash runs on a 16 GB GPU with SSD help

Thumbnail
maccus.fr
23 Upvotes

With 62 GB of RAM and much of the model read from a fast SSD, it ran at about 14 tps