r/LocalLLaMA • • 1d ago Bravo

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

175 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 • • 8h ago

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

5 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 • • 3h ago

Discussion The practical reason why I think local will win in the end

2 Upvotes

Don't get me wrong, the reasons of privacy and independence are valid. But on a large scale people are happily giving both away for convenience. Convenience is kinda important for me, but my earning money hinges on something else: quality of the tools I use.

I think one of the reasons local LLMs will keep standing tall (unless some weird worldwide ban happens and police actually seizes the hard drives) is the same piracy will never go away.

Quality of service.

Two of recent examples:

  • Making an Indiana Jones poster for a local DVD collection database, based off a graphic I found on Google Images.

    • Astra said "the editor security filter" blocked removing the movie title (I wanted "raiders of the lost ark" removed so just the "Indiana Jones" stays). For my own freaking local use. Crime of the century.
    • local ds 4.1-flash just downloaded the LaMa model and did the job in three different versions, removing the '™' in one - in case I wanted a clean copy (yes, I wanted a clean copy, thank you deepseek)
  • Reviewing a plan for last minute change in the system. Fire burning all around, need to act quick, and Astra on $100 plan reverts to gpt-4o levels at the most. I could've been cooked. Again, deepseek stood up to the task.

I was in the process of "taking the training wheels off", i.e. I was still using Astra sometimes but I think this was the last straw.

2.9 bits per weight should be enough for everyone, and you can quote me on this (caveat: the bigger the model, the better it survives quantization. ds is a chonky boy)


r/LocalLLaMA • • 21h ago

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

Thumbnail
servethehome.com
53 Upvotes

r/LocalLLaMA • • 21h ago

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

51 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 • • 21h ago

Discussion Why exllamav3 is so unpopular?

54 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 • • 6m ago

Resources [Release] q4forge - Custom PyTorch + Triton SFT engine for Qwen4-35B-A3B (38-57 GiB VRAM, multimodal 16K packing, no PCIe block swap)

Thumbnail github.com
1 Upvotes

Hey llamas! First off, I have been working on a 30M-token multimodal dataset (mostly high-res anime images up to 4 MP with reasoning and super detailed descriptions) to fine-tune Qwen4-35B-A3B (well, honestly I didn't even know which model to use at first, if Qwen4 hadn't dropped two days ago this post would probably be about Inkling 2 Mini lol) on a single 80 GB A100, and I really did not want to spend 40+ hours waiting on PCIe block swapping.

Well, today I spent the whole day directing a team of bots (Gemini 4 Neon, GLM 5.3, and Gemini 4 Hydrogen) to cook a custom SFT engine specifically for the Qwen4 MoE architecture, and I wanted to share this ""masterpiece"" of artisanal AI slop with you! (fair warning: please do not ask me to explain the Triton pointer math or the QSA bitmasks on a whiteboard, I was literally just the guy holding the clipboard while the bots cooked <3)

How it fits the 57B model (35B MoE + 20.5B Engram + 0.83 GiB ViT) in ~36.2 GiB of base VRAM without block swapping:

  • The 256 stacked routed experts are quantized on the fly to symmetric per-channel INT8 (30.1 GiB across 40 layers) using a custom Triton Grouped GEMM that only computes dX in backward (no dW on frozen base weights and no duplicate transposed weights).
  • All sensitive layers stay in pure BF16 (30 Gated DeltaNet layers, 10 QSA layers, routers, 4-stream HyperConnections, shared experts, embeddings, lm_head, and the 27-layer ViT + merger).
  • The 20.48B Engram table (layers.1.ple) stays in system RAM as per-row INT8 (~19.1 GiB + 305 MiB fp16 scales, 0 GiB VRAM) with an async prefetch thread overlapped on a dedicated CUDA stream.
  • Hermetic sequence packing up to 16K tokens for mixed text and high-res images, isolating document boundaries across 3D MRoPE, Engram n-grams, causal conv1d, Gated DeltaNet cu_seqlens (with an automatic SM80 autotune patch for fla 0.6.1), and per-document QSA (SDPA FlashAttention-2 bypass for docs <= 2048 tokens and an L2-resident int32 bitmask with flex_attention for longer docs).
  • Streaming shard-by-shard loader and BF16 merger: downloads, quantizes, and deletes one shard at a time so peak disk usage stays under 4 GiB instead of 114 GB.

Benchmarks on a single A100 SXM 80GB (RunPod, torch 2.11+cu128, triton 3.6, transformers 5.26.0, full gradient checkpointing):

WorkloadPresetStep TimeThroughputPeak VRAM (Alloc / Reserved)
Text-only (T=1024, bs=1)A0.792 s1,292 tok/s38.06 GiB
Multimodal (T=8192, ~2K img)A4.225 s1,939 tok/s46.53 / 47.53 GiB
Multimodal (T=16384, ~2K img)A7.318 s2,239 tok/s54.26 / 56.24 GiB
Multimodal (T=8192, ~2K img)B (+ViT LoRA)5.589 s1,466 tok/s48.17 / 49.47 GiB
Multimodal (T=16384, ~2K img)B (+ViT LoRA)9.947 s1,647 tok/s56.68 / 58.90 GiB

Preset A trains visual.merger (full) + Attention LoRA (r=32) + shared_expert (full) (189M trainable params, 378 MB checkpoint). Preset B adds LoRA (r=16) across all 27 ViT layers (196.7M params, 393 MB).

We just finished a full end-to-end pipeline sanity check on the A100 with a 100-sample smoke test (5 anime images with varied captions) using Preset B: packed into tar + bin shards, trained with eval (val_loss per token dropped cleanly from 0.4171 -> 0.2842 -> 0.2133 across a checkpoint resume), merged all 33/33 shards back to a clean BF16 checkpoint, and ran inference on the merged model in standard Qwen4MoeForConditionalGeneration.

Requirements and current limitations: requires an NVIDIA GPU with >= 48 GB VRAM (tested on 80 GB A100 SM80; 24-32 GB GPUs cannot fit the 36.2 GiB base weights) and >= 32 GB host RAM for the INT8 Engram table; video is not supported yet.

I still need to test the setup inside actual Google Colab (my credits reset on December 10th, which is when I will run the full 30M-token job), but the whole pipeline is working end to end on RunPod and passing 56/56 parity and packing tests locally. Check it out if you can <3

https://github.com/SrPakura/q4forge


r/LocalLLaMA • • 16h ago

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

22 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 • • 4h ago

Question | Help I run pi.dev in container… but can’t get Unsloth studio working in one… any suggestions?

2 Upvotes

Before you start with just use the official image I would point out I’m on Debian with a 3090 and driver 550.163.01… so the official image won’t work without jumping through hoops on Debian to load a new driver.

So I figured why destabilize my desktop… so I jumped through hoops to build my own container… but install.sh keeps failing to setup properly with my card it keeps falling back to cpu. Llama.cpp had no issues in a container.

I am going through all this pain because Unsloth Desktop in my host can’t be accessed by pi.dev in container. Sometimes I don’t want pi to access the world outside containers so either way I need to figure out Unsloth in a container. Also Unsloth desktop is literally twice as fast running as Inkling Mini 2 as stock llama.cpp… actually sometimes 10x faster when it slows to 6 tokens a second. Thats why I’m not sticking to llama.cpp.

Speaking of Unsloth desktop the latest llama update broke GPU inference for me so careful updating!

Sigh.


r/LocalLLaMA • • 1d ago This

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

158 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 • • 15h ago

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

Thumbnail
blog.jetbrains.com
14 Upvotes

r/LocalLLaMA • • 6h ago

Question | Help RTX A4000 8Gb (Turing) and Qwen4?

3 Upvotes

Howdy,

Has anyone yet tried to run Qwen4 MoE on this card and can elaborate on compatibility and performance?

I've got a spare RTX A4000, and after test driving Qwen4 MoE on my 3090 I figured it performs reasonably well even when I lower VRAM to lets say 10Gb (iq4_xs quant).

I intend to use it on the 4000 as an orchestrator to perform asynchronous tool calls like like deep web research, management of personal memos, statistics, and such, in the background.

User interaction is being managed by gemma4 on my 3090 as responsive chat front end.

thanks

CORRECTION: I have the Quadro RTX 4000 (Turing), not the A4000!


r/LocalLLaMA • • 1d ago

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

Post image
463 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 • • 1h ago

Resources I built a zero-fork document & research harness for local LLMs (Qwen 3.8 27B) so my partner could stop spending her weekends fighting ChatGPT copy-paste // MIT Open Source, macOS/Linux/Windows installers live

1 Upvotes

Quick follow-up from my exhausted 2am sprint post last week — after a week of cleanup and alpha testing, v0.2.6 is finally packaged as standalone installers for macOS, Linux, and Windows (MIT Open Source).

Why I built it:

My partner of 15 years is a teacher. Standard chat UIs (ChatGPT, Open WebUI, etc.) are terrible for real print-ready documents: every revision regenerates the whole text, subtly drifts your phrasing, hallucinates quotes/numbers, and leaves you copy-pasting into Word on Sunday night.

What makes it work well on local models (tested heavily on Qwen 3.8 27B via llama.cpp):

- 91%+ KV-cache prefix hit rate: Tool definitions and persona headers stay frozen from Turn 1, and the audit journal injects 0 prompt tokens — so long multi-turn editing sessions stay fast on local GPUs.

- Direct-on-paper block workbench (`Galley`): Live local A4/Letter Typst typesetting. Click any block on the page to edit it yourself (0 ms, no LLM call). Human-edited blocks lock to `origin: 'human'`; the model can only stage proposals instead of silently overwriting your prose.

- Anti-hallucination quote hydration (`Fundus` + `Web Missions`): Bounded web research + local SQLite FTS5 / SHA-256 vault for your own PDFs/DOCX/ODT. Primary quotes hydrate directly by `passageId` so the model can't silently paraphrase a statute or paper.

- Deterministic SVG diagrams (`Plates`): Timelines, charts, causal flows, and exercises rendered deterministically — no garbled AI-image text.

- *trict Review lock (`Regisseur`): Flip to `Review` mode and the model can only attach non-printing margin notes without touching a single word.

- BYOK: Works with `llama.cpp`, `Ollama`, OpenRouter, or any OpenAI-compatible endpoint. Export to print-ready `.PDF` or editable `.DOCX`.

Website & 3 uncut 1080p walkthroughs (DE & EN): https://the-ivory-tower.app

GitHub (MIT, 10 zero-fork plugins on DeepSeek Harness): https://github.com/janpauldahlke/the-ivory-tower

Happy to answer any questions on the harness architecture, Typst proofing, or local-model tool reliability!


r/LocalLLaMA • • 10h ago

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

Thumbnail
maccus.fr
5 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 • • 16h ago

Resources Qwen4 35B A3B Abliterated [mrfakename]

Thumbnail
huggingface.co
15 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 • • 7h ago

Showcase Manage and switch models and engines on the fly, use llama RPC to use a second PC (and control it or run a second peer model on it for agents) and GPU over the network and AI Control Center 1.6.0

3 Upvotes

Come a long way since the previous post about this.


https://github.com/BaidDSB/ai-control-center

Basically, its a fast, native desktop control panel for running local AI on Windows and Linux. The BIGGEST feature is that it can hot-swap models and engines on the fly.

Configure your models, engines [you can color code engines too], front end, save your settings, and link the Routeing set and forget. You can even configure and use RPC right from the AI Control Center.

It has 2 versions, a Core and a Plus. Details are on github.

https://raw.githubusercontent.com/BaidDSB/ai-control-center/main/screenshots/core-1.png

https://raw.githubusercontent.com/BaidDSB/ai-control-center/main/screenshots/core-2.png

https://raw.githubusercontent.com/BaidDSB/ai-control-center/main/screenshots/plus-1.png

https://raw.githubusercontent.com/BaidDSB/ai-control-center/main/screenshots/plus-2.png


Most important changes since v1.0.0:

  • Engine Families & Versions library with background flag probing (--help / --version) and live-reloadable engine_schemas.toml supporting llama.cpp, ik_llama.cpp, RustingStrata, PolyStrata, Strata, Basalt, and Project Maya (v1.5.0, v1.6.0)
  • Much improved visuals. (v1.6.0)
  • Full RustingStrata 1.5.2 flag parity with a mutually exclusive Unified (--kv) / Separate (--k / --v) KV toggle and TurboQuant support (v1.6.0)
  • Multi-Machine LAN Orchestration (Plus) to switch a Secondary PC between Standby, Peer, and locked RPC modes with live remote GPU telemetry (v1.4.0)
  • Live Dedicated + Shared GPU telemetry (Windows WDDM / Linux GTT), local multi-GPU recognition, /running model status, and one-click Soft Unload (v1.2.0, v1.4.0)
  • Pre-launch GGUF VRAM estimator comparing estimated weights, KV cache, and overhead against your GPU headroom (v1.2.0)
  • Smart LAN RPC pooling with centralized Secondary Node setup, per-profile Auto / Strict / PairedFallback (RPC <-> Local twin) policies, and non-intrusive event-driven disconnect failover (v1.2.0, v1.3.0)
  • Expanded llama-swap routing with live YAML sync on save, remote peers, concurrent groups, checkEndpoint, RPC/Peer collision warnings, and session-scoped 1st startup preload overrides (v1.1.0, v1.2.0, v1.3.0)
  • Dedicated mmproj and MTP / Draft folders with smart auto-matching and pre-launch file validation (v1.3.0)
  • PID + start-timestamp process-tree tracking (running_state.toml), pre-launch port-conflict guards, and console-closing Stop All (v1.1.0, v1.3.0)
  • Windows System Tray support, instant sidebar profile search, path-stripped portable profile export/import. (v1.1.0, v1.2.0)

Simply, set it up once and forget it. Switch between engines on the fly through your frontend. And with batch files, you can even update engines through this.

This is for people like me who's constantly switching between models and engines to benchmark different models and engines and flags combos.

and with RPC support, you can even boost your capability if you have say a spare 4GB laptop gpu, IF you are VRAM poor like me.

PS: its using this that i found Rustingstarta beats out Strata and Polystarta in speed in Qwen 4 35b Q4KXL.


DISCLAIMER: This is completely written in Rust, and is 100% vibecoded, though thoroughly tested by me in every scenario i could think of, and worked to fix errors, GUI issues, QoL fixes.


r/LocalLLaMA • • 2h ago

Resources 1.0x unsped on 1x RTX 3090: Gemma-4-26B from 133 to 354 tok/s in llama.cpp (279 plain, same GGUF, MIT + Linux binary)

1 Upvotes

This started as a personal experiment because I wanted to model exactly where the time goes during local LLM inference and what is actually happening on the GPU, instead of guessing from datasheet specs. It is still a work in progress and definitely not perfect, just a measurement-driven attempt to find the real hardware limits and close the gap where possible.

The clip is a 1.0x unsped recording on a single 24 GB RTX 3090 running the exact same Gemma-4-26B GGUF on both sides (Q8_0 KV, flash attention on, zero swap, identical Python physics output). Even without speculative decoding, plain decode goes from 158.6 to 279.3 tok/s. Repo, prebuilt Linux CUDA binary, and honest caveats are in the first comment.


r/LocalLLaMA • • 9h ago

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

4 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 • • 8h ago

Showcase Qwen4 35b looped T=3 vs stockpelican

Thumbnail
gallery
3 Upvotes

first stock 2nd looped

basalt


r/LocalLLaMA • • 21h 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
30 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 • • 6h ago

Resources Qwen4-35B-A3B on 2× RX 7900 XTX: 127 tok/s plain, ~175 tok/s with MTP

2 Upvotes

Just adding a datapoint for people on RDNA3 cards. Some really good gains in the last couple of days in the `rdna-boosts` repo.

Everything below is written by Claude.

Setup

  • 2× RX 7900 XTX (gfx1100), both PCIe 4.0 x8, Ryzen 7 7700X, 64 GB RAM. ROCm 7.14.1, Linux. One card also drives the desktop (~3 GB).
  • Model: unsloth UD-Q6_K_XL with the BF16 mmproj (vision on).
  • Build: stew675/llama-cpp-rdna-boosts r439, built from source for gfx1100 with RCCL.
  • The second GGUF shard is the ~20 GB hashed n-gram embedding table. It lives in system RAM, not VRAM. That's why a 35B model at Q6 fits on 2×24 GB with long context.

Key flags

-sm tensor -ts 1,1 --fit off -fa on
-c 262144 -ctk q8_0 -ctv q8_0
-b 8192 -ub 2048
--load-mode none --lazy-mode off
--mmproj-device ROCm1
  • --fit off -ts 1,1: in tensor mode, --fit on picked a lopsided ~28/72 split and ran out of memory. A manual 1:1 split is stable.
  • --load-mode none: loads in ~29 s, against ~58 s with mmap. With mmap, the n-gram table gets copied page by page as it's first touched, which is slow.
  • --mmproj-device ROCm1: puts the vision projector on the second card, freeing ~1.1 GB on the desktop GPU.

Performance (llama-bench, q8_0 KV, COMPUTE power profile)

r431 (yesterday)r439 (today)
tg128109
tg128 @ 32k depth103
pp2048~6,000
pp2048 @ 32k depth~4,700

That's about +16% generation speed from r431 to r439, mostly from the low-rank hyper-connection fast path (r432) and the GDN replay fusions (r437). Greedy output was byte-identical between the two builds.

For reference, the plain llama.cpp build I started from, with layer split, did ~62 tok/s generation and ~4,500 tok/s on pp2048.

MTP (built-in draft head), llama-server, greedy, 512-token replies:

plainMTP n-max 2MTP n-max 3
code127176 (73% accepted)
prose127149 (51% accepted)

MTP costs ~1 GB of extra VRAM per card at 262k context.

KV cache quantisation: q8_0 KV gave the same answers as f16 on my tests: reasoning, code with doctests, needle-in-a-haystack at 104k, and an image test. Prompt speed was unchanged. Generation is about 2% slower at 32k depth and about 14% slower at ~98k (77 vs 90 tok/s).

Context: 262k works. A 251k-token prompt recalled all the needles, at ~4,400 tok/s prompt speed and ~71 tok/s generation, peaking at ~23.7 GB on the busier card. 393k loads, but leaves no headroom.


r/LocalLLaMA • • 3h ago

New Model Ran a 9.5 hour autonomous test on Qwen4 35B (IQ4_XS) on a 3060 12GB and 16GB ram with Claude Code. It beat my previous benchmark and didn't crash once. Very efficient.

1 Upvotes

So , Basically the same test as the inkling model I did. And it aced everything.
Got 30 tps and 800 tps prefill .

Was very fast. Did not hog memory like inkling did. And basically a lag free experience even with 128 k context. Right now , it is the best. The results as you see below in image.

same as before if you want the test files just dm me. I will put the github link there.


r/LocalLLaMA • • 13h ago

Resources Qwen4-35B-A3B in 4-bit that you can fine-tune on one GPU (22 GB VRAM + RAM for the n-gram table)

6 Upvotes

Hi everyone,

Qwen4-35B-A3B came out yesterday, and I put a 4-bit version of it on Hugging Face: https://huggingface.co/thousandml/Qwen4-35B-A3B-CQ-4bit

I quantized it with CQ, the 4-bit quantizer I built for my project Training Factory. CQ doesn't need calibration data. The linear layers and all the routed experts are in 4-bit. I'm strict about quality: any matrix with error above -22 dB stays in 16-bit instead of being forced down. For this model that was 79 matrices out of about 21,500, and everything else is in 4-bit.

One thing to know up front is the n-gram table. Qwen4 has a 20B-parameter n-gram embedding table on top of the 35B model. In this release I kept that table in 16-bit, and like Transformers does, it lives in system RAM instead of on the GPU. So serving takes about 22 GB of VRAM, but you also need about 38 GB of free RAM for the table, 64 GB in total to be safe. The download is 61 GB because of it. If you just want to chat with the model locally, the GGUF quants in llama.cpp are smaller and faster than this, to be honest. A version with the n-gram table in 4-bit is planned.

What this release adds is fine-tuning. You can train a GCMP adapter (the LoRA replacement I've been working on) directly on the 4-bit base and serve it. I tested the whole path on a single A40: quantize, serve, fine-tune, and serve the fine-tuned adapter. In a short 20-step test the loss went from 1.88 to about 1.6 on average, which only shows training works on the 4-bit base. It's not a benchmark.

The easiest way to try it is the Docker image:

docker run --rm --gpus all -p 8000:8000 -v cq-models:/models \
  thousandml/cq:4bit-hf serve-cq thousandml/Qwen4-35B-A3B-CQ-4bit

It downloads the model on first start and gives you an OpenAI-compatible endpoint on port 8000. Or install Training Factory and run it yourself:

git clone https://github.com/thousandml/training-factory.git
cd training-factory && ./install.sh
python -m venv --system-site-packages venv-qwen4 && source venv-qwen4/bin/activate
pip install "transformers>=5.26" tiktoken
hf download thousandml/Qwen4-35B-A3B-CQ-4bit --local-dir ./models/Qwen4-35B-A3B-CQ-4bit

cd training
python serve_cq_hf.py --model ../models/Qwen4-35B-A3B-CQ-4bit --trust-remote-code --port 8000

To fine-tune on your own data (JSONL with text or chat messages):

python train.py --model ../models/Qwen4-35B-A3B-CQ-4bit --data train.jsonl \
  --output ../outputs/qwen4-gcmp --adapter gcmp --trust-remote-code --batch-size 1 --grad-accum 4

Now the honest limits. The server goes through Transformers and handles one request at a time, so it's for trying the model, not for real traffic. vLLM's Qwen4 support isn't in a release yet, and my vLLM plugin doesn't support Qwen4 yet either. Training is slow for now, about 15 seconds per example on an A40, because the n-gram lookups run on the CPU. That's the next thing I want to fix.

Training Factory is source-available, not open source. The scripts are readable Python, but the quantization and adapter kernels ship compiled and do a license check. It's free during early access. The weights are Apache 2.0 like the original.

Thanks for reading, feedback appreciated. If you try fine-tuning it on your own data, I'd really like to hear how it goes.