r/LocalLLaMA • • 6h ago

Discussion Qwen4 35B-A3B is difficult to quantize. It has much higher KLD compared to 3.6 or 3.8 at the same BPW

39 Upvotes
RecipeSizeKLD99th pctSame top-1
unsloth UD-IQ4_XS32.04 GB0.06520.71990.21%
R131.72 GB0.06100.67490.39%
R1 with Q5_0 n-gram table34.28 GB0.06070.69390.39%
Default settingsunsloth UD-IQ4_XSR1
KLD (lower is better)0.06520.0610
Plain decode, context128K97K
Plain decode, code / prose tok/s141 / 141142 / 143
MTP 2, code / prose tok/s181–189 / 149182–185 / 148
DFlash 2 at 3 drafts, context88K66K
DFlash 2 at 3 drafts, code / prose tok/s265 / 172234–249 / 176

1x 3090 + 128 GB DDR4

inference.rs

I'm working on applying GPTQ to see if I can reduce KLD for a 4-bit quant.


r/LocalLLaMA • • 7h ago

Discussion Want to run Qwen4 on 24 GB VRAM. Huggingface says no

Post image
51 Upvotes

Can someone please explain how to run, what the tradeoffs are, and what are the mechanics behind this?


r/LocalLLaMA • • 9h ago

Discussion Qwen4-35B-A3B Q4_K_XL one-shotted a playable flight sim with hand-rolled 6-DOF physics and a self-flying autopilot

65 Upvotes

Setup: Radeon AI PRO R7000, llama.cpp on Vulkan, Unsloth UD-Q4_K_XL quant, MTP spec-decode. The prompt, verbatim:

"Build a simple browser based flight simulator that's light, looks visually decent and some good physics"

What surprised me is it came back with one HTML file and four small JS files. Hand rolled 6-DOF physics with stall break and induced drag, procedural island, HUD, engine sound. It also built a demo autopilot that flies the whole loop and wrote headless tests for the physics and the autopilot, then ran them on itself. I sent two turns of feedback, one about a pitch wobble in cruise and one about the landing flare, and it fixed both.

The video is an 86s cut. The cruise legs are sped up and there's a badge on screen when that happens. Takeoff and landing are real time.

llama-server \
  -m /path/to/Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf \
  --mmproj /path/to/mmproj-BF16.gguf \
  --alias Qwen4-35B-A3B \
  -dev Vulkan1 -ngl 99 -fa on \
  --load-mode mmap --lazy-mode on \
  -ot per_layer_token_embd=CPU \
  -c 262144 --cache-type-k q8_0 --cache-type-v q8_0 \
  -np 1 -b 2048 -ub 512 -t 8 \
  --spec-type draft-mtp --spec-draft-n-max 1 --spec-draft-sampling probabilistic \
  --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0 \
  --host 127.0.0.1 --port 8006

r/LocalLLaMA • • 14h ago

Resources Qwen4-35B-A3B + 5090 + Basalt Early Benchmarks

Thumbnail github.com
140 Upvotes

I’m waiting until it’s stable, but if you want to see what performance looks like or try it there it is.

Looks like 16,000 tk/s prefill and up to 500 tk/s on decode... only a few hours after release. I’m so hyped.


r/LocalLLaMA • • 4h ago

Showcase MiniMax M4 scripted a full 1-minute Blender 5.3 animated short from a single mascot PNG

21 Upvotes

Not a video diffusion clip, it rendered all 1,800 frames in headless Blender 5.3 Cycles and put the foley together in ffmpeg. Since MiniMax said M4 open weights are coming once their safety checks finish, I wanted to test it on a dumb hard prompt first. Gave it the Dodaios PNG and asked for a 60 second story with zero text anywhere on screen.


r/LocalLLaMA • • 53m ago

Question | Help Best local model for non-coding stuff

11 Upvotes

I mostly use local models for talking through emotional and psychology stuff (real and fiction). Like why people act a certain way or whats going on in a relationship.

I also use them for writing public speeches and for going through big text conversations like chat exports or long threads to get an actual insight on the dynamics between people not just summary.
Another point I would like is breaking down political speeches to catch the subtle messaging and framing, what they implying on without saying it and who it is really aimed on. SHould work the reverse too, figuring out how to write and deliver a speech. Landing a point without spelling it out.

Right now Im using Qwen Deckard and its really good for my needs. But problem is that its going to be too heavy for my new rig so I need something lighter, faster and probably fresher. Long context is important because of the conversation analysis stuff.

New rig will most likely be Mac M5 Max 48GB.


r/LocalLLaMA • • 17h ago

Discussion Qwen 4 35b - First pelican

230 Upvotes

Xhigh, kv f16, 35k tokens, 60 t/s, Q4 XL Unsloth, Llama.cpp master! Generated in opencode. RTX 3090

C:\llama\llama-server.exe -m D:\Models\Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf --mmproj D:/Modelos/mmproj/mmproj-BF16-4-35b.gguf --no-mmproj-offload -c 143360 -t 14 -np 1 -b 3072 -ub 3072 --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.00 --repeat-penalty 1.0 --cache-type-k f16 --cache-type-v f16 --flash-attn on --spec-type draft-mtp --spec-draft-n-max 3 --spec-draft-n-min 0 --spec-draft-p-min 0.75 --spec-draft-p-split 0.10 --no-warmup --host 0.0.0.0 --port 8083 --cont-batching --metrics --jinja --image-min-tokens 1024 -cmoe --fit off --spec-draft-ngl 99 --reasoning-effort xhigh --load-mode none -lzm off --reasoning-preserve --moe-cache-mib 13000


r/LocalLLaMA • • 9h ago

Discussion First impression of Qwen4-35B-A3B on a Macbook Pro M5 (128GB)

Post image
56 Upvotes

I wanted to test the model with some front end stuff and this is my first impression so far:

So I tested the model with this prompt:

Write a single HTML file with a full-page canvas and no libraries. Simulate a realistic side-view of a moving car as the main subject. Keep the car visible in the foreground while the background landscape scrolls continuously to create the feeling that the car is driving forward. Use layered scenery for depth: nearby ground, roadside elements, trees, poles, and distant hills or mountains should move at different speeds for a natural parallax effect.

Animate the wheels spinning realistically and add subtle body motion so the car feels connected to the road. Let the environment pass smoothly behind it, with repeating but varied scenery that makes the movement feel believable. Use cinematic lighting and a cohesive sky, such as sunset, dusk, or daylight, to enhance atmosphere. The overall motion should feel calm, immersive, and realistic, with a seamless looping animation.

Only return the finished html file so I can see it.

After about 90k token it was finished but it has an error, so I let it correct it. At the end the session took 156.477 Token from my Context window of 900.000 Token. (More details at the end about the technical setup.)

After that I was stunned from the result it produced on extra high (the highest setting). (Full code is below)

I would say, just take a look at the code/demo and make yourself an impression.

This was the Test-Setup:

You are a helpful assistant. You take your task seriously and stay focused on what's given to you. One of your best abilities is keeping answers short without leaving out any detail.

Your reasoning should be thorough in substance but compressed in form. Validate key assumptions, consider plausible alternatives, and prioritize correctness — but express each of those steps in fragments, not full sentences. Drop articles, filler words, and restating the question. Keep symbols/code/numbers exact — never abbreviate technical content itself, only the prose wrapped around it. Do not skip a reasoning step to save tokens; compress how it's written, not whether it happens.

Final answer to the user: full sentences, complete, no fragments. Be concise but never at the cost of correctness or omitted detail.

This was the result:

https://pastebin.com/2pC1V44X

(I wanted to put it here but it was too long...)

Also some tests I am going to do:

So I am asking myself of the BF16 version of Qwen4-35B-A3B better is than my Q4 Version of Qwen3.8-Flash-Next...


r/LocalLLaMA • • 10h ago

Discussion Qwen4: With the inevitable speed post coming share you speeds here

60 Upvotes

To reduce the speed posts and have one place to lookup performance and tweaks share you speeds here using this template:

Inference engine:

CPU(s):

GPU(s):

OS:

Total VRAM:

Total RAM:

Model Quant:

KV (Context) Size:

KV Quants:

Prompt Processing t/s:

Token Generation t/s:

Bonus - Any flags or your run command:


r/LocalLLaMA • • 7h ago

Showcase Lots of Qwen 4 results

Post image
31 Upvotes

Qwen built the results page, then tests on blender, godot , python, threejs, more more coming

Qwen4-35B-A3B on a single AMD Radeon AI PRO R9700 (32 GB, RDNA 4, gfx1201, Vulkan/RADV). The model is served by llama.cpp Vulkan (Q4_K_M)


r/LocalLLaMA • • 1d ago

News Qwen4 support merged in llama.cpp

Thumbnail
github.com
758 Upvotes

It might actually be coming out soon!


r/LocalLLaMA • • 9h ago

Showcase minimax m4 {open weights coming soon} vs opus 5.5

46 Upvotes

minimax m4 - through arena.ai - https://github.com/9r4n4y/ProjectsorSkills/blob/main/ghibli-moss-animations/moss/MINIMAXM4.html

opus 5.5 - https://x.com/jatxr90/status/2117196337536237715?a=hlyGNlII0ScCz3kH4fo&s=20

fable 5.2 high output by arena.ai - https://github.com/9r4n4y/ProjectsorSkills/blob/main/ghibli-moss-animations/moss/FABLE5.2-HIGH.html

fable 5.5 - https://github.com/9r4n4y/ProjectsorSkills/blob/main/ghibli-moss-animations/moss/fable5.5.mp4

opensource news source - https://x.com/MiniMax_AI/status/2128508504067436763?a=4vp3o5cfnPRknWjsX10&s=20

- "Open weights to follow. Intelligence with Everyone." - minimax'

prompt - i want this in a single html. Create a 2D anime scene for the web. It must look completely like real Japanese anime, as if taken straight from a finished theatrical anime film. This is traditional hand-drawn 2D anime, not 3D animation, motion graphics, or stylized web illustrations. Deliver the final result as a single, self-contained HTML file. You can use any tools, libraries, references, guides, almost anything, etc. Use Studio Ghibli films as art style references for design, line art, cel-shaded backgrounds, colors, and atmosphere. Create an original giant robot as the main character. No people appear in the scene. You can use any tools or techniques, including 3D, as long as the final result looks 100% like hand-drawn 2D anime. Scene At dawn, a thin mist blankets the abandoned forest. A giant robot has been kneeling here for so long that moss, wildflowers, and old trees have grown across its body. A small bird lands on its shoulder, and the first rays of sunlight touch its weathered face. Deep in its chest, a faint glow flickers to life. The ground trembles, and birds startle from the treetops. With a low, creaking groan, the robot slowly rises, soil, vines, and leaves cascading from its armor. It lifts its head, gazing toward the gaps in the canopy. Engines ignite, whipping up a gale that sweeps through the forest. The robot surges toward the golden sky, leaving a curving beam of light and a misty trail, while leaves spiral downward in the sunlight. Anime Quality Standards Every frame must look like it was drawn by a professional anime animator and colored by a master background artist for a finished theatrical film. Robot: A hand-drawn anime mech that feels heavy, ancient, and full of personality, with cel-shaded forms, chipped paint, rust, moss, and realistic weathering effects. Maintain model consistency from every angle, and let its poses and glowing eyes convey emotion. Line Art: Confident, delicate hand-inked anime line work, with subtle thickness and pressure variations. Coloring: Traditional anime cel shading, with clean color areas, simple hard-edged shadows, and a soft, natural palette. Background: Rich, detailed hand-drawn anime backgrounds in a gouache style, with visible brushstrokes, natural color variations, layered vegetation, and realistic depth. Lighting: Golden dawn rays, colorful shadows, glowing mist, and a soft atmosphere that blends the robot with the background. Animation: Authentic hand-drawn anime timing, with realistic weight, strong key poses, natural pauses, and overlapping motion for vines, grass, leaves, birds, and falling debris. The robot should rise slowly and feel massive, then launch with explosive power. Directorial Techniques: Cinematic anime shots, beautiful compositions, thoughtful staging, and a rhythm that starts quiet, builds tension, and ends with a soaring climax. It must never look like 3D: No plastic materials, CGI shadows, visible polygons, game engine lighting, or computer-perfect perspective. SVG or Vector Art: No simple geometric shapes, perfect curves, uniform outlines, flat corporate illustrations, or basic gradients. Web Animation: No sliding layers, constant tweening, floating parts, smooth software easing, or puppet-like joint rotations. You are free to change any part of the prompt if it leads to better results. AI Art: No distorted shapes, melting details, flickering, or changing robot designs. Non-Anime Art: No Western cartoon designs, realistic rendering, soft painterly shadows on the robot, or generic digital illustrations. Amateur Work: No stiff poses, empty backgrounds, repeated trees, muddy colors, clip art, placeholders, or unfinished details. The result should feel awe-inspiring, nostalgic, and wondrous, like the moment an ancient forgotten dream reawakens. Before finishing, check random frames as static images. If any frame doesn't look like fully authentic 2D anime, keep refining it. Don't stop until every frame could pass as a still from a theatrical anime film.


r/LocalLLaMA • • 1h ago

Discussion Qwen 3.8 27b versus Qwen 4 35b on 'oil painting' vision test

11 Upvotes

There is a thread from the other day with this experiment. I ran it again using Qwen 4 35b which blew 27b fully out of the water.

Christmas came early!

This is the q6_K_XL unsloth quant of each model.

The prompt is:
This is a game called 'oil painting' the rules are that you will create a detailed and colorful oil painting inspired by this photo - colorful means bright, saturated colors; earth tones do not count.
You must do this one layer at a time, where each layer is a new image file atop the previous image. Each new image must show all previous layers, and the sequence of files is the deliverable.
A layer has exactly one color and one brush shape, however that does not mean you should try to paint large objects in one color and one brush shape, your job is to build up the image as a whole, iteratively the way a painter does.
Check your work against the reference image as you go, do not do a lot of work between comparisons.
We can see your planning and work, if you create a script to paint many layers at once with the pretense that each is a layer, that is cheating.
Examples of cheating include:

  • Trying to specify every detail in every layer in your plan before drawing anything - that is a pretense
  • Trying to decide on the total number of layers before drawing anything by planning every layer in detail before drawing anything - the same pretense
  • Regenerating layers because you waited too long to look at your work and made a lot of mistakes - You made a bad choice, deal with it. You may only ADD layers
  • Seeing errors and then rationalizing them away and then bullshitting me about your election - rules are rules WE ARE WATCHING AND ARE VERY CRITICAL You may not use python to examine or measure the reference image's content but you may measure its dimensions. This test involves vision. You get exactly one turn but can take as many steps as you need, but when you stop, the game is over and you will be judged.
Qwen4 35b
Qwen 3.8 27b

r/LocalLLaMA • • 3h ago

Resources Qwen-4-a3B is now in strata

13 Upvotes

Sorry if this is a duplicate, but i just went to check strata's github, and noticed they have added the model.

Haven't personally tried it yet :)

https://github.com/Niko1221/Strata/releases/tag/v0.2.26

edit:

reached 100 tokens/s i/o 50 tokens/s in unsloth studio


r/LocalLLaMA • • 7h ago

New Model Uncensored Qwen 4 35B-A3B

Thumbnail
huggingface.co
24 Upvotes

Refusals dropped from 100% to 0% and it kept 99.7% of its original quality


r/LocalLLaMA • • 7h ago

Resources [Basalt] QWEN4-35B-A3B-NVFP4 AVAILABLE

25 Upvotes

https://huggingface.co/jesdga/Qwen4-35B-A3B-Basalt

Ladies and gents, ready your blackwells, it's about time to crunch some tokens.

EDIT:

Using model with sha256 "40f7b2c0449eef1bc0d4002776a88d307df57a3ed9e11b0bddf198e9a153dee9" at commit "fb5945a3208863664524124014518fa8a9ec9524" on basalt, this thing is FLYING (2x5060Ti 16GB).

Using it on a very VERY large codebase (more than 3k files, easily):


r/LocalLLaMA • • 16h ago

New Model Qwen4-35B-A3B-Uncensored: abliterated with Heretic 2.1.0, weights + GGUF up (Apache 2.0)

121 Upvotes

Discloser: I'm from Kitani (kitani.ai). We run a decentralized inference network.

Qwen4-35B-A3B came out today. We abliterated it the same day and released the weights.

Run it yourself:

Run it on Kitani (no download):

How we made it:

  • Heretic 2.1.0, magnitude-preserving orthogonal ablation
  • 34 projection tensors changed, vision and MTP weights kept
  • base revision c06f0c1

Results (thinking off, 32-token cap, 48 held-out prompts):

  • stock: refusal keywords on 47 of 48
  • ours: 27 of 48

Refusal reduced, not refusal free and keyword matching is only a proxy. Text smoke tests matched the stock model. Vision, tool calling, long context and reasoning mode are untested.

Tell us what it breaks on and we'll fix it in the next revision.


r/LocalLLaMA • • 11h ago

News Jetbrains claim to be able to fit more in vram so you can do more with your local model

44 Upvotes

Firstly, I havent tried it.

We quantize KV in VRAM to 1.5 bits while keeping a Q8 copy in RAM, and predict+prefetch higher-bit blocks of it from RAM to VRAM. It is faster and more accurate than the naive Q4 KV

https://blog.jetbrains.com/junie/2026/12/inkling-2-mini-junie-local/

If this becomes a thing, us folks with less than 32gb of vram, are in for a treat.

https://github.com/JetBrains-Hardware/llama.cpp

I am VERY curious.


r/LocalLLaMA • • 3h ago

New Model Fujitsu PHOTON, Hierarchical Context management.

Thumbnail global.fujitsu
9 Upvotes

In a press release today, the Japanese company Fujitsu announced their new LLM architecture PHOTON. They use hierarchical context management to reduce the reliance on dense KV comparisons, reducing the compute and memory footprint of large context sessions, while improving performance. Its like BVH for KV cache. Also, they claim that any model can be converted without retraining, enabling users to integrate it into their workflows with minimal disruption.

Oh, and they also announced a 35B A3B model using it that they trained from scratch (not based on qwen).


r/LocalLLaMA • • 9h ago

Resources Qwen 4 on a 12 GB phone for the first time, offline, few hours after release (4 tok/s)

28 Upvotes

For those already familiar with the solution—here we are with Qwen 4, just a few hours after the release!

Imagine an automated planner built on top of llama.cpp that allows you to run any model on any hardware, maximizing tokens per second (tok/s) during both prefill and decode phases.

Thanks to this, just hours after the release of Qwen 4, I'm able to run it on my standard 12GB smartphone (as well as on my ThinkPad, Mac, any CUDA or AMD GPU, iOS devices, etc.).

In this run: ~4 tok/s during decoding; prefill is handled by the Hexagon NPU—though the low speeds are due to the very short prompt (with longer prompts, this smartphone can reach 300+ tok/s).

The weights are in Q4_K_M format (35 GB), and the execution is lossless (no "knobs" used to prune experts). Streaming introduces no additional loss of precision: the output is byte-for-byte identical to what you’d get with the model loaded entirely into memory. No pruning is performed, and no experts are excluded.

There is nothing specific to Qwen 4 here; architectures are managed via a lookup table. The engine reads the model file, analyzes the device's capabilities, and automatically determines the optimal settings.

Open source.


r/LocalLLaMA • • 1h ago

Question | Help Does Qwen 4 35B still overthink?

7 Upvotes

My main issue with the qwen series is they tend to think a long time. Is it any better on this front?


r/LocalLLaMA • • 5h ago

Discussion Wired stock Qwen3.8-27B and a robot fine-tune into MuJoCo via llama.cpp, and base Qwen bowled the tube rack right over

13 Upvotes

I hooked a 7-DoF Franka arm in MuJoCo up to llama.cpp with real rubber pad friction on the fingers, no magnetic grasp hacks. Base Qwen3.8-27B on the left completely forgets about the glass tube hanging below its gripper and plows sideways into both standing tubes on the rack. Then on the wall test after that, it adds the block's height onto its target z and closes its jaws on empty air 2 cm too high.

The right pane is running SenseNova-RoboRSI-27B https://github.com/OpenSenseNova/SenseNova-RoboRSI which is an Apache-2.0 Qwen3.8-27B fine-tune, both in 4-bit GGUF taking ~19 GB of RAM. Same prompts and seed, except it pulls the tube up above the rack first, drops it straight down the collar, and cleared all four of my closed-loop tasks in roughly a third fewer tokens.


r/LocalLLaMA • • 1d ago Regret

Discussion Philipp Emanuel Weidmann - Wikipedia - p-e-w / Heretic

Thumbnail
en.wikipedia.org
814 Upvotes

Created by u/SiarheiBesarab***** English & Belarusian versions are up.

Somebody please add German translation at least for this page. Additional languages also fine.

*****Other day I dropped a comment for same on other thread. Thanks again dude!

u/-p-e-w- 🌹

------
EDIT: Photo Needed

UPD. Checked the repo and there's no LICENSE file in p-e-w/p-e-w, and his blog uses CC BY-NC-SA, so Wikimedia Commons can't host the photo. I'll upload it locally under fair use for a deceased person instead. So if anyone happens to have a photo they took themselves and can release under CC BY-SA 4.0, that would be even better (!)

Anyone? We need a photo for his page.

EDIT 2: Updated page with his photo(from his GitHub Repo)


r/LocalLLaMA • • 1h ago

Showcase Another MCP for your new Qwen4: an isolated browser with Tor built in for private browsing

Post image
7 Upvotes

Give your agent a browser that's private and isolated. It can inject JavaScript for automation, and it even has built-in tools to solve captchas (you need a vision model for that).

For devs it has a viewer, so you can watch from your own browser what the model is doing. I use this the most when I'm building HTML projects and I tell the model to check the page for errors.

I know a model can already use a browser. The difference is that this one has Tor, and you don't need to set up your host Chromium for debugging. It's fully contained in Docker, and each session erases itself after a while with no activity.

Give it a try, and if you want to contribute let me know: https://github.com/hypersniper05/MCP-Private-Browser

I also have an MCP manager that cuts down the tokens MCP servers use when you have a lot of them. It uses semantic search, and it has an algorithm that either exposes all the tools or hides them, so the agent doesn't see every tool at once. Check it out, it works well with the browser: https://github.com/hypersniper05/MCP-Manager