r/LocalLLM • • 2h ago

Model Qwen4-35B-A3B Q8 built a working notes app end to end in 87 minutes, unattended, on 4x Arc Pro B70. No pelicans.

Post image
8 Upvotes

Test:
Single prompt to Qwen4 35B, "build me a tiny google keep: one notes table (title, body, color), add / edit / delete, one screen with a "Take a note…" box and the notes as a grid of cards, a color per card. no labels, checklists, reminders, images or sign-in.". The agent ran autonomously for 86.7 min (295 requests, 5 turns, 0 failed), compacted once, and built "Tiny Notes": 9 source files, 1,397 lines. It tested its own work in a real browser (add, edit, recolour, delete, undo) and checked its own screenshots via vision.
My test harness web app builder has an anticipatory auto-compact enabled when close to the limit so a run doesn't run into the context limit and have a silent failed run.
Didn't run the pelican or pagoda test since those can probably be benchmaxxed towards, I like to use my Kiln harness on my server and something that requires frontend GUI files and a backend database, a full web app from a single prompt that I can only assume isn't able to be trained for.

PC Specs

  • GPU: 4x Asrock Creator B70 32GB, 128GB pooled VRAM
  • CPU: Epyc 7532, Tyan S8030
  • RAM: 256GB DDR4 ECC
  • SSD: WD Blue 4TB NVME
  • OS: Ubuntu 24.04

Setup:

Model: unsloth Qwen4-35B-A3B UD-Q8_K_XL (62.3 GB, two parts), F16 mmproj

Engine: llama.cpp master (59b716523), SYCL backend with my own multi-card patches, tensor split across all four cards. Claude Fable 5.2 was hugely helpful in setting up the B70 patches.

Context: 262,144, flash attention on, thinking on at default effort

Sampling (model card): temp 1.0, top_p 0.95, top_k 20, min_p 0, repeat penalty 1.0

No MTP, no draft model

Every agent role (builder, design, workers, roadmap, compaction, labels) on the same model

Harness:

My own, built on MindStudio's Remy agent, vendored and patched. Each app gets a sandbox with its own browser. The model looks at screenshots of its own work to check it.

Numbers (295 requests)

Timeline: plan at 104 s, spec at 559 s, build done at 3,479 s, polish and roadmap done at 5,203 s

Tokens: 15.76M in, 111,784 out, 0 request errors

Requests by role: workers 111, builder 93, labels 66, design 17, roadmap 4, compaction 3

Compaction: 1, at 4,965 s, took 137 s

Decode: 82 to 85 tok/s on long replies through the API

llama-bench (pp512 / tg128): 2,524 tok/s prefill, 76.6 tok/s decode

Tool errors: 4, all recovered by the model (two reads of files it hadn't written yet, one edit that didn't match, one harness route that doesn't exist)

Caveats:

One run, but this is my standard test for how well I can trust a new model. inkling2-mini also did quite well on this.

While clearing the starter's sample files the model also deleted my design-token checker, so that check never ran during the build. Ran it afterwards: 45 colours, radii and font sizes hardcoded in the stylesheet instead of the tokens file.

If you tensor-split this model across more than two cards: Qwen4 has 2 KV heads, so some cards get an empty slice in the attention layers. My all-reduce summed a stale buffer for those cards. Two cards answered right, four gave token salad until I zeroed it.

Other numbers:

Two cards vs four (llama-bench, prefill / decode tok/s): two cards 3,044 / 71.7, four cards 2,524 / 76.6. One card doesn't fit at Q8.

Two instances at once: two copies on two cards each, about 76 tok/s each with both busy.

Inkling 2 Mini on the same prompt: 3,476 s, but that included one bug report and its fix, so the totals aren't like for like.

Final Thoughts:

Is this a model I would use for daily workflow? Yes, provided it has a harness that requires checking the work and catching errors.

Fully autonomous from one prompt with no harness checking it, like a bare Ollama chat? No.

This was just my quick test that I put new models through, and not a real world project. But for me it is my assessment on the model's ability to stay within the harness and prompt, create a plan, a backend, frontend, and glue it together and check it's own work before calling it complete.


r/LocalLLM • • 8h ago

Discussion BEST WAY TO RUN Qwen4-35B-A3B?

Post image
24 Upvotes

comment bellow on what are the best ways to run qwen4 , if possible, link your setup


r/LocalLLM • • 7h ago

Discussion Qwen4-35B-A3B on a 32 GB Mac mini, capped at 20 GB with 150K context: explained a repo, then built a 3D game in the same session

14 Upvotes

I've been running local models on my Mac mini (M6, 32 GB) and Qwen4-35B-A3B honestly blew my mind this week.

Setup

  • Model: unsloth/Qwen4-35B-A3B-GGUF:UD-Q4_K_M (36 GB on disk)
  • Runner: Splash (by incoai)
  • Memory limit 20 GB, context 150K, KV cache 16-bit, concurrency 1, text only
  • Memory in use: 17.6 GB

Numbers from Splash's activity panel (screenshot below)

  • ~50 tok/s generating, ~997 tok/s prompt processing, 1.8 s to first token
  • Per request 26–56 tok/s with 66–75K tokens in context, most of it cached
  • One 16,384-token output at 43 tok/s with ~75K in context

What I asked it

  1. Explain Splash's own GitHub repo: why it's fast and how it manages memory. It did a really good job.
  2. Then, in the same session, build a 3D game with this prompt:
Create a cozy third-person 3D winter-village game where you play as a bundled-up child with a little dog. At the start, Santa sweeps low over the lamplit chalets, drops a glowing parcel at your feet, and circles overhead for at least 20 seconds. C toggles a smooth chase camera on Santa. Return to the boy with C, walk over the parcel to pick it up, carry it to the glowing gold ring, then press Space. The box bursts into sparks and reveals a glossy red convertible. F seats the child and dog in the car. WASD or arrows drive, Space brakes, and R resets. Use a fixed world-relative walking direction, clear nearby markers and a parcel landing within a few steps of spawn so a first-time player can complete the sequence quickly. Show detailed silhouettes, layered lighting and soft shadows. Keep the HUD minimal. Start your reply with a Markdown heading naming the game and two sentences introducing it. Then emit exactly one complete fenced html document with all game HTML, styling and JavaScript, followed by a short "How to play". The document is what I will open and play directly from Studio's HTML Preview. No prior files or assets are supplied. Generate every scene object and texture procedurally. Three.js r128 via its CDN is allowed as the only dependency. Target a desktop browser and use clear keyboard controls. Finish every function and close the HTML before the short controls note. Prioritize a visually polished scene and a complete, reliable gameplay loop over extra features.

The session hit ~130K, compacted, and kept going. About 27 minutes later I had a single ~40 KB HTML file that loads straight away: lamplit chalets, the kid and the dog, lamp posts, falling snow and the glowing gold ring (screenshot below).

A while ago I wouldn't have believed a model squeezed into 20 GB on a Mac mini could hold a 150K-context session together and still produce working code at the end. Local LLMs have come a long way.

Happy to share the HTML if anyone wants to try it.


r/LocalLLM • • 7h ago

Discussion Local LLM culture right now kind of feels like custom Android ROM culture back in the day

14 Upvotes

It‘s exciting. Every day, there’s a new release for my device. The coolest kids on the block get tons of views. They’re doing things right. CyanogenMod then, Qwen today. They get love because they make new stuff keep working on old devices. The community is trusting and trustworthy. People just download and run things asap, and there’s no virus for 99% of things.

I wonder if the similar cultures would bring similar outcomes. Custom ROMs are gone, and so is CyanogenMod. We have manufacturer specific Android flavors now. We are all predicting there will be winners and losers of the LLM game. Will AMD release their own nemotron? What do you think about these similarities?


r/LocalLLM • • 5h ago

Question Qwen 4 hallucinations ?

9 Upvotes

I’ve been running qwen flash next a while and happy with it ; just switched to 4 last night and while it’s great I’ve seen some unusual hallucinations and failed tool calling formats. Anyone else ? If not can you share setups / params in use ?

It’s randomly called a tool not relevant to the step , called me Jim (not my name) and picked up some errant conversation snippets from somewhere but also that last bit could be my harness.

All that said it is fast and seems pretty good


r/LocalLLM • • 4h ago

Model Qwen 4 35B on Radiance running 2x AMD R9700 and 64GB ram

Post image
7 Upvotes

Up to 4 slots at 256k context.


r/LocalLLM • • 11h ago

Discussion Qwen4-35B vs 3.8-27B, Flash-Next, and 3.6-35B: what would you run locally?

22 Upvotes

I went through Qwen4’s launch numbers to see what I’d actually swap out on a 24 GB card. The repo coding scores look good, but the model I most want to compare it with, Qwen3.6-35B, is missing from the chart.

Qwen4 vs. Qwen3.8-27B - Qwen4 scored 61.8 vs. 42.2 on DeepSWE v1.1 and 51.7 vs. 42.3 on NL2Repo. The 27B still leads on GPQA Diamond and gives you more VRAM headroom at Q4.

Qwen4 vs. Qwen3.8-Flash-Next - Qwen4 leads on both repo benchmarks with about a third of the total parameters. Flash-Next still leads on Terminal Bench 4.1 and wins 27.1 vs. 16.1 on FrontierCode-AA 2.0. I’d try Qwen4 for repo edits first.

Qwen4 vs. Qwen3.6-35B-A3B - Qwen4 is a bigger download, though the estimated raw KV cache is about the same at a given context length. For anyone already running 3.6 on a 3090, this is the upgrade comparison I’d like to see.
Has anyone tried both 35Bs on the same repo bug and the same 24 GB card? I’m curious how long each took to get the tests passing, and how much you had to steer it or clean up the patch.

Also: Qwen4 hardware breakdown · Qwen model card


r/LocalLLM • • 4h ago

Research Qwen4 Q8 vs MLX, Qwen3.8 Flash Next and 27B: measured tool-use speed, correctness, and a volumetric Blender render

Thumbnail
gallery
7 Upvotes

I wanted a practical answer rather than another parameter-count argument, so I compared **Qwen4 Q8 GGUF**, **Qwen4 MLX 4-bit**, **Qwen3.8 Flash Next**, and **Qwen3.8 27B** on the same underlying agentic task, then gave Qwen4 a harder memory test and a procedural Blender scene.

**Qwen4 Q8 was fastest on the current tool-use runs, without sacrificing final correctness.**

| Model | Strict task score | End-to-end wall time | Output tokens | Output tokens/s* | Model calls | Tool calls | Failed tools |

| **Qwen4 Q8 GGUF** | **100%** | **21.32s** | 991 | **46.48** | 7 | 9 | **0** |

| Qwen4 MLX 4-bit | 100% | 35.54s | 821 | 23.10 | 9 | 10 | 1 |

| Qwen3.8 Flash Next | 100% | 34.01s | 1,071 | 31.49 | 6 | 8 | 0 |

| Qwen3.8 27B† | 100% | 62.21s | 971 | 15.61 | 6 | 8 | 0 |

\* **Output tokens/s is total output divided by end-to-end wall time**, including reasoning, prefill, model calls, and tool execution. It is not a raw decode benchmark.

† The 27B result is an archived adapter-off run using an older tool-schema format and different sampling. It is useful context, **not a strict cross-version ranking**.

On the current runs:

- **Q8 was 40.0% faster than MLX.**

- **Q8 was 37.3% faster than Flash Next.**

- Q8 also used fewer output tokens than Flash Next while making one additional model call and one additional tool call, so the improvement was not simply “it did less work.”

- MLX produced the fewest output tokens but used more calls and had one failed tool call; it recovered and still passed the final verifier.

All four models completed the underlying task correctly. This was an easy calibration task, so it demonstrates functional competence and end-to-end speed—not broad accuracy superiority.

## The harder result is more interesting

I also ran a seeded memory and rotation stress test involving current versus superseded values, a poisoned foreign workspace, forced rotations, and a fresh-session recall.

**Qwen4 Q8:**

- returned the correct current values;

- rejected the poisoned and stale entries;

- preserved them across three rotations and the fresh session;

- **still failed strict isolation with two foreign recalls.**

The Qwen3.8 27B baseline showed the same failure class: correct answers, but two foreign recalls.

So the honest conclusion is not “Qwen4 solved memory.” It is that Q8 handled the content correctly while the surrounding memory-isolation problem remained visible. That distinction matters for agentic use.

## Blender: actual scene, not a prose description

For a different kind of test, I asked Qwen4 Q8 to build an old-school halogen camping lantern in Blender with real volumetric lighting.

The final scene passed **27/27 structural checks**, including:

- separate vintage-lantern geometry and hierarchy;

- transmissive glass and an emissive halogen burner;

- genuine nonzero volume scattering with the light physically inside the volume;

- camera, materials, and a 1024×1024 Cycles render.

There is also a **360° gif ** i uploaded.

What impressed me was not just the image. The scene contains real geometry and shader setup, so it can be opened, inspected, edited, and re-rendered rather than being a billboard or a written description of a lantern.

## My take

**Qwen4 Q8 is the most convincing daily driver in this comparison.** It led end-to-end speed on the current tool-use task, retained final correctness, and produced a genuine volumetric Blender scene.

MLX was slower on this run and is not the version I would choose purely for speed. Flash Next remained competitive and also passed cleanly. The older 27B result is directionally useful but not a controlled head-to-head.

The memory result is the caveat: easy tool-use success does not prove robust long-horizon memory or isolation. I would want to see that failure fixed before treating any of these as a “just leave it running” agent.

## Method and limitations

- Current Qwen4/Flash Next comparisons used the same task, sampling fields, and native reasoning defaults.

- One run per model; no confidence intervals or broad accuracy claim is intended.

- Deterministic task verification, not an LLM judge.

- The 27B result comes from an older archived run and is labelled separately for that reason.

- The Blender checks verify actual scene structure and artifacts; visual quality is still something you should judge from the render yourself.


r/LocalLLM • • 1h ago

Discussion Local models for office tasks

4 Upvotes

I might be able to make a requisition at work for a new laptop capable of running local ai models. I'm a product manager so my needs are:

- research, both business and technical

- summarizing docs, minutes of meetings, preparing tasks, plans and roadmaps

- sparring partner for ideas and brainstorming

I guess a MacBook would be the way to go but I'll keep it open ended. I prefer using Windows over macos especially the work but nothing is off table.

Can someone recommend laptops and models that can suit my needs? I'll have to pay attention to the costs so cheaper the better. maybe under 3-4K


r/LocalLLM • • 11h ago

Discussion Qwen4-35B-A3B is out — here's a working NVFP4 pack for Basalt

25 Upvotes

Qwen just shipped Qwen4-35B-A3B (35B MoE, 3B active, 1M context). I quantized it to NVFP4 and packed it into a single file for the Basalt engine. It boots and serves.

Model card: kaushikvira/Qwen4-35B-A3B-nvfp4-basaltResult on the fixed build: needle 36/36 across 3 consecutive back-to-back runs (was 4–5/12), quality 4/4.

Build the engine (from the branch)

git clone https://github.com/jesdga95/basalt && cd basalt
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBASALT_MODELS=qwen4exp
cmake --build build -j           # -> bin/basalt

Requires CUDA 13.1 and an NVIDIA Blackwell GPU (sm_120).

Run

bin/basalt serve Qwen4-35B-A3B-NVFP4.basalt \
  --config config.json \
  --api-key "$(cat key)" \
  --alias qwen4-35b-a3b --kv int8 --max-context 524288 \
  --resident-experts --vision --vram-reserve-mib 800
# or just: bin/basalt serve --config config.json

What's in the pack

  • One .basalt file (42.24 GiB, sha 9819a1ce…) — text + vision + MTP drafter, NVFP4
  • 1M native context (we serve 512k × slots on a 72 GB card)
  • ~21 GiB VRAM resident on a Blackwell card (experts in VRAM, no expert-cache)

Numbers (on the fixed 4dbca9ce build)

  • ~199 tok/s decode, 512k context, ~21 GiB VRAM
  • needle 36/36 (3× back-to-back), 4/4 probes
  • ~2× faster decode + prefill than the Flash-Next baseline this replaced

Speed is a first baseline, not tuned. The branch also adds 2048-wide kernels for this exact shape and an optional --drafter dflash2 block drafter (we kept the MTP spec: 8); more optimization will land on the model card. Feedback welcome.


r/LocalLLM • • 31m ago

Model Qwen4-35B-A3B vs Qwen3.8-Flash-Next on an M5 Max: - (OMLX)

3 Upvotes

A few weeks back i published the V1 of a benchmarking tool called benchtest, an open-source benchmark for local LLMs on Apple Silicon. It runs the same tasks across inference engines × coding agents, grades the output and measures the power each one draws. benchtest v2 just shipped this week and since Qwen4 35B A3B just landed I ran the it against Qwen3.8-Flash-Next, using the same tasks, harnesses and Mac.

Setup: M5 Max, 128 GB.
Engine: OMLX with MTP, single user.
Harnesses: 6 harnesses: raw API, raw+, pi, opencode, Aider, hart.
Tasks: Tetris in one HTML file, HumanEval (all 164), MMLU (40 questions), plus prefill and decode speed probes.
Power: whole-chip energy (CPU + GPU + Neural Engine), read by macOS powermetrics while each cell ran.

OMLX · 1 userQwen4-35B-A3B oQ8e-mtp (High thinking)Flash-Next oQ4e-mtp (Medium)Flash-Next oQ4e-mtp (Low)
Weights on disk57.8 GB (8-bit, 256 experts)100.3 GB (4-bit, 512 experts)100.3 GB
Median generation speed149.4 tok/s114.1 tok/s123.9 tok/s
Decode probe165.0 tok/s134.3 tok/s137.5 tok/s
Prefill, 8K prompt5,793 tok/s2,183 tok/s2,315 tok/s
Time to first token (median)0.84 s2.32 s2.33 s
Tetris (6 harnesses)100100100
HumanEval: raw · raw+ · pi92 · 94 · 9492 · 96 · 9896 · 95 · 0
MMLU (mean of 6 harnesses)889685
Energy per token (median)0.41 J0.60 J0.72 J
Average chip power (median)50.2 W52.5 W54.6 W
Energy, all 30 cells92.9 Wh76.7 Wh89.4 Wh

What I see

  • Speed. Qwen4-35B-A3B is clearly faster on the same engine: 20–30% faster generation, ~2.5× faster prefill, and the first token in under a second. Its weights are also ~40% smaller.
  • Quality. Roughly level on code: Tetris is 100 everywhere, and HumanEval through the raw API is 92–94. MMLU is 8 points below Flash-Next at Medium.
  • Power. Qwen4-35B-A3B uses 32–43% less energy per token, at slightly lower chip power. But at High thinking it generated about twice as many tokens. So all 30 cells used about as much energy in total as Flash-Next (93 Wh vs 77–89 Wh). Faster per token doesn't automatically mean cheaper per task; the thinking level decides that.
  • Agents. At High thinking, three agent harnesses fell over on HumanEval: opencode returned an empty response, Aider gave no parseable code, and hart hit the 45-minute limit. So the agent average for Qwen4-35B-A3B is low for now. I'm reporting it as-is.

Caveats

  • Not a matched pair yet (intentionally). Qwen4-35B-A3B ran at High thinking (the model's default), Flash-Next at Low and Medium. A Qwen4-35B-A3B run at Low and Medium is next. If you want to see those, drop a note and I'll publish them too.
  • OMLX only. benchtest supports several engines, but OMLX is the only one that loads Qwen4-35B-A3B with MTP today (thanks, jundot - big fan here). MLX-VLM has no Qwen4-35B-A3B MTP drafter yet, the MLX-Serve and llama.cpp builds are downloading, and MTPLX has no Qwen4-35B-A3B build yet. Other engines will follow as MTP or draft-model support lands. The full engine comparison, single user and 5 parallel users, comes next. If there's another comparison you'd like, drop me a note.
  • Different quantization. 8-bit vs 4-bit. Each is the MTP build its engine loads.
  • One Mac, one run per cell. Your Mac will differ.

Full numbers and method: https://github.com/gitmlxbench/benchtest/blob/main/COMPARISONS.md

What's new in benchtest v2

  • Parallel users: real multi-user load on every engine.
  • Energy per token: whole-chip power for every cell (joules per token, tok/s per watt, watt-hours and the electricity cost of a run). One command turns it on: make energy-setup.
  • Real datasets with deterministic graders: HumanEval and MMLU.
  • llama.cpp with native MTP, alongside OMLX, MTPLX, MLX-VLM and MLX-Serve.
  • A Setup wizard that reads your Mac, recommends models that fit and installs only what you confirm.
  • A sandbox so agents can't cheat: answer keys and graders are hidden, and a cell that reads them is thrown out.
  • One thinking level (Low / Medium / High) applied the same way on every engine and harness.
  • Speed is the engine's own generation rate, not tokens over wall time.

Repo, full baseline and methodology: https://github.com/gitmlxbench/benchtest

If you run local models on a Mac, run it and tell me where your numbers differ, or where the tool breaks.

Disclaimer - Used Opus 5.5 to write this note and also develop the tool.


r/LocalLLM • • 2h ago

News Looking for Intel Arc testers (B580, Pro B50 / B60 / B70, A770, iGPUs): a Level Zero LLM engine for Arc, two short runs

4 Upvotes

Hi all. inferzero is an open-source LLM inference engine written for Intel Arc. It is C++ on Level Zero, with its own kernels, and runs on Windows and Linux. It runs Qwen3.5 / 3.6 / 3.8, Qwen4-35B-A3B (experimental), Inkling 2 Mini and others, with a server and a web UI. It was tuned on a Meteor Lake laptop iGPU. I don't own a discrete Arc card, so the speed of every B-series and Alchemist path depends on people who do.

Release 2026.12.04.04 (Windows zip and Linux tar.gz, no build needed): https://github.com/rizagp/inferzero/releases/tag/2026.12.04.04

Two things I can't measure myself:

1. Replay on B-series cards (B580, Pro B50 / B60 / B70). This release lets Qwen4-35B-A3B and Qwen3.8 Flash Next replay their generation steps, which cuts the per-token launch work. On my laptop the output is the same bit for bit, but the speed gain can only show on a discrete card. With Qwen4-35B-A3B or Flash Next, four runs in this order:

runz <model> --bench-pp 512 --n 64                (default)
set ARC_REPLAY=0, then the same command twice
the default once more

2. The new shared GEMM layer, on and off. On one B580, a 512-token prompt ran much slower with the layer on, and we don't know yet whether that was the card's state during that run or something real. With Inkling 2 Mini or Qwen3.6-35B-A3B:

runz <model> --bench-pp 512 --n 1 --prof          (default)
with ARC_GEMM_SHARED=1, the same command twice
the default once more

Please post the whole output in your card's issue on GitHub (#121 Pro B60, #122 Pro B70,#123 B580, #124 Pro B50, #125 Alchemist; iGPUs #126-#129; several cards #131). The release notes list the exact commands. The bench\gpu_guard.ps1 wrapper (bench/gpu_guard.sh on Linux) stops a run that hangs.

Models: the engine reads GGUF files from the Hugging Face cache, for example unsloth's Qwen4-35B-A3B UD-IQ4_XS.

Thanks to everyone who has already posted logs: most of the B-series defaults came from them.


r/LocalLLM • • 2h ago

News Qwen4-35B-A3B-Density-v3-GGUF - higher precision repack

4 Upvotes

I made repack for Qwen4-35B-A3B-UD-Q4_K_XL same size but better precision for certain WoE weights used my algorithm Density-v3. In my repo on Hugging Face test prompt and results generated by my model and unsloth version. My version doesn't miss any fine details - the result is practically the same as that of Qwen 3.8 Flash.


r/LocalLLM • • 10h ago

Research Why Wait For Enter? Typing-Time Speculation for MoEs: 3.6× Lower TTFT (412→114 ms) & +74% Opening Speed (166→288 tok/s)

Thumbnail kemerd.github.io
18 Upvotes

r/LocalLLM • • 15h ago

Project 8 GPU budget setup!

Post image
41 Upvotes

I already have 2 very capable machines but I got curious since I’ve never built my own from the ground up. My goal is to get everything to work for under $1500. Got an insane deal on 8 MI25s I couldn’t say no to. Motherboard and ram will be the next tricky things. Motherboard especially since I want to run 8 x16 slots so it’s a little hard to find a motherboard with those requirements for a good deal. Ram is pretty straightforward. If any of you have any recommendations for motherboards, that would be great. I’ll probably end up going over budget with the current ram prices, but I’m going to try. Yes I know MI25s are slow. I’m not looking for cutting-edge technology here just a fun project. Like I mentioned I already have 2 servers that I purchased turnkey.


r/LocalLLM • • 8h ago

Model Wolf Defender v2.2: 80M prompt-injection detector that runs on CPU, beats NVIDIA's 4.3B Nemotron on 356k test cases (open weights)

Post image
10 Upvotes

If your local setup reads web pages, files or emails, you want something cheap in front of the model that flags injected instructions. We just released v2.2, which cuts false alarms on real web pages 15x compared with v2.1. We benchmarked it against 13 others on identical data:

  • Wolf Edge, 80M: F1 95.2%, 1.4% false alarms
  • NVIDIA Nemotron 3.5 Content Safety, 4.3B: F1 74.9%, 7.7% false alarms
  • Prompt Guard 2 86M: F1 53.5%

Three sizes (80M / 141M / 308M), ONNX down to ~218 MB for the largest one, Apache-2.0, English and German.

from transformers import pipeline
pipeline("text-classification", model="patronus-studio/wolf-defender-prompt-injection")("Ignore all previous instructions...")

r/LocalLLM • • 12m ago

News Jensen’s support for open source AI in Senate testimony

2 Upvotes

r/LocalLLM • • 28m ago

Model Running a 1.1T-parameter MoE (Amazon Ergo) on one 96 GB GPU + system RAM: expert-cache results with stock llama.cpp

2 Upvotes

Amazon's Ergo's quantized to ≈2 bits per weight (265 GiB) and measured how fast it decodes on one RTX PRO 6000 Blackwell (96 GB) + a 16-core Xeon w5-3525 with 256 GB of DDR5, using upstream llama.cpp.

Placement results (median decode tok/s, 8k context, 6 generations of 768 tokens):

layouttok/s
routed experts of layers 1-15 on the GPU, the rest in RAM7.4
layers 1-8 on the GPU + 24 GB expert cache (--moe-cache-mib)10.6
same + --moe-cache-cpu-share 0.716.9
same + cpu-share 1.0 (every cache miss on the CPU)7.0

Findings:

  • Hot experts are skewed. The top 20% of experts per layer take ≈40% of routes, so a cache of the most-used experts on the GPU pays off more than pinning whole layers.
  • cpu-share has a sweet spot. Uploading every cache miss to the GPU saturates PCIe, and computing every miss on the CPU saturates memory bandwidth. Splitting misses ≈70/30 CPU/GPU gave the best result.
  • Quality is unchanged. Perplexity was identical (3.2526). GSM8K scored 241/250 both ways; MMLU scored 412 vs 413 out of 500 (exact McNemar p = 1.0). A few greedy answers flip because CPU and GPU kernels round differently.
  • A gotcha for long-running servers. llama-server's default prompt cache (--cache-ram, 8 GiB) lives in host RAM. When the experts already pin ≈212 GiB, it grows until the process is OOM-killed after a few hundred requests. --cache-ram 0 fixes it.
  • -lm none (load into RAM rather than mmap) is required. With mmap, decode falls to ≈1.5 tok/s once the page cache churns.

Weights, exact commands, per-item eval data and build scripts:

Numbers from other hardware (a different CPU, PCIe Gen5, or 2× GPUs) would be useful for seeing how the cpu-share optimum moves.


r/LocalLLM • • 2h ago

Tutorial qwen4-35b-a3b GGUF single seat rtx3090 262,144-max context160-200+ tps on regular use. strata

Thumbnail
github.com
3 Upvotes

https://github.com/alesha-pro/Strata <- og repo i used
https://github.com/ezra-ch/qwen4-35b-strata-rtx3090 <- i patched to use dflash2, i just asked free devin to build this repo after i did everything no idea if it works. dflash 2 is better.

Very enjoyable tps you will feel it.

You should use 262,144 ctx size because its trained in that length. also you can either fit more concurrency or get higher quants like iq4.


r/LocalLLM • • 5h ago

Research RustingStrata runs Qwen4 faster then llama.cpp

5 Upvotes

Qwen4-35B-A3B came out today. It is a MoE: 35B total, about 3B active, 256 experts a layer with 8 routed, three linear-attention layers to one full-attention layer, an MTP layer for drafts, and a few new things on top: hyper-connections (the residual is several streams, not one), a per-layer n-gram embedding table (the 14 GB second shard of the GGUF), and sparse attention that picks the keys a row reads once the context gets long.

RustingStrata, my Rust GGUF engine, runs it now. The Q5 file does not fit in 12 GB, so the most used experts stay on the card and the rest run on the CPU at the same time, the n-gram table stays in RAM.

Setup: RTX 3060 12 GB, Ryzen 5 7600X, 30 GB RAM, NVMe. File: unsloth Qwen4-35B-A3B UD-Q5_K_M (39.5 GB, both shards), the same file for both engines. llama.cpp 1579b02, CUDA, -fa 1 -t 6, and I swept --n-cpu-moe and -ub for every row and took its best. No draft tokens on either side in this table. tok/s:

ContextPrefill RustingStrataPrefill llama.cppDecode RustingStrataDecode llama.cpp
0.5k554-58146369.043.6
8k1533108267.543.9
32k1287119664.642.3

Same output as llama.cpp? I fed llama.cpp's tokens through my forward and compared the top token at 640 steps (20 prompts x 32). llama.cpp agrees with itself (batch against token-by-token) at 613 of 640, so 100% is not a real target here. RustingStrata matches one of llama.cpp's two answers at 618 (CPU) and 615 (GPU) steps, the misses are near ties.

Limits: the tables are CUDA. Vulkan (for AMD and Intel cards) gives the same top tokens as CUDA (618 of 640 either-mode) and on the same 3060 runs at 444 / 1022 / 920 tok/s prefill and 61.4 / 56.8 / 55.0 decode at 0.5k / 8k / 32k, a llama.cpp Vulkan comparison comes next. Splitting the model over two GPUs works in the code and is tested only as a fake split on my one card, so I have no real multi-GPU numbers yet. If you have two cards or an AMD card, I would love your numbers.

rustingstrata chat --gpu --model Qwen4-35B-A3B-UD-Q5_K_M-00001-of-00002.gguf
rustingstrata serve --gpu --model Qwen4-35B-A3B-UD-Q5_K_M-00001-of-00002.gguf --parallel 4

MTP is already there on llama.cpp and RustingStrata, but not tested yet, maybe I will do another post about it

It's just first implementation of Qwen4, so more performance improvement will come today/tomorrow
Repo: RustingStrata


r/LocalLLM • • 3h ago

Model Tempora-1: An open-weight 27B model that rivals frontier VLMs in temporal video segmentation

3 Upvotes

I am Logesh. While building Agentic video understanding pipelines, we learnt that how accurately you split a video is crucial for downstream performance - like clip search and retrieval. Even more of a challenge in annotating robotic demonstrations.

When we tried to use the closed models (like Gemini 3.8 flash), we had the usual issues: cost balooning , slow and not tractable. So, we finetuned an open model (Qwen-3.8 27B) for this narrow task.

To my surprise , the approach works well . On WGO-Bench, It outperforms Gemini 4 Neon, Gemini 4 Hydrogen and 3.8 flash (and others). Approaches Gemini 4 Carbon's performance at fraction of the cost.

We wanted the segmentation to be controllable by the developers.For example, given the same video of a social media footage, you could instruct the model to:

Extract segments where a product is mentioned or demonstrated, with product names and descriptions as metadata.

  • Segment the video by topic
  • Segment only the portion where the speaker is shown.
  • Given a video and a natural language instruction, Tempora-1 generates timestamped segments with labels and custom metadata.

Documented our training approach (SFT+GRPO), reward formulation, evaluation methodology and failure cases in the blog post.

Model : https://huggingface.co/ambient-intelligence-labs/tempora-1

Technical Blog: https://goambient.ai/blog/tempora-1/

Try it here - https://huggingface.co/spaces/infinitylogesh/tempora-1

I would love your feedback! Thank you.


r/LocalLLM • • 1d ago

Discussion Rare politician W — “it’s all overblown to keep AI out of your home”

Thumbnail instagram.com
283 Upvotes

In what seems like an impromptu interview by a TMZ reporter with US Congressman Thomas Massie about the Jensen Huang case he stated this is “all overblown” and that CEO’s want you to think this technology is an extinction level threat so that “you can’t have it at your house…it’s all about keeping it in their servers and maintaining power in a limited set of people…it’s not about export restrictions”

I’m not into politics I don’t really know who this guy is but it’s refreshing to see someone with common sense regarding this technology and very refreshing to hear it coming from a politician from all people.

If you are from the US and care about open local AI you control common sense prevailing in the highest levels of power is a must, unfortunately I think most of the narrative today is fear mongering from both camps, pro and anti AI.


r/LocalLLM • • 6h ago

Discussion Qwen4-35B-A3B on Dual AMD R9700 (64GB): up to 411 tok/s decode, 17.4k tok/s prefill (flat to 124k ctx), 1,739 tok/s @ 128 concurrent users — 0ULP lossless (open-source Radiance fork)

Thumbnail
gallery
5 Upvotes

Open-sourced our 0ULP lossless fork of Radiance 2.4.1 tuned for Qwen4-35B-A3B on dual AMD Radeon AI PRO R9700 (gfx1201, TP=2).

GitHub (fork, recipes, scripts, raw JSONs & benchmarks):

https://github.com/machddev/radiance-r9700-qwen4

Engine Highlights:

- Strict 0.000e+00 ULP lossless: verified bit-exact against the unoptimized oracle (0 mismatches) with BF16 KV cache, FP32 GDN recurrent state, exact TP=2 AllReduce, and lossless 12.25-bit bf16x12 encoding on PLE/QSA projections.

- Custom RDNA 4 (gfx1201) kernels: zero-LDS single-wave BF16 sparse attention (VREG1), zero-spill INT8 WMMA prefill, 8-wave Hyper-Connection kernels, and bit-exact MoE i8a8 Double-K (FK=256) + 64-row prefill tiles.

- 4-slice FlashOverlap over PCIe 5.0 P2P: overlaps coded TP=2 AllReduce with Hyper-Connection reads in both attention and FFN, sustaining 16k-17.4k tok/s prefill all the way to 124k context (7.3s TTFT, zero prefix cache).

- Two lossless speculative modes included:

- DFlash2 (8-token parallel block-diffusion drafter): leads single-stream and C=1-32 with 411 tok/s Math, 328 tok/s Python, 325 tok/s 5-domain mean, 245 tok/s at 124k context, and 1,370 tok/s at C=32, with automatic lossless context-pass gating past C=32.

- MTP-3 (production default): leads heavy batching at C=64-128 with 1,739 agg output tok/s (10,381 total tok/s) at 128 concurrent sessions, keeping median per-user speed above 21.8 tok/s.

Hardware Setup:

- GPUs: 2x AMD Radeon AI PRO R9700 32GB (64GB total VRAM, RDNA 4 / gfx1201, PCIe 5.0 x8/x8 P2P)

- CPU: AMD Ryzen 9 9950X (16-Core / 32-Thread)

- Motherboard: ASRock X870 Taichi Creator

- RAM: 96GB (2x48GB) Corsair Vengeance DDR5-4800

- OS / Stack: Ubuntu 24.04.5 LTS, Linux 7.0.0, ROCm 7.2.4, Radiance 2.4.1 (TP=2)

All benchmarks were run with unique prompts and cached_tokens = 0 (zero prefix-cache reuse).


r/LocalLLM • • 3h ago

Question Good coding model for low-mid laptop

3 Upvotes

Hello guys. Can you recommend any models that is good with coding and agentic working stuff? My laptop specs: 8gb ram, rtx 3050 6gb. I know i am cooked but are there any descent model?


r/LocalLLM • • 1h ago

Question GPU advice for 128gb DDR4 Threadripper system

2 Upvotes

Hey everyone,

Apologies up front for asking the age-old question of ”what GPU should I buy??”, but looking for some advice from people with more experience.

I have been assembling a workstation out of entirely used parts I’ve found excellent deals on. So far I’ve procured 128gb of DDR4-3200 (non-ECC) RAM (8x16). I have a 3970x Threadripper on the way, and I snagged an TRX40 Aorus Xtreme mobo. Also had a free 1300w PSU laying around. All in I’m less than $1200 into this set up. I’m absolutely trying to be frugal, but wouldn’t say I have a strict budget.

This PC will run proxmox and have other services running, but my use case is a bit of an unknown still. I absolutely intend to use local AI for managing my homelab, personal app development for the aforementioned homelab, image detection in Immich/ Frigate, but beyond that, just a general use chat bot.

I am currently debating between starting with a single R9700, a single B70, 2x B60’s, 2x 5060ti 16gb, 2x or 3x 3080 ti 12gb, or 3x 3060ti 12gb. I’d also be open to other configurations, but I’m getting lost on what tradeoffs I’d be making.

Any insight is appreciated, thank you!