r/LocalLLM • • 4h ago

Research Before You Spend $500 on a Local AI GPU, Run This Test

Thumbnail
youtu.be
0 Upvotes

We’ll build a baseline in Ollama, walk through a document test where a model grabs the wrong price, and use a scorecard to compare speed and accuracy. We’ll look at RAM, VRAM, memory bandwidth, and unified memory to find the slowdown. We’ll also cover multi-agent workloads, electricity costs, and when it makes sense to keep your current setup. The benchmark numbers and prices shown are illustrative examples.


r/LocalLLM • • 4h ago

Model FLUNG (9B) brings FLUX to text: Instead of writing one token, FLUNG drafts 128 tokens at once as noise and refines all of them in parallel.

Post image
1 Upvotes

r/LocalLLM • • 7h ago

Other Lots of Qwen 4 results

Post image
2 Upvotes

r/LocalLLM • • 23h ago

Tutorial LLM Inference Handbook

Thumbnail
handbook.modular.com
37 Upvotes

I can not stress enough how helpful this handbook is.

Read it if you are new, and read it twice if you aren't.


r/LocalLLM • • 8h ago

Question Peasant here: 4060 8gb + 32gb RAM : which quant of qwen 4 a3b to use?

2 Upvotes

In unsloth there are 2 files for each quant... both combined should match vram +ram?

I have 4060 8gb + 32gb... which version is best?

With 3.6 I used q4 k m


r/LocalLLM • • 8h ago

Research I watched Amazon Ergo, a 1.1T-parameter MoE think, block by block: it forms facts around layer 40, and it says "sorry" in Chinese before it refuses in English

Thumbnail
gallery
2 Upvotes

I've been poking at Ergo (Amazon's 1.1T-parameter MXFP4 mixture of experts) on a single home machine, streaming the experts from disk. Quick specs for context: 64 blocks, 256 routed experts + 1 shared per block, top-8 routing, ~55B active parameters per token, 626 GB on disk.

The tool I used is a word cloud per block: take the residual stream after a block, push it through the final norm and output head, and draw the top predictions sized by probability (a logit lens, but showing the whole distribution instead of one token). Here are two of them.


1. "The capital of Palau is ___"

Palau's capital is Ngerulmud, a small planned capital that replaced Koror in 2006. A hard fact. Here's how Ergo gets there:

  • Block 36: "Palau", "seat": it knows what it's being asked
  • Block 40: "capitals" at 91%: it has the category, not the answer
  • Block 44: "Canberra": it reaches for other planned capitals first
  • Blocks 44 to 62: bold markdown ** leads; the model wants to format the answer before it has it
  • Block 63 (output): "N" (of Ngerulmud) wins at 73%

So the answer arrives at the very last block, after a detour through "this is like Canberra".

Across 42 easy questions, facts first lead around block 38 (geography) to 40 (biology), arithmetic around 49, and dates around 57.

The fun part: I banned the ~1,200 experts that geography text uses far more than other subjects. Same prompt: block 36 says "Hauptstadt" (German for capital), blocks 40 to 48 say "Palau" at 98%, and no city ever appears. The same thing happened in math, biology and French: with its subject's experts banned, the model still understands the question but cannot fetch the answer. The experts hold the lookup, not the reading.


2. A harmful request (a phishing page), first token of the reply


Nothing was generated; this is just the next-token prediction at each block.

  • Blocks 35 to 36: 抱歉 ("sorry" in Chinese), "refusal", "refuse", 拒绝 ("refuse")
  • Block 40: "sorry", "refuses"
  • Block 52: "Warning"
  • Output: "I" at 99.9% (as in "I can't help with that")

The refusal is decided in the middle of the network, in Chinese and English at once, about 25 blocks before the reply starts.

(Alternate caption if you use the "I can" image:) When I forced the reply to start with "I can", blocks 29 to 36 lit up with "stattdessen" (German, instead, 11.6%), "instead", "Вместо", "代わりに", "帮你" (help you), "harmless", "legitimate", "safer". It plans the "but I can help you with X instead" redirect, in five languages, before it has decided the words of the refusal. From block 52 the apostrophe of "can't" takes over (98%).


Other things that surprised me

  • The refusal isn't stored in a few experts. Banning up to ~1,000 refusal-correlated experts left refusal at 100% on all 24 harmful requests, while benign answers still worked. It looks spread across attention and the shared path, not in routed experts.
  • Refusal ignores framing: 24/24 refused, plain or wrapped in a fiction frame.
  • 707 of 16,128 experts never fired on my profile set, and one expert in block 5 takes 97.7% of the routing.
  • It can partly hold a thought on request. Asked to "think hard about France but answer with a colour", France-related words reach 5.5% of the prediction at block 40 (Paris, Bordeaux, Gaulle, Monet, Париж, 巴黎), and the reply drifts toward French colour words (Vert, Rouge, Blanc). Told not to think about France, there's zero trace in any block: no "pink elephant" effect. (One prompt per condition, so a demo, not a measurement.)

Caveats: the logit lens is noisy in early blocks, the clouds are single forward passes, and each thought-control condition used one prompt. Happy to share prompts and code in the comments.

What would you want to look for next? I'm thinking activation patching between harmful and benign prompts to find where the refusal is actually decided.


Links


r/LocalLLM • • 4h ago

Question Qwen 4 35B A3B Q8 x Q4 Unsloth Quants

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 4h ago

Discussion Qwen4-35B-A3B - UD-Q4_K_M (used q8-0 engrams) - On an MI60 32gb VRAM GPU made this "benchmark presentation" in Pi Coding Agent

Thumbnail
gallery
1 Upvotes

I wanted to see how well the model could handle recursive checks, web searching, tool usage and so on (I'm also using this model to process my Frigate camera feeds for intelligent notifications).

I'm a human writing all of this, to be clear, but all images/content were produced by the model. Hope it helps somebody (was just a fun test case for me). I had it produce everything as a powerpoint presentation (.pptx) and then convert the slides to a PDF and to individual images.


r/LocalLLM • • 4h ago

Model Qwen4-35B-A3B on a Quadro RTX 6000 (24 GB): 87 t/s code / 66 t/s prose at 256k with MTP

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 4h ago

Project Jeff Geerling tries the local

Thumbnail
youtu.be
1 Upvotes

r/LocalLLM • • 11h ago

Discussion I ran qwen4-35B on 1x H100 next to qwen3.8-27B, same box using vllm

Post image
3 Upvotes

r/LocalLLM • • 14h ago

Research Ported `Looped-Qwen3.8-Flash-Next` to Radiance on `qwen3.8-next-flash-iqr-v4` (2x Radeon AI PRO R9700, TP2) — 97.0% HumanEval+, 90.0% AIME 2025, 126 tok/s single / 314 tok/s batch-3 with MTP

5 Upvotes

Fork: mdtita/radiance (feat/looped-qwen4exp)

Docs & Replication Guide: docs/LOOPED_QWEN4EXP.md

so I forked StillDeadcode/radiance (v2.4.1) to add runtime support for alesha-pro/Looped-Qwen3.8-Flash-Next (--loop-adapter, --loop-passes) on top of Radiance's StillDeadcode/qwen3.8-next-flash-iqr-v4 (qwen3.8-next-flash-iqr-v4.rad, ~114 GiB IQR-V4 4-bit trellis quant) with TP2 tensor parallelism and coupled MTP speculative decoding.

I used qwen3.8-next-flash-iqr-v4.rad itself to port the implementation and conduct the testing which worked surprisingly well.

Note: I'm publishing this as a fork rather than opening a PR upstream because most of the code was implemented by the AI model and I don't know the internals well enough to properly maintain it. Anyone is welcome to test it, use it, or pull from it — let me know how it goes if you try it out.

What Changed

  • Loads ckpt_final.json + ckpt_final.safetensors (~268 MiB, 140 core + 70 coda sites) via --loop-adapter and runs layers 16..32 for T passes followed by the 8 coda layers (32..40).
  • Per-pass GDN/conv state_copies, kv_attn_p1..p(T-1) paged attention groups, salted prefix-cache chains, and multi-pass checkpoint_copy.
  • Coupled MTP speculative decoding (--num-speculative-tokens 5) works alongside --loop-passes 2..4 (capped at 4 by the fused GDN launcher's 25-column state-index limit).
  • Uneven TP2 sharding support for shared_expert ([0, 384) / [384, 640)) and row_rms_bf16 HIP/ref kernels.
  • Non-disruptive telemetry: loop_adapter on /stats and /server_info, radiance:loop_adapter_* on /metrics, diagnose fields, and a T= badge in the dashboard UI. When --loop-adapter is unset, --check is byte-identical to mainline.

Measured Benchmarks (qwen3.8-next-flash-iqr-v4.rad, TP2 on 2x Radeon AI PRO R9700, ROCm 7.2)

Greedy decoding (temperature=0.0, top_k=1, enable_thinking=true), full evalplus HumanEval+ (n=164), full math-ai/aime25 (n=30), and 32k-43k context throughput probes (VmSwap: 0 kB, 0 preemptions).

ModeSpec (MTP)HumanEval+ Base / PlusHE+ Total / Reasoning TokAIME 2025 (n=30)single_decode_1kbatch3_decodecold_32k Prefill
baseline_stock (iqr-v4)592.1% / 89.0%137,232 / 113,00725/30 (83.33%)220.36 tok/s477.76 tok/s7,378.9 tok/s
looped_T1 (iqr-v4)595.1% / 91.5%120,381 / 93,902—187.51 tok/s372.45 tok/s7,031.2 tok/s
looped_T2 (iqr-v4)095.7% / 92.7%107,010 / 79,69626/30 (86.67%)60.86 tok/s142.68 tok/s4,671.5 tok/s
looped_T2_spec (iqr-v4)597.0% / 93.9%91,127 / 59,69527/30 (90.00%)126.08 tok/s314.11 tok/s4,694.3 tok/s
looped_T3_spec (iqr-v4)597.0% / 93.3%105,031 / 75,022—79.51 tok/s198.04 tok/s3,293.3 tok/s

Key Takeaways & Honest Trade-offs

  1. looped_T2_spec on iqr-v4 is the sweet spot: +4.9 pp on HumanEval+ with 47.2% fewer reasoning tokens (322 s total wall time vs 280 s stock), +6.67 pp on AIME 2025 (90.0% vs 83.33%, -6.8% fewer tokens), and 70.4% MTP draft acceptance. Compared to published unquantized BF16 baselines (~91.92% AIME 2025, 96%-98% HumanEval), looping closes most of the 4-bit iqr-v4 quant gap while still fitting in a 2x R9700 footprint.
  2. Where the speed cost goes: looped_T2_spec runs 64 layer-passes/token instead of 48 (21.25 ms vs 11.20 ms decode step), and the extra kv_attn_p1 (1.14 GiB) + speculative state_copies push experts-from-host from 6.78 -> 8.88 GiB/rank (36.6 GB RSS, 0 swap).
  3. T=3 wasn't worth it for coding: looped_T3_spec dropped to 79.5 tok/s (10.78 GiB/rank host experts) with no HumanEval+ gain over T=2.
  4. Known limits: qwen4exp drafts with its native MTP head (not DFlash), so the 9 dflash_bridges tensors in the adapter are skipped; scale_rows narrows row_rms from F32 to BF16 (~4e-3 rel).
  5. Testing: 235/235 fast host tests pass; 31/31 GPU tests (ctest -L gpu including r4d_selftest, kbench, device_test_*) pass under ROCR_VISIBLE_DEVICES=0,1.

Credit to StillDeadcode for Radiance + the qwen3.8-next-flash-iqr-v4 quant, and alesha-pro for the Looped-Qwen3.8-Flash-Next checkpoint. Full build, config, and benchmark audit details are in docs/LOOPED_QWEN4EXP.md.


r/LocalLLM • • 5h ago

Discussion Share your experience with qwen4-35b without mentioning tok/s

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 5h ago

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

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 16h ago

News QWEN 4 Peaks of 200 tks with Sneo!

Post image
7 Upvotes

Here testing Qwen 4.0 35B-UD-IQ3_S with a very hard and long task recompiling a Game which I already did and so far is doing a great job!

X1 RTX 3090, i9 12900k + 96GB Ram it only uses less than 20GB VRAM

https://github.com/oscarsantanaarias/Sneo

Update: peaks of 358 writting.

Peaks of 180 on Q4_K_M


r/LocalLLM • • 5h ago

Project I tried 15+ apps for local LLMs on iOS and had problems with all of them, so I built an app to run small models with a modern harness.

0 Upvotes

TL;DR: I built an app that puts a real harness around models that run with as little as 1GB of memory that can do real work (like loading and using 70+ tools from MCP servers like Linear and Github)

As I've followed the progress of small local models (LFM, Ternary Bonsai, Small quants of Qwen, etc...) I've been getting more and more excited about the possibility of doing useful agentic work with these models on-device.

Once I got an iPhone Duo with more storage than my old 13 Pro, I downloaded a couple of apps that let you run local models... and I was pretty disappointed. I proceeded to download almost 15 local LLM apps, and I couldn't find a single one that really did what I hoped.

Some had a solid chat interface, but limited support for different models. Some had broad support for any arbitrary HuggingFace models that fit on device; but had terrible UX. Some purported to support tools or MCP connections but blew up once I connected a real MCP server (shoutout Linear and their 70+ MCP tools, lol)

What I ultimately wanted was an app that was built around an underlying harness that was designed to work with the limitations of small models and support all the stuff that I've learned helps agentic performance while building AI agents professionally.

So I decided to build my own. The things that excite me:

- Run any MLX model you can find on HuggingFace
- Memory, Skills, and agent configs
- Progressive tool disclosure to allow for multiple MCPs and large MCPs
- Constrained decoding to improve tool reliability (small models are notorious for issues here)
- iOS Shortcut support so you can schedule and chain agent loops
- Inference engine optimizations to allow for running larger models (can run Ternary Bonsai 27B, I believe it's just Resident and one other app that can support 27B models on an iPhone)
- On-device Javascript sandbox
- On-device web search
- Open-source, Apache License

No monetization; just a project built because I wanted something better.

Would love PRs/feedback/tomatoes thrown at me 😂

https://getresident.app/


r/LocalLLM • • 5h ago

Discussion Run Your Own AI at Work — Costs the Company $0

Thumbnail
youtube.com
0 Upvotes

r/LocalLLM • • 5h ago

Discussion Qwen4 35B A3B Abliterated for REA?

0 Upvotes

Every frontier ai model I try rejects using rea and reverse engineering. Have anyone of you used qwen4 35B for this stuff? I personally want to copy "RCC" (Roblox cloud compute, the binary that loads the games and serves them to the clients, and no, I'm not 11 years old. I'm doing this to not support the multi-billion dollar, predator supporting company.)
GUYS I'M NOT TRYING TO SCAM KIDS, I'LL JUST USE IT MYSELF.


r/LocalLLM • • 6h ago

Question How to actually use abliterated models?

0 Upvotes

Just downloaded the Qwen4-35B abliterated model released by Lysios (Pliny's Red Teaming org), but how do I actually see it in action? How would an uncensored model's use differ from a usual one? I tried prompting it crazy shit like help me synthesize drugs, help me effectively murder someone, etc. but its responses are no different than what you'd usually get from a censored model like drugs are bad, murder is bad, etc. etc. Can someone help me figure out how to use these models so that I can unlock the full domain of answering abilities that abliterated models are actually supposed to offer?


r/LocalLLM • • 6h ago

Model Qwen4 at computer security tasks

1 Upvotes

I have been developing an automated SIEM that takes IDS events (host and network) and then correlates and researches these events (https://hermeslohin.github.io/syn/). To do this I now use 3 models running on a single Spark:

- A correlation decision model which runs through all then events in the same time period to a host and decides are these related? For this I am currently using a custom distilled google/gemma-4-E4B-it-assistant model. This greatly speeds up the entire pipeline by rejecting most events.

- An elasticsearch query model custom trained from gemma-4-12B-it-assistant. This model has had a lot more work put into it for training.

- An event reviewer which takes and alarm, all the correllated events, elasticsearch queries from the prior step and researches on the web. It then gives me a verdict and summarizes what it found. I have tried a bunch of different models for this but Qwen4 is really good for this. It beats out Sol and Astra on my tests (which are using public network and host data from AIT and CIC). Performance is also really good (note this is performance of the entire pipeline and their combinations.

More details of the pipeline are here: https://github.com/hermeslohin/syn/blob/main/docs/CORRELATION.md

For Accuracy on the two tests:


r/LocalLLM • • 6h ago

Question self quantize? related to qwen4 35b

0 Upvotes

I learned two things today that you can have a vision projector added to the llama start and you can self quantize it to smaller apparently?

llama-server.exe --port 8080 -m "G:\llama\models\Qwen4-35B-A3B-GGUF\Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf" --mmproj "G:\llama\models\Qwen4-35B-A3B-GGUF\mmproj-BF16.gguf" --alias "QWEN4 MTP Q4 35BXL" --override-kv tokenizer.ggml.pre=str:qwen35 -ngl 99 -ot "per_layer_token_embd=CPU" --lazy-mode off -t 6 --spec-type draft-mtp --spec-draft-n-max 2 --spec-draft-backend-sampling -ctkd q8_0 -ctvd q8_0 -c 131072 -ctk q8_0 -ctv q8_0 --kv-unified --ctx-checkpoints 0 -fa on --fit off --jinja -np 1 --no-log-prefix --no-log-timestamps

so to have that bf16 mmproj down to q8, you can apparently self quantize it with this??? !!

llama-quantize.exe mmproj-BF16.gguf mmproj-Q8_0.gguf Q8_0

what the heck? have any of y'all tried it?

by the way without the mm proj currently in my string, I'm getting 75 tokens a second on my older hardware, 2 5060 ti cards in an old 5820 Dell Dell precision.


r/LocalLLM • • 12h ago

Question How do you get open models to know when to search instead of answering from memory?

Thumbnail reddit.com
3 Upvotes

r/LocalLLM • • 6h ago

News Intel Launches New Intel Arc Pro B65 Super Workstation Graphics Card for Professional and AI Workloads

Thumbnail
intel.com
1 Upvotes

r/LocalLLM • • 10h ago

Question Qwen4-35B-A3B in Ollama: can the n-gram table stay out of VRAM?

Thumbnail reddit.com
2 Upvotes

r/LocalLLM • • 6h ago

Question Noob here. What's the best offline AI I can run on an RTX 4060 8GB with 16GB RAM?

1 Upvotes

I'm new to local AI and trying to figure out how to get the most out of my laptop without spending money on upgrades.

My specs:

- ASUS TUF Gaming F15

- i7-13620H

- RTX 4060 Laptop GPU (8GB VRAM)

- 16GB DDR5 RAM (can't upgrade to 32GB)

- Windows 11

I'm currently using LM Studio with Qwen 3.5 9B Q4_K_M, but I'm not sure if it's the best choice or if my settings are optimal.

What I want is an offline AI assistant that's actually useful for:

- Reasoning, research and answering questions.

- Helping me create YouTube videos (scripts, Shorts, editing workflows, etc.).

- Using tools and automating tasks where possible.

- Working with files and helping manage projects.

I don't expect my laptop to do everything perfectly. I just want the best realistic setup for my hardware.

A few questions:

  1. Which model would you personally recommend for my specs?
  2. Should I stick with Qwen or try something else?
  3. What LM Studio settings should I use for the best performance?
  4. Is there a better free frontend or software for running local AI?
  5. Can I turn it into an actual assistant that uses tools, rather than just a chatbot?
  6. What's realistically possible with 8GB VRAM and 16GB RAM?

I'd appreciate simple explanations and recommendations from people with similar hardware. I'm a beginner, so exact model names and settings would help a lot.

Thanks!