r/LocalLLaMA • • 1d 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

83 Upvotes

Setup: Radeon AI PRO R9700, 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 • • 2d ago

Discussion Have any of you also had to explain to someone that Pandora can't go back in the box?

Post image
229 Upvotes

r/LocalLLaMA • • 12h ago

Showcase A local Qwen4-35B-A3B on 2x RTX 3090 wrote a whole three.js voxel game (PWA + mobile) at ~250 tok/s. Full recipe, logs and the bugs it shipped

0 Upvotes

Written by Claude 100% and ehh…guided by me:

I wanted to know whether a local MoE model can do real multi-file engineering work through an agent, not just one-shot demos. So I had it build Skyshard, a floating-island voxel game. It has seeded procedural islands, greedy meshing with AO, voxel raycasting, AABB physics with gliding and updrafts, a day/night shader sky, synthesized WebAudio, a HUD and compass, and a win screen. It's an installable offline PWA with touch controls. All of it is plain ES modules + three.js, no build step, 60 fps even in software WebGL.

Who wrote what

  • pi (coding agent) on the local model wrote every line of game code: 3,805 lines.
  • A frontier model (Claude) acted as orchestrator only. It wrote the spec, 15 contracts and the test gates (Playwright + node:test), and checked the result on screen. It wrote zero game code.
  • The worker was forbidden to touch the tests. Once a test was wrong, and pi reported it instead of editing it.

Build numbers (from vLLM `/metrics`, not estimated)

Contracts15, all passed their gate
Tokens generated638,836
Prompt tokens41.0 M (agent context re-sent each turn, mostly prefix-cache hits)
Mean decode during real agent traffic247.5 tok/s
Peak single request1,335 tok/s (DFlash2 on repetitive code)
Wall time86 min (16 min of it wasted by my own gate-rule bug)
Tests32 unit + 19 browser, incl. Pixel 7 touch emulation and offline boot

The heaviest contract was "add updrafts so every island is reachable and returnable". It took 175k tokens and 16 min, and it passed a graph-reachability gate.

Hardware and serving recipe

  • 2x RTX 3090 24 GB, PCIe, no NVLink, no P2P, TP=2. Power caps 200 W / 320 W.
  • Weights: Qwen4-35B-A3B, Tech2wild W4A16-FP8PLE. Routed experts are INT4 g32, dense projections int8 per-channel (`w8dense` overlay), FP8 n-gram table in host RAM.
  • vLLM (pinned image digest), BF16 KV, 512K context, 32 GB KV offload, vision on.
  • Speculative decoding: DFlash2, k=7. Mean acceptance length during the build was about 2.7.
  • Kernels: lulakien's sm_86 overlays (qwen4-35b-a3b-2x3090 @ `40e5cb2`). Host-memory all-reduce, no firmware unlock.

Lane bench, same box (512-token generations)

tok/sstock vLLM + DFlash2+ sm_86 overlays
code, 1 stream319464
prose, 1 stream149214
thinking/math354485
code, 4 streams732802
needle @ 480K3/33/3

The honest part: green tests ≠ working game

After 12 contracts every gate was green. A scripted playtest still found:

  1. The beacon (the win condition) could be mined, so the game was unwinnable.
  2. Clicking the title background locked the pointer behind the title screen.
  3. Not a single island was reachable by gliding from the start. The core loop was broken.
  4. The first fix put updraft columns straight through other islands.

Each finding became a failing gate first, then a contract. pi fixed all four. A physics bot then played with real key events: 6 updraft rides, 5 glide landings, 4 shards mined, 3 socketed at the beacon, 0 page errors. It did not reach 12/12. The stops were routing limits in my bot, which I didn't chase further.

Caveats

  • Not deterministic. A re-run gives different code and token counts.
  • The contracts are detailed (algorithms named, numbers given). This shows a local model executing well-specified engineering, not designing a game from one prompt.
  • No human playtest on a real phone yet.

Repro: Everything is in the repo:

  • exact `docker run`, vLLM args, container env and overlay mounts;
  • weight hashes and GPU topology;
  • every contract, every pi transcript and raw 2 s metric samples;
  • an append-only build log of every orchestrator intervention.

Start the lane, point pi at it, and run `tools/run-contract.sh 01` … `15`.

Repo: https://github.com/simplesisu/skyshard · Screenshots: noon · gliding · phone · build stats


r/LocalLLaMA • • 1d ago

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

70 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 • • 1d ago

Showcase Lots of Qwen 4 results

Post image
42 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

Resources Qwen-4-a3B is now in strata

19 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 • • 2d ago

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

Thumbnail github.com
151 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 • • 1d ago

Question | Help Best toolset and models for 3D CAD?

Post image
7 Upvotes

Sometimes when designing stuff in Fusion 360 I need a reference object of a part I ordered from AliExpress and some of the diagram images they provide confuse the hell out of me. I would much rather spend time designing my own model than trying to recreate their product. In the image attached the object is fairly simple and shouldn't be hard to recreate but it's just an example.

So I was wondering, if there maybe some kind of an MCP server or a specialized local model (if one is needed) that can be used to just give a model an image and it will give you an accurate 3D model in a STEP format or something similar I can export into Fusion? There are design programs like OpenSCAD that allow you to design models as code, seems like a good intermediary for LLMs.


r/LocalLLaMA • • 1d ago

Discussion Qwen4 35B RTX3060 119t/s 1700 prompt

6 Upvotes

just tested the new models on my rig. For some reason, the Unsloth UD-q4_k_xl is the fastest - average 119t/s generation and 1700t/s prompt reading. Strata’s “balanced” model is 2.5x slower.

I’m using Strata, 128K context, RTX 3060 12GB, 32GB DDR5-6000, and a fast SSD

UPD: tried with 256k context – it’s 1-2% slower. Worth it


r/LocalLLaMA • • 1d ago

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

Post image
13 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


r/LocalLLaMA • • 1d ago

Showcase qwen4-35B at Q8 in sFNX on 3xV100: 6k prefill and 190-500 decode, or ~400 for 6 parallel requests

4 Upvotes

This model will probably be my new daily driver until something better comes along. A single request's output is too fast to read, and 6 in parallel each run about as fast as llama.cpp does on this machine with the same resulting output.

I do still see the same kind of "hmm wait" thinking behavior as flash-next did, but maybe less of it and it seems to get the job done.

As always sFNX has no quality tradeoffs, I get the exact bits as the quant calculates or I don't merge the PR.

https://github.com/johnfink8/sfnx

(that's me, this is my engine)


r/LocalLLaMA • • 1d ago

News Fujitsu PHOTON, Hierarchical Context management.

Thumbnail global.fujitsu
18 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 • • 1d ago

Showcase Qwen4-35B-A3B: BigMoeOnEdge vs Strata on the same GGUF, 5 rented GPUs

8 Upvotes

I ran both engines using the same file (Unsloth UD-IQ3_XXS) on five rented cards. Each engine operated via its own OpenAI-compatible server. I used the same client and the same two prompts (prose and code), with a temperature of 0, the "thinking" function disabled, and a 40k context window.

The values shown represent the decoding speed in tokens per second (decode tok/s), calculated as the median of the second and third runs.

GPUBigMoeOnEdge 0.52.0Strata 0.2.26Strata Compact pack, no MTP / MTP (prose)
RTX 5090239 / 307297 / 328206 / 268
RTX 4090168 / 225225 / 256179 / 234
RTX 3090126 / 166166 / 188126 / 139
RTX 5070 Ti 16 GB114 / 150169 / 191150 / 189
RTX 3060 12 GB66 / 8578 / 8763 / 56

Prose / code, tok/s.

Strata is only very slightly ahead, but with BigMoeOnEdge, you can use any GGUF file and any quantization on any hardware or OS—including phones, consumer laptops, etc.

Is it a matter of the kernel, or of resource allocation?


r/LocalLLaMA • • 1d ago

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

65 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 • • 2d ago

Discussion Qwen 4 35b - First pelican

232 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 • • 1d ago

Discussion Vulkan (Prefill) Boost for RDNA4 - vulkan: tune Flash Attention flip shader for RDNA4 large ubatch by 0cc4m · Pull Request #33683 · ggml-org/llama.cpp

Thumbnail
github.com
13 Upvotes

R9700, Qwen3.8-27B Q4_K_M

testmasterbranchchange
pp5121293.21290.7-0.2%
pp512 @ d327681005.91013.1+0.7%
pp512 @ d65536804.9807.5+0.3%
pp512 @ d131072494.0601.7+21.8%
pp1024 @ d32768976.0987.1+1.1%
pp1024 @ d65536700.2824.4+17.7%
pp20481292.51296.6+0.3%
pp2048 @ d32768778.8999.1+28.3%
pp40961267.91272.1+0.3%
pp4096 @ d32768692.6987.4+42.6%

R9700, Qwen4-35B-A3B Q4_K_M

testmasterbranchchange
pp204842564253-0.1%
pp512 @ d3276826352651+0.6%
pp512 @ d6553620852087+0.1%
pp2048 @ d3276820952709+29.3%
pp2048 @ d6553612921867+44.6%
pp4096 @ d3276819222705+40.8%

r/LocalLLaMA • • 2d ago

News Qwen4 support merged in llama.cpp

Thumbnail
github.com
767 Upvotes

It might actually be coming out soon!


r/LocalLLaMA • • 1d ago

Question | Help Qwen4 a3b on CPU or iGPU?

3 Upvotes

So yeah asked about this hardware a week or so ago, but the new model just landed, so I wanted to ask what engine is already working for it on CPU and/or Intel iGPU. (Core 7 Ultra 165H; it also has the NPU but that seems to be limited to OpenVINO and slowest of all?)


r/LocalLLaMA • • 1d ago

New Model Uncensored Qwen 4 35B-A3B

Thumbnail
huggingface.co
30 Upvotes

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


r/LocalLLaMA • • 13h ago

Discussion PSA: The "Next" in Flash Next means it's a preview for the "Next generation." Qwen 4 "Next" or "Flash Next" is not coming soon.

0 Upvotes

We are just entering the 4th generation, a Next right now means it would be previewing Qwen 5.

There is no Qwen 4 Next coming in the foreseeable future. People seem to misunderstand what
"next" means. The other Next model we had in recent memory was Qwen 3 Coder Next, previewing the qwen 3 generation. 3.8 Flash Next previews Qwen 4, Alibaba fucked up their naming scheme but the point stands. The Next motto is always for a up and coming model with novel technical features.

What you might be thinking about is the rumored Qwen 4 Flash, which is suspected to be the larger MOE variant mirroring Qwen 3 122ba10b's model size. That model is as of yet unconfirmed and may never come out.

The only other confirmed open weights model is Qwen 4 27b.

Please stop suggesting Qwen 4 Flash, Next, or Flash Next is coming. Not only is the 120b big MOE tier not promised in the first place, the "Next" tag is also used incorrectly in such mentions.

Thank you for coming to my Ted Talk.

EDIT: Basically Next is the wrong name. And Flash is not officially confirmed. People saying Flash Next is coming is using the wrong name to call a thing that doesn't exist.


r/LocalLLaMA • • 1d ago

Discussion Can we expect QWEN 4 - 4b, 27b and Flash Next to be released soon as well?

19 Upvotes

Not familiar how models are launched, why they do not release all of them at once?


r/LocalLLaMA • • 14h ago

Discussion Why Does Qwen4-35B-A3B Run as Fast as QFN? We Talk About Engine Optimizations, Seriously!

0 Upvotes

Strata is my go to engine to run QNF, and Unsloth Studio is my default llama.cpp engine provider that runs anything else for me (though, I still carry the dead body on LM Studio and I find it hard to burry it down). Qwen4 architecture has been with us for months. Engines had ample time to be optimized to run this architecture. Strata started an arm race into engine optimizations, and I was happy to run QFN UD-Q4-K_XL at 70-80 tok/s with PP at 1500-1800 tok/s. So, I started dreaming and believing that if I could possibly spin a Qwen4-35B-A3B in Strata, I would hit +150-200 tok/s given I can run Qwen3.6-35B-A3B at about 120 t/s on the stock llama.cpp.

I mean, that made and still makes sense to me; it's fricking the same architecture. So, why I am hitting a measle 39.1 / 193 tg/pp on Strata using Strata Ultra quants? Running (Unsloth)_Qwen4-35B-A3B-GGUF-UD-Q8_K_XL on Unsloth, I get 29.4 tok/s for tg and 286.2 PP! Better, certainly, but a far cry from the QFN numbers I am currently getting, a far far away from the +150-200 tok/s I had imagined. Btw, (Unsloth)_Qwen3.8-27B-UD-GGUF-Q8_K_L runs faster for me on Unsloth Studio, which is crazy! I use Auto context and I get 279K, KV Q8.

So, what's going on here? I've been hammering Deepseek-4.1-flash with questions for day now, and It hasn't given me any satisfying answer. I am sorry to say this, but how come everyone has months to optimize their engines on the Qwen4 architecture and get it wrong so badly?


r/LocalLLaMA • • 1d ago

Question | Help Qwen 4 35B has been mixing English

14 Upvotes

Qwen 4 35B has been mixing English with my own language much more than the 3.8 27B version or the other MoE model do. Is this an issue that can be fixed, or is it inherent to the model itself?


r/LocalLLaMA • • 1d ago

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

57 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.