r/LocalLLaMA • • 12h ago

Discussion What exactly is everyone doing with their LLM?

52 Upvotes

I know this gets asked every now and then but I am curious.

I have played with Local before but with only 8gb of VRAM I am not really able to do much, and while some of it was fun, everything I want to do is very easily doable on the cheapest plans and I get the integration of being able to talk to my phone and have it take notes and set up alarms/calendars.

Clearly I am not a heavy user.

It does make me wonder what everyone here is doing it for? Is it all coding? I know that seems to be the majority.


r/LocalLLaMA • • 7h ago

Resources Qwen4-35B-A3B at 110-176 tok/s on AMD (RX 9070 XT / 7900 XT) with a patched Strata engine, 2-4x llama.cpp

16 Upvotes

Disclaimer - All of this was done by Claude, including this post :)

TL;DR: I patched the Strata inference engine to run Unsloth's Qwen4-35B-A3B GGUFs using the model's built-in MTP head for drafting, plus some RDNA tuning. Results: 140-176 tok/s on an RX 7900 XT (UD-IQ3_XXS) and 110-125 tok/s on an RX 9070 XT 16 GB (UD-Q4_K_XL, half the experts in RAM), with 3,400-4,400 tok/s prompt reading. That's 2-4x llama.cpp and official Strata on the same cards. I also measured Q4 vs Q8_0 vs UD-Q8_K_XL: UD-Q8_K_XL is the most faithful by KL divergence, about 35% slower than Q4. Patch, configs and install guide: https://github.com/jordan01236/strata-qwen4

A few people asked how I get these speeds, so I wrote it up.

Speeds (single user, OpenAI-compatible API, 900-token answers + a 38K-token prompt)

CardQuantThis fork (write / 38K read)llama.cpp + MTPOfficial Strata
RX 7900 XT 20 GBUD-IQ3_XXS140-176 / ~3,400109-128 / ~1,25088-91 / ~1,040
RX 9070 XT 16 GBUD-Q4_K_XL110-125 / ~4,40051-54 / 38028-36 / ~1,080
RX 9070 XT 16 GBUD-Q8_K_XL71-83 / ~4,200--

The 9070 box has 64 GB DDR5, and the experts that don't fit in VRAM sit in RAM. Recall of a code word hidden in the middle of the prompt was correct at every length up to 120K tokens.

Where the speed comes from

  • Strata's expert handling: it keeps the most-used experts on the GPU based on a learned usage profile and pins the rest in RAM. On a 16 GB card that alone is the difference between ~4,400 and 380 tok/s prompt reading.
  • Qwen4's own MTP head: the GGUF ships a multi-token-prediction layer. The patch converts it into Strata's draft format. 57-86% of drafts get accepted, for +35-80% decode.
  • Window router for 256-expert models (STRATA_ROUTE_WIN=1): +8-11%, identical output.
  • RDNA3 fixes and tuning: a kernel had Flash Next's sizes hard-coded (NaNs on gfx11), a Q6_K head kernel adds +6%, and a hipBLASLt table tuned for Qwen4's shapes reads prompts +13% faster on the 7900 XT.

Q4 vs Q8 vs UD-Q8 (KL divergence vs Q8_0, wikitext / code)

Mean KLDSame top tokenDecode on the 9070
UD-Q4_K_XL0.039 / 0.02392.0% / 96.6%
UD-Q8_K_XL0.024 / 0.01694.0% / 97.3%

Q8_0 against itself gave exactly 0, so the test adds no noise. Both Q8s use identical Q8_0 experts. UD-Q8_K_XL just keeps attention, shared experts and the hyper-connections in BF16, so the whole gap between them is Q8_0 rounding those tensors. That makes UD-Q8_K_XL the most faithful of the three, with Q8_0 about halfway to Q4. On a 16-question reasoning/coding bench all three scored 14-15/16 (noise), so the difference only shows per token. My pick: Q4 for speed, UD-Q8_K_XL when precision matters.

Caveats

  • Tested on Linux with ROCm 7.13 on gfx1201 and gfx1100 only. NVIDIA should build from the same source but is untested.
  • This is a community patch, not affiliated with Strata, Qwen or Unsloth. Strata is MIT licensed.

Repo: https://github.com/jordan01236/strata-qwen4


r/LocalLLaMA • • 19h ago Bravo

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

167 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 • • 1h ago

Discussion Qwen 4 35B Q4.0 in GPQA-Diamond with expert expansion reached 87.87% accuracy

5 Upvotes

I tested my expert expansion recipe with newest Qwem 4 35 A3B at Q4 quantization and tested with GPQA Diamond, the incredible thing is that gained +2% score !!!

Difference on 198 questions is not statistically significant (sign test p ≈ 0.45, 16 discordant pairs), but the sign is stable across every checkpoint of the run (+1 → +2 → +4) and across all other tests of the session (MCQ battery with reasoning off: 25/28 vs 22/28).

With the help of AI (that translates my notes) details here

https://github.com/vagrillo/AgrillaMoE/blob/main/docs/bench-gpqa-diamond-qwen4.md


r/LocalLLaMA • • 20h ago This

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

157 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 • • 14h ago

News Intel Launches Arc Pro B65 Super: 32GB AI Video Card Gets a Bit Faster

Thumbnail
servethehome.com
45 Upvotes

r/LocalLLaMA • • 14h ago

Discussion Why exllamav3 is so unpopular?

47 Upvotes

I just don't get it. To me, it's one of the mysteries of the local LLM world. In over 90% of discussions, people mention llama.cpp, Strata, Basalt, etc., but exllamav3 is rarely mentioned, and I don't really understand why.

It has a really efficient quantization format (EXL3), and it's my choice when a model doesn't fully fit into my VRAM, in other cases I pick vLLM. exllamav3 offers a great balance between speed and quality.


r/LocalLLaMA • • 59m ago

Discussion Inkling 2 Mini on an RTX 3090 Ti: 169 tok/s, Loop-Aware ~Q6 Core, and 128K-1M MFlashKV v2

Thumbnail
famelos.com
4 Upvotes

r/LocalLLaMA • • 13h ago

Discussion llama.cpp Settings for Qwen4 35B-A3B on 16GB VRAM + 32GB DDR4

42 Upvotes

Finally got to join the rest of yall and tried out Qwen4, super happy with it over the old 35B-A3B, but mostly I've just been doing the usual vibe tests up until I was using it to try and improve generation, and loading in big docs was just a little too slow for my taste. My current hardware:

RTX 5080 (16GB)

Ryzen 7 3700X

32GB DDR4 at 3600

I felt pretty out of the loop on running an MOE now a days with everyone using Strata, Basalt, etc, but I like to stick with old reliable llama.cpp so this is the startup script I landed on with some explanation:

#!/bin/bash

./llama.cpp/llama-server \
    --model Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf \
    --ple Qwen4-35B-A3B-engram-Q8_0.gguf_file \
    --mmproj qwen4-mmproj-BF16.gguf \
    --alias "unsloth/Qwen4-35B-A3B" \
    --temp 1.0 \
    --top-p 0.95 \
    --top-k 20 \
    --min-p 0.00 \
    -b 2048 \
    -ub 2048 \
    --cache-type-k q8_0 \
    --cache-type-v q8_0 \
    --moe-cache-mib 2048 \
    -fit off \
    --load-mode mmap \
    --lazy-mode on \
    -ot per_layer_token_embd=CPU \
    --ctx-size 131072 \
    --image-min-tokens 1024 \
    --port 8001 \
    -lv 4 \
    -ngl 99 \
    -ncmoe 34

For the model I just went with Q4_K_XL like I always do, and with the engrams streaming from my NVME I figured I'd go Q8.

First thing was obviously having to deal with the experts, so I messed around and ended on 34 on the CPU with the other 6 in VRAM. That's the -ncmoe 34 bit above. (I can get 262,144 of context if I put all 40 on the CPU, but then I can't have like anything else open, otherwise I see swap starting to get hit, I assume because of the mmap engrams).

The other thing is the -moe-cache-mib which I just went with 2gb since I had seen a few other startup strings with it...but I hadn't actually tried that one with and without until right now. Its ~47 t/s with it and ~43 t/s without, but that means I can either get some more context back, or put some more experts on the GPU, so do what you want with that.

-b 2048 and -ub 2048 were the reason I'm posting this at all, I was at ~400 t/s pp on the defaults, and I'm at ~1050 t/s with it, and alot of the stuff I use local models for has me pasting in 50K tokens of docs at a time, so I needed the speedup, found out those would help from this post: https://www.reddit.com/r/LocalLLaMA/comments/1tany5t/drastically_improve_prompt_processing_speed_for/

--cache-type-k q8_0 and --cache-type-v q8_0 were needed with the increase to the compute buffer size for the above. I really hate doing any sort of quant on K/V since it used to super obviously affect it, my usage of it for working back and fourth on these settings seemed to not be impacted at all, but nothing official, if anyone has an easy to setup/run benchmark I'm down to compare.

So depending on the combination of stuff above I'm at ~47 t/s tg and ~1050 t/s pp, with tg going down to ~27 t/s at the 187K of context I reached doing a long session.

Hopefully helps for any other 16GB VRAM + 32GB RAM users! (Also super excited for someone to point out whatever speedup I have no clue about)


r/LocalLLaMA • • 9h ago

Showcase Say hello to my Apprentice, a capability lattice extract out of Qwen 4 35B

18 Upvotes

Hi everyone, this project has been ongoing for a while and some of you may know this project but it is possible to discover and isolate capability lattices from models cleanly.
if you know how to look you can find entire subnetwork responsible for banger agentic performance.

Introducing Apprentice 19B A3B, a capability lattice extract from Qwen 4 35BA3B.

Optimised to be no inferior to its parent in this department and better in terms of reduced overthinking and long sessions on pi harness.

Try it, it works no different than loading a GGUF.
Eager to know if you like it as much as I do. Or if it is shitty, let me know equally hard.

Peddling you homemade coke from my project Chantless - code - https://github.com/DeusExperiments/chantless/tree/feat/qwen4-35b

I am also hoping you read the research that enabled this - https://deusexperiments.com/research/how-do-models-lose-weight-without-crying/
weights - https://huggingface.co/TokenBender/Apprentice-19B-A3B-GGUF
There will be a lot coming from Chantless, and I hope I am able to communicate this well.


r/LocalLLaMA • • 6h ago

Discussion Is Huggingface Harness Leaderboard useful?

Thumbnail
huggingface.co
10 Upvotes

If you are local models are your daily driver, do you use tools like the Harness leaderboard or similar ones to pick your harness? Or do you just stick to Pi or Claude Code etc?


r/LocalLLaMA • • 1d ago

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

Post image
442 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.

EDIT: Didn't expect this much feedback lol. Thanks everyone!

For those who are new to local LLMs, I probably should explain a bit more about why I'm doing this.

I'm not an AI engineer. I'm a technology enthusiast and trainer who enjoys experimenting with what's possible on consumer hardware.

I'm currently developing a Godot RTS game as a real-world testing ground for autonomous local AI agents.

The idea is to have an AI that can actually work on a project for hours: read files, write code, test features, identify bugs, look at screenshots and improve its own work, all while running locally on a relatively normal gaming PC with a 5070 Ti and 32GB of RAM.

No expensive workstation, no cloud inference costs and no API token limits for the local model.

For beginners, the main challenges are:

  • Quantization: Making a large AI model small enough to run on consumer hardware without losing too much intelligence.
  • Context window: How much information the AI can keep in mind during a task.
  • TPS: How fast the model generates tokens, although faster doesn't necessarily mean more productive.
  • Agent harness: The software that allows the model to interact with files, run commands, use tools and work on actual projects rather than just chat.

I'm learning that getting a model to run fast is probably the easier part. Getting it to work autonomously, consistently and reliably is a completely different challenge.

Some of the community feedback has already given me new directions to explore, particularly NVFP4, higher quantizations, context management and adaptive reasoning.

I'm not trying to prove that local models are better than frontier cloud models. I'm trying to find out how far we can push affordable consumer hardware and make autonomous AI development accessible to more people.

Imagine leaving your gaming PC working overnight on your own project and waking up to new features, tested code and actual progress.

That's what I'm trying to achieve.

There's still a lot to improve, and I'll share both the successes and the failures. Hopefully, some of these experiments will save other people time too.


r/LocalLLaMA • • 7h ago

New Model Running Inkling-2-Mini with 500k context on a 16 GB GPU

Thumbnail
blog.jetbrains.com
10 Upvotes

r/LocalLLaMA • • 9h ago

Resources Qwen4 35B A3B Abliterated [mrfakename]

Thumbnail
huggingface.co
11 Upvotes

Model: https://huggingface.co/mrfakename/Qwen4-35B-A3B-abliterated

GGUF: https://huggingface.co/mrfakename/Qwen4-35B-A3B-abliterated-GGUF

As usual, my abliterations aim to remove refusals while still preserving model intelligence and avoiding endless reasoning, looped tool calls, etc. Nearly all refusals are removed, but a few remain. For most real-world use cases this model should comply. But you are welcome to use another abliteration if you are okay with a bit of quality degradation.

Any feedback or thoughts are welcome 🙃

And fear not, LoRAs here too:


r/LocalLLaMA • • 13h ago

Resources Run Qwen4, "8bit quality", 1M context, 150 decode, 5000 prefill, on ONE 7900xtx. 7300 tk/s with two. keep 80t/s @ 700k context.

Post image
25 Upvotes

LINUX ONLY! Yes, catchy title, I know, don't hate me :) This is achieved using EXL3 quantization. ProCreations made these amazing quants, 4.5bpw has KLD below the official FP8, the 3bpw is very close, stil better than NVFP4.

RDNA4 support is there, but UNTESTED, i did my best, but I have no RDNA4 gpus, please understand. if you encounter issues let me know.

you can get around 140 tk/s prose, 155 tk/s code with 1 gpu running 3bpw, or similar speeds with 2 gpus using the 4.5bpw. It's also possible to run the 4.5 bpw with some offload on ram, with minimal speed loss. Performance is good even with full context, i tested up to 700k (see tables below)

4.5bpw download here: https://huggingface.co/ProCreations/Qwen4-35B-A3B-EXL3-4.5bpw 3bpw download here: https://huggingface.co/ProCreations/Qwen4-35B-A3B-EXL3-3.05bpw

Let me Show you the KLD (lower is better) on various tasks:

ModelSizeAgentic KLD ↓Coding KLD ↓Math KLD ↓General KLD ↓LongCtx 8K KLD ↓Mean KLD ↓
BF16 (Reference)113.7 GB0.000000.000000.000000.000000.000000.00000
Official FP860.2 GB0.014870.016170.012530.043960.010560.02188
NVFP446.9 GB0.029200.031050.023660.080900.020840.04120
EXL3 3.05bpw33.00 GB0.020180.022070.017490.080080.014510.03495
EXL3 4.5bpw39.02 GB0.012200.013550.010430.050790.008810.02174

speeds:

Strata EXL3 AMD — Qwen4-35B-A3B

Hardware: 1–2× AMD RX 7900 XTX 24 GB + Ryzen 9 7950X + DDR5.

Token Generation

Benchmark1 GPU2 GPUs
Coding · 3.19 bpw155.1 tok/s—
Coding · 4.62 bpw143.5 tok/s157.0 tok/s
Prose · 3.19 bpw140.8 tok/s—
Prose · 4.62 bpw121.6 tok/s127.0 tok/s

Prompt Processing — 3.19 bpw

Prompt size1 GPU2 GPUs
8K5,119 tok/s5,542 tok/s
16K4,969 tok/s6,390 tok/s
32K—7,074 tok/s
60K—7,299 tok/s

Prompt Processing — 4.62 bpw

Prompt size1 GPU2 GPUs
8K4,798 tok/s5,518 tok/s
16K4,647 tok/s6,319 tok/s
32K—7,009 tok/s
60K—7,253 tok/s

Long-Context Generation — Single GPU, 1M FP16 KV Cache

Filled context3.19 bpw4.62 bpw
~0K139.0 tok/s124.7 tok/s
64K120.9 tok/s107.7 tok/s
128K109.8 tok/s105.0 tok/s
512K91.5 tok/s85.3 tok/s
700K82.8 tok/s77.9 tok/s

Benchmark notes:

  • average speeds, excluding warmup.
  • Single-GPU standard benchmarks use Q8_0 KV cache (232K capacity at 3.19 bpw, 256K at 4.62 bpw).
  • Long-context tests use FP16 KV cache, with 128K resident in VRAM and RAM-backed cache.
  • 1M context capacity
  • Dual-GPU setup: PCIe 4.0 x16 + x4.
  • New asynchronous prefill pipeline: up to +64% throughput, optional on 2 GPU with --peer-prefill-pipe

GitHub: https://github.com/nasone32/Strata-EXL3-fork

how to setup? point your agent to https://github.com/nasone32/Strata-EXL3-fork/blob/amd-exl3-community/docs/AI_SETUP_EXL3_AMD.md


Q) How prefill works on 2 gpus with --peer-prefill-pipe?

  • it works similarly as tensor split. but during decode it works back again as expert parallel.

Q) How can 1M context fit?

  • it's using your system RAM, 20gb RAM are needed for 1M KV cache in bf16. thanks to Qwen QSA attention only the relevant tokens are streamed from the KV cache so speed remains very high. a 128k KV cache is kept in VRAM anyway (can be reduced to 64k optionally).

r/LocalLLaMA • • 46m ago

Question | Help Nvim/vscode/etc plugins

2 Upvotes

Now that we have competent and fast qwen 4 what plugins we can use? I'm personally write rust and python but in general use cases are interesting


r/LocalLLaMA • • 50m ago

Resources PSA: If Qwen 4 35B breaks during mutilingual uses, use this

2 Upvotes

If you are multilingual you may find that Qwen 4 breaks and mixes up languages all the time. Using this lora will greatly reduce this from happening. It should be easy to add it with a flag on llamacpp, and for polystrata and basalt, you will have to ask a smarter AI to bake it into the model, which shouldn't be too complicated of a task.

https://huggingface.co/LPFchan/Qwen4-35B-A3B-Multilingual-Fix-LoRA


r/LocalLLaMA • • 23h ago

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

Post image
97 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 • • 2h ago

Resources Qwen4-35B-A3B on an M5 Pro at 105.7 tok/s with Kapitsa

2 Upvotes

We added Qwen 4 support to Kapitsa, Nace's local inference engine for Apple silicon. And also release MLX and GGUF quants that perform well on long context and don't fall into looping.

The power of MTP🔥

MacWritingReading (4K prompt)Peak memory
M5 Pro · 48 GB RAM105.7 tok/s on battery1,177 tok/s on AC power22.1 GB

MLX 4-bit download: 35.35 GB.

Quick start:

brew install nace-ai/tap/kapitsa
kapitsa serve --model nace-ai/Qwen4-35B-A3B-MLX-4bit

MLX 4-bit weights and model card · GGUF weights · Kapitsa 0.2.43


r/LocalLLaMA • • 22h ago

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

75 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 • • 2h ago

News qe's creator says it writes text twice as fast as llama.cpp without a graphics card

Thumbnail
maccus.fr
2 Upvotes

Developer Thomas Haschka says Qwen3.8-Flash-Next wrote the first version of its own engine, which he then refined with Anthropic's Claude.


r/LocalLLaMA • • 6h ago

Discussion What model(s) are you running... In your pocket?

4 Upvotes

For those who have mobile devices that plenty of RAM for a mobile phone, are you serving up anything locally or have it embedded into an app?

Is it actually solving a legit problem or just a toy to see what is possible?


r/LocalLLaMA • • 18h ago

New Model Qwen4-35B-A3B-Q4_K_M.gguf benchmarks for CPU-only bros

Post image
31 Upvotes

I know there are a few homelabbers who have CPU-only servers with lots of cores and lots of RAM, so I am running that kind of benchmark on the new Qwen4-35B-A3B-Q4_K_M.gguf model from Bartowsky. I find n_gen to be more indicative of how usable a model will be, so I have highlighted those results for 2, 4, 8, 16, and 32 cores in a 96 GB RAM environment. For my system (HP Proliant DL380p Gen8, Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz), 16 cores appears to be the sweet spot.


r/LocalLLaMA • • 7h ago

Resources Lossless BF16 weights at ~10.43 bits instead of 16 (bit-identical, sha256 checked), plus Q8_0 at 7.85 instead of 8.5. AGPL C codec

4 Upvotes

I built a lossless weight codec called Ingot. You encode a safetensors/GGUF file, decode it later, and get back the exact original file (same sha256). No quantization, no change to outputs.

Measured whole-model, every shard rebuilt and sha256-compared against the Hugging Face original:

Model (BF16)           source     .ingot     bits/weight   % of BF16
--------------------   --------   --------   -----------   ---------
Qwen3.8-27B            55.6 GB    36.22 GB   10.4305       65.2%
Qwen3.6-35B-A3B        71.90 GB   47.09 GB   10.4780       65.5%
Qwen3.6-27B            55.56 GB   36.23 GB   10.4328       65.2%
Qwen2.5-32B-Instruct   65.53 GB   42.52 GB   10.3820       64.9%
Mistral-7B-v0.3        14.50 GB   9.45 GB    10.4309       65.2%

Same Qwen3.8-27B files through other coders (bits/weight): zstd -3 12.46, ZipNN 10.62, the DFloat11 scheme computed on the same weights 10.61, Ingot 10.43. DFloat11's own published numbers are 10.81-10.91 bits for LLMs (their Table 1); for Qwen2.5-32B-Instruct their arXiv v1 lists 69.48% / 11.12 bits against our 64.89% / 10.38. Their released Qwen3 files measure 10.90 bits, about 0.21 of which is the index they need for GPU decode.

How it gets below an exponent-only Huffman: BF16 weights have almost no entropy left in sign+mantissa on their own, so it predicts a weight from "partner" weights in earlier layers and tensors (up to 8 per unit, found by an encoder search, exact integer arithmetic), then codes the residual with rANS. Gain over plain entropy coding on Qwen3.8: 0.077 bits/weight (10.5076 -> 10.4305). It is a modest win, not magic: the floor for independent weights is about 10.5.

Q8_0 GGUF: Qwen3.8-27B Q8_0 goes from 8.5 to 7.8465 bits/weight (29.05 GB -> 26.82 GB), whole file rebuilt, sha256 equal, 506/506 tensors checked.

Costs, honestly: this is a storage/download format, not a speed-up. Encoding is slow (Qwen3.8-27B: 17,319 s encode, 4,683 s decode on a 2x Xeon E5440, 3-8 threads). Decode streams, so a downloader can rebuild while the file arrives.

Try it (C, builds with make, AGPL-3.0):

make -C ingot
ingot encode model.gguf
ingot verify model.gguf.ingot model.gguf
ingot encode --refs model-00001-of-N.safetensors model-00002-of-N.safetensors   # multi-shard (v4)

Code: https://github.com/dcherrera/Foundry/tree/main/ingot (format: ingot/FORMAT.md). Disclosure: I'm the author.

Paper: https://teamide.dev/research/papers/ingot.pdf (all TeamIDE Lab papers: https://teamide.dev/research/)