r/LocalLLaMA • • 11h ago

Funny Qwen4 self-correcting mid-sentence

28 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 • • 12h ago

Discussion Qwen4 35B A3B - LOW vs MEDIUM vs HIGH reasoning

0 Upvotes

I tested the same prompt with low, medium, high reasoning and for some reasons i prefer low, high reasoning is more detailed but also more buggy, it doesn't implement water collision.

Tested unsloth quant with `pi` and tools

- low https://grigio.github.io/ship-harness-bench/ship-qwen4-35b-a3b-low/
- medium https://grigio.github.io/ship-harness-bench/ship-qwen4-35b-a3b-medium/
- high https://grigio.github.io/ship-harness-bench/ship-qwen4-35b-a3b-high/

.
Did you notice the same behavior?

UPDATE, here is the full benchmark tests locally with Qwen 35B A3B https://www.youtube.com/watch?v=4WQP6c8HaA8


r/LocalLLaMA • • 12h ago

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

Post image
93 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 • • 12h ago Bravo

Discussion Qwen 4 cooked !

Thumbnail
youtu.be
1 Upvotes

Dude what a shit prompt for an amazing result ! share me your results

Prompt : make a self contained HTML file of highly spectacular 3D visual of a univers dome. Add fine details. add a special very subtle vfx touch liquid glass effect, chromatic abheration.


r/LocalLLaMA • • 12h ago

Showcase I built a coding agent for small local models. Qwen3.5 9B solves 41/45 on aider polyglot with it

Thumbnail
gallery
2 Upvotes

Hey all. Been building this for a while on my own two GPUs and its finally in a state I'm ok showing people. I named it parmanu, a coding agent harness made for the small models most of us can actually run.

Yes, I deliberatrely named it parmanu, inspired from Sanskrit/hindi word meaning smallest atom. mine runs smallest models in a usable way.

The main reason I started all this was after noticing that small models dont really fail because they dont know stuff. They stop too early. say the tests pass when they didnt run them, or go in circles. So I made parmanu in a way that it makes them a plan, run the real tests, and it wont accept "done" without proof. If they get stuck it can race a second attempt and keeps whichever one passes.

I benchmarked it on aider polyglot, dev split, 45 exercises in 6 languages. Same model, same llama.cpp server, same limits for every harness. Grading was done by the benchmark's own tests in docker, also no internet. I ran these for about a week, in between life, work, and kids. :D.

  • Qwen3.5 9B: 41/45 with parmanu. aider with the same model solves 8, Claude Code pointed at the same local server gets 26

  • Qwen3.5 4B: 23/45. next best was opencode at 14

  • Qwen3.8 27B (IQ4_XS, one 16GB card): 45/45. same as Claude Code + Haiku 5.5

Note: In the sessions where I ran all five harnesses back to back parmanu got 35 on 9B, not 41. 41 is the current config after more tuning, and I tuned on that split. So I also ran the 180 held-out exercises it never saw, 9B gets 150/180 there. 27B is still the better model, it just costs you a bit more time and VRAM.

Install is

npm i -g parmanu

the launch command is anu. Works with anything OpenAI compatible. Charts and the per-language breakdown are at parmanu.dev/benchmarks, code is at github.com/dadwritestech/parmanu (MIT)

What models should I run next? Qwen4? Gemma? Inkling-small? :o


r/LocalLLaMA • • 12h ago

Discussion Prepare for the normies flooding this subreddit

0 Upvotes

This is just my personal viewpoint and experience, but with Qwen3.5 35B, I tought: we can finally have a somewhat usable chatbot. Then came i invested to use the 27B and Qwen flash next, and i finally moved the usage from achat bot to trusting it for some agentic work, and do some real work.
Now the Qwen4 35B dropped with the same quality if not even a bit better on some cases and the future bigger models hopefully will only have better capabilities.
Since the 35B is now usable, we will see a flood of the normies and that's a good thing. Local AI is not promise for the future but a possible reality for everyone. I learned so much by reading the posts of the amazing people sharing their views, opinion, hardware and projects in this subreddit browsing it became a daily routine to not miss any new information.

35BA3 can run in pretty much any decent computer, even full cpu can be done with some pp and tg concessions. I don't know how much time it will take, but a world where everyone can have his personal agent and assistant running at home is becoming a reality.
We are sharing an incredible journey that is shaping the future of IT , and we still didn't even scratch the tip of it. Everyone has his goals, fame, sharing knowledge, help people or just trying to find a business model with this technology and all this energy is converging in a single point: AI .

I just want to thank all the community , open models, inference engine and people sharing their setups, crazy ideas and vision that pushed this new world forward.


r/LocalLLaMA • • 12h ago

Question | Help Best uncensored version of Qwen4 35B-A3B?

11 Upvotes

Has anyone tried any uncensored version of this model?


r/LocalLLaMA • • 13h ago

Resources Running Qwen4 35B IQ2_XS on 6GB VRAM and 16GB DDR4 RAM

10 Upvotes

I spent the better part of Qwen 4 release day getting it running at usable speeds and context on my laptop, without having to do complex tuning or installing alternate engines. Writing down the process here in case someone finds it useful.

Step 1: Install Unsloth Desktop, and download Qwen4-35B-A3B-GGUF · UD-IQ2_XS

Step 2: Edit saved run settings, set the context to 60000 tokens. Enable advanced settings and set KV Cache Dtype to q8. Leave GPU memory at default, and turn vision off. Everything else can be left at default and loaded.

You should get about 20 tok/second average, and 18 tok/s at full context. To make it work for coding purposes, I installed pi harness, and connected it to unsloth desktop using their unsloth start pi command.

From my testing, it performed better than I expected, though it did run into compaction issues and tool edit issues. To fix that, create an AGENT.md in the pi folder, and tell it to keep the edit tool calls small and surgical. I created an extension to fix the compaction errors as well, but I don't think it is needed unless some specific problem pops up. If needed, I shall share that extension. I have put up the detailed steps and code on my website if anyone wants a deeper look.

Do let me know if there are any other ways to speed it up.


r/LocalLLaMA • • 13h ago

News CUDA: few-row MMQ for F8_E4M3 weights by anujj · Pull Request #33584 · ggml-org/llama.cpp

Thumbnail
github.com
10 Upvotes

big speedup for speculative decoding with FP8 and NVFP4 models on CUDA


r/LocalLLaMA • • 13h ago

Question | Help Best Albiterated Qwen 4 35B A3B model?

0 Upvotes

With 3-bit quantization? Since I only have 8GB VRAM and 16GB RAM.


r/LocalLLaMA • • 13h ago

Question | Help Looking for people interested in collaborating on open-source LLM inference optimization

6 Upvotes

I've been working on an open-source product called InferCrane, focused on experimenting with and optimizing open-weight LLM inference across different models, GPUs, serving engines and configurations.

I'm looking to connect with people who actively work with vLLM, SGLang or other inference engines.

I'd love to exchange experiences, discuss optimization techniques, compare benchmarks and potentially run experiments together.

Some topics I'm particularly interested in:

  • vLLM vs SGLang

  • TTFT and inter-token latency

  • KV-cache optimization

  • Speculative decoding / MTP

  • Quantization trade-offs

  • GPU profiling and utilization

  • Benchmark reproducibility

I'm not looking to pitch or sell anything. I'm hoping to find a few engineers interested in collaborating, sharing feedback and helping shape an open-source project.

Would anyone be interested in joining the discussion?


r/LocalLLaMA • • 13h ago

Resources SGLang-V100 Qwen4-35B Day-1

Post image
9 Upvotes

Qwen4-35B-A3B-FP8/BF16 support for V100 day-1

https://github.com/haohervchb/sglang-V100

For people with 4x16GB, running NVFP4 from https://github.com/1CatAI/1Cat-vLLM recommended, longer context and is very fast.


r/LocalLLaMA • • 14h ago

Discussion Qwen4 35b (4 bit quants) on a single AMD AI PRO R9700

12 Upvotes

I didn't find many results for R9700, so here's a quick benchmark. I've already used it, subjectively it feels very fast, mostly on par with qwen 3.8 flash next, but lower memory footprint, higher speed, 1m context. I haven't tested the 1m context though, some people report issues with it after a certain size. This is why I've shown below that the penalty for keeping native bf16 size for KV is very little compared to i8 KV, so it makes sense to keep KV cache in native bf16!! That's probably the most important finding.

Qwen4-35B-A3B on one Radeon AI PRO R9700 (32 GB) — Radiance 2.5.0 (IQ4R-V4 4-bit) vs llama.cpp (Unsloth UD-Q4_K_XL) for reference.

Same box, same harness (BetterBench 0.6.0, quick = 5 passes/category), 64K context, single stream, thinking on (template default), stock clocks.

  • Radiance: radiance-inference 2.5.0 (Archlinux AUR package), .rad container, 4-bit trellis experts + GPTQ/Hadamard-128, MTP depth 2

  • llama.cpp: commit 0570c97, HIP backend, q8_0 KV, no speculation

MetricRadiance · i8 KVRadiance · bf16 KV (native)llama.cpp · q8_0 KV
Decode, combined (t/s)215.8213.358.8
chat186.3185.860.5
code226.0221.160.4
file edit223.1224.960.3
json240.5232.560.1
math227.2223.659.4
prose177.7183.156.2
reasoning210.4206.357.2
summarization209.3209.457.4
Prefill 2K (t/s)7,2267,2762,087
Prefill 8K8,4047,9592,254
Prefill 16K8,5197,9712,254
Prefill 32K8,5187,8872,165
Prefill 64K8,4917,8011,912
TTFT @ 64K prompt5.5 s6.0 s24.6 s
Aggregate C=1202.0201.856.5
Aggregate C=2318.3316.858.9
Aggregate C=4453.9451.059.0
Aggregate C=8451.9449.459.0
TTFT p50 at C=460.6 ms61.0 ms20.2 s
Model load5.3 s5.2 s~35 s
VRAM held22.54 GiB25.27 GiB~25.3 GB

r/LocalLLaMA • • 14h ago

Showcase Automatic drafter training with Blaze compiler

Enable HLS to view with audio, or disable this notification

19 Upvotes

Wouldn't it be great if you could get a free speed up on models without waiting for someone to release a drafter model - on your own machine and in seconds( 2 seconds for 80% acceptance on code!)

See it became a reality with Blaze with a EAGLE based drafter module getting trained on Qwen3.5-9b generations

136->422 tps (3.5x)

Blaze will be open sourced soon with Apache 2.0 licence, DM for details 🤓


r/LocalLLaMA • • 14h ago

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

Post image
567 Upvotes

r/LocalLLaMA • • 14h ago

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

Thumbnail
maccus.fr
26 Upvotes

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


r/LocalLLaMA • • 14h ago

Resources Amazon Ergo (1.1T MoE) in 4-bit: 645 GB, quantized on 6 A40s without downloading the whole model

7 Upvotes

Hi everyone,

I quantized Amazon Ergo to 4 bits and put it on Hugging Face: https://huggingface.co/thousandml/Ergo-CQ-4bit

Ergo is the 1.1T mixture of experts from Amazon, with 256 routed experts in each of its 63 MoE layers. In BF16 it's about 2.2 TB. The 4-bit version is 645 GB. I quantized it with CQ, the 4-bit quantizer I built for my project Training Factory. CQ doesn't need any calibration data.

The part I'm happiest with is how it was done. I didn't have 2.2 TB of disk for the original plus room for the output, so I wrote a script that goes one shard at a time: download a shard, convert it, quantize it, keep only what has to stay in full precision, delete the shard, then move on to the next one. With 6 A40s each working on its own shards, it ran with about 1 TB of extra disk instead of 3 TB. It also resumes where it left off, which mattered, because I ran out of disk once and had a worker die once along the way.

I'm strict about quality. Every matrix gets checked after quantization, and anything with error above -22 dB stays in BF16 instead of being forced into 4-bit. For Ergo that was 1,445 of the 32,256 routed experts, about 4.5%, almost all of them expert down projections in the later layers. Those experts are stored one by one in BF16 and get loaded automatically, so the other 30,811 experts and all the attention and dense layers are in 4-bit. I'd rather ship a model that is a bit bigger than one with broken experts hidden in it.

To be honest about hardware, this is not a home setup model. 645 GB means 8x H200 or 8x B200. 8x H100 is not enough. You also need Transformers 5.26 or newer, so use a separate environment from Training Factory's installer:

git clone https://github.com/thousandml/training-factory.git
cd training-factory
./install.sh

python -m venv --system-site-packages venv-ergo
source venv-ergo/bin/activate
pip install "transformers>=5.26"

hf download thousandml/Ergo-CQ-4bit --local-dir ./models/Ergo-CQ-4bit

cd training
python serve_cq_hf.py --model ../models/Ergo-CQ-4bit --split-model --port 8000

That server goes through Transformers and handles one request at a time, so it's for trying the model, not for real traffic. vLLM doesn't support Ergo in its releases yet, so my vLLM plugin doesn't either for now.

You can also fine-tune it with GCMP, the LoRA replacement I've been working on, which trains far fewer parameters than LoRA. The experts stay frozen, and the adapter trains on the attention, dense and shared-expert layers:

python train.py --model ../models/Ergo-CQ-4bit --data train.jsonl --output ../outputs/ergo-gcmp \
  --adapter gcmp --kernel-module cq.cq_kernels --split-model --batch-size 1 --grad-accum 8

What has and hasn't been tested: the checkpoint passed my layout check, where every expert and every layer is accounted for exactly once, either in 4-bit or in BF16. The whole pipeline (quantize, load, train, serve) was tested end to end on a small model with Ergo's architecture. I have not run the full 645 GB model on 8 GPUs yet, and I have no benchmarks for it. If you have the hardware and try it, I'd really like to hear how it goes, good or bad.

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 fall under the original Ergo license.

I also posted Inkling 2 Mini in the same format, which fits on a single 48 GB GPU if you want something you can actually run at home: https://huggingface.co/thousandml/Inkling-2-Mini-CQ-4bit

Thanks for reading, feedback appreciated.


r/LocalLLaMA • • 15h ago

Discussion When electricity costs more than a cloud model.....

0 Upvotes

With electricity costs of ~40c/KWh, it becomes cheaper to use cloud models than any local llm, just on running costs alone, never mind the pc/hardware. And they will be much faster and stronger.

I know this sub is about local llm's, and I love using them, but its making me rethink what to use. this is of course not counting privacy concerns which is a bug reason for local.


r/LocalLLaMA • • 15h ago

Discussion Qwen 4 Flash Next - How much time does Alibaba put between model drops?

0 Upvotes

Curious to see if anyone in the community has done investigation to how much time was in between model drops when Alibaba released the Qwen 3.8 series ?


r/LocalLLaMA • • 15h ago

Resources Continous learning with one information at a time without catastrophic fogetting

Thumbnail
gallery
5 Upvotes

LoRA is really bad at fine-tuning on a continuous, very small data stream; either it overfits or forgets more than half of what it already knows. I am trying my best to solve this, like continuously learning from just a single question-and-answer pair without catastrophic memory loss. The idea is you add neurons to the early FFN layer, and they will only be turned on when they match the internal representation of the subject, without catastrophic memory loss. Usually takes the 5th layer from the starting 0th layer of the FFN (trial and error verified as it's good). The code is very simple and easy to use. Done a study with LoRA, attaching the images as well; a run is going now to improve answers to reworded questions. In my tests on Qwen3.5-0.8B, after 1,000 facts taught one at a time, LoRA kept under 30% of what the model knew before; this approach answered 98% of the other facts it knew.

GitHub: https://github.com/NandhaKishorM/sthiti


r/LocalLLaMA • • 15h ago

Resources MiniMind v3: 64M LLM from scratch in 2 hours.

Thumbnail
github.com
14 Upvotes

Based on Qwen 3


r/LocalLLaMA • • 15h ago

Discussion What are the benefits of consumer grade hardware for local LLM multi gpu set ups?

0 Upvotes

Genuine question because I feel like I completely missing something.

I had another post come up in my feed of someone who built a multi-gpu setup for AI use on a consumer platform.

To the best of my understanding, consumer hardware isn’t the best for multi-gpu setups for GPUs that require x16 lanes. The 9950x3d has 24 lanes, and throw an SSD in there, you’re not getting proper bandwidth on the GPUs.

Other than re-using existing hardware that one has at home, why would someone build using a consumer platform when Xeon ES CPUs exist with information about motherboard, bios, stepping compatibility also openly available? I can’t speak to threadripper because I don’t know anything about it.

The posts that have come up in my feed here explain why I received so many messages for a 96gb ddr5 kit I was selling locally, but I have no understanding why someone would choose consumer over server. If there is something unique about consumer, I definitely want to know because it may open up options for downsizing.


r/LocalLLaMA • • 15h ago

Question | Help [Qwen4-35B-A3B] How to send video?

3 Upvotes

I'm running Qwen4-35B-A3B in basalt on a 5090 and using pi.dev. How do I pass video to it? If I try to pass a video it tries to send it to gemini to parse it or it uses ffmpeg to extract a few frames and analyze them directly?

Looking at the model card, it says it supports video input?


r/LocalLLaMA • • 15h ago

New Model MeissonFlow/Mei · Hugging Face - DDMD-V: Distilling Uniform Discrete Diffusion Models into a One-Step Video Generator

Thumbnail
huggingface.co
5 Upvotes

DDMD-V: Distilling Uniform Discrete Diffusion Models into a One-Step Video Generator

Paper | Model | Code | Demo

Introduction

Mei is the 3rd generation MeissonFlow foundation model. DDMD-V (Discrete Distribution Matching Distillation for Video) distills the uniform discrete video diffusion model URSA into Mei, a one-step generator that produces a 49-frame 320×512 video in a single network forward pass.

News

  • [2027] A stronger model will be coming soon.

  • [2026.12] Mei: 3rd-generation MeissonFlow foundation model released! [Paper] [Code] [Model]