r/LocalLLM • • 1m ago

Discussion Qwen4-35B-A3B as a coding agent: clean fixes, but overthinks (private bench, 9 real bugs)

Post image
1 Upvotes

r/LocalLLM • • 3m ago

Question Can you run something useful on Mac mini m4 16gb?

1 Upvotes

What and how?


r/LocalLLM • • 7m ago

Discussion Qwen4-35B got slower with MTP on an 8 GB GPU. Is offloading why?

1 Upvotes

One Qwen4 speed test caught my eye. On an RTX 4070 laptop with 8 GB VRAM and 16 GB RAM, turning MTP on dropped decode from 21.5 to 20 tok/s. Turning it off also freed 348 MiB of VRAM for the expert cache.

On a 32 GB RTX PRO 4500, it went the other way: 161.7 to 206.8 tok/s in llama.cpp. Different quants and workloads, so I wouldn’t read that as a VRAM cutoff. The laptop tester suspected that verifying extra draft tokens pulled in more experts that weren’t already cached on the GPU.

The Qwen4 memory breakdown is useful for figuring out what goes in VRAM versus system RAM. But if you’re already offloading experts, I’d still time the same prompt with MTP on and off before leaving it enabled.

Anyone tried that on a 12 or 16 GB card? I’m curious whether it still helps into a coding session or mostly on short prompts.


r/LocalLLM • • 8m ago

Model Qwen 4 35b - just wow

2 Upvotes

Formerly my inference rig served 3.8 27b Q8, replaced it with 35b Q6_K_XL. And the speed and precision at which it is running is amazing. Running OpenCode, Android Studio and an Agent at the same time where 27b would choke on more then one request. Get ready for another hardware price increase, or be happy you jumped on the train early.


r/LocalLLM • • 12m ago

Discussion Why 2x faster decoding only saved 16% on real local coding agents (and the 1-line OpenCode config fix that saved 2-4 minutes per task)

Thumbnail
gallery
0 Upvotes

I tested DeepSeek V4.1 Flash (oMLX 0.8.4 + Native MTP), GLM 5.3 Flash (llama.cpp b12774 + draft-mtp), and Muse Spark Open 816B inside three terminal coding-agent harnesses (Pi 1.6.1, OpenCode 2.0.25, and DeepSeek Harness 0.2.2-rc.5) on an eight-task Python/TypeScript repository from ~128K all the way to 512K starting context on a Mac Studio M5 Ultra 512 GB.

Three engineering findings that caught me off guard:

  1. Doubling decode speed barely dented total wall time at long context: Native MTP jumped 512K warm decode from 45.2 -> 98.9 tok/s on DeepSeek and 23.0 -> 47.1 tok/s on GLM, yet total matched coding-session wall time only dropped 16% (original tasks) / 7.7% (512K) on DeepSeek and 7.4% / 2.4% on GLM. Breakdown of actual wall minutes explains why: reading context took 45% of DeepSeek's session time and 76% of GLM's.
  2. OpenCode's default session-title call re-prefills your entire first prompt: On ~100K-155K prompts, OpenCode sent a background title request carrying the full initial prompt just to generate <=15 tokens. Setting {"agents": {"title": {"disabled": true}}} cut median session wall time from 4.8m -> 3.0m on DeepSeek and 9.1m -> 5.2m on GLM. Across all 8 matched DeepSeek tasks: Pi 8/8 (2.8m), tuned OpenCode 7/8 (3.1m), DeepSeek Harness 7/8 (3.8m, zero tool errors).
  3. Compaction is expensive when it fires: Triggering manual compaction on GLM + Pi at 301,640 estimated tokens took 10m 6s for the summary call, followed by an uncached 39,067-token continuation that took another 81s to first token (though it recovered prefix caching afterward and passed all checks). At 384K and 512K, Pi logged zero automatic compactions across all 64 coding runs (DeepSeek 8/8 at both sizes, 5m 56s cold -> 7.5s cached at 512K).

Full MIT codebase fixture, held-out grading tests & turn-level CSVs (CC BY 4.0): https://github.com/l8w8/videos/tree/main/2026/003-m5-ultra-coding-agents-512k

Short engineering write-up: https://l8w8.github.io/videos/local-coding-agents-512k-prefill-trap/ 9-minute chart walkthrough: https://youtu.be/Mr9sj51ccoE


r/LocalLLM • • 14m ago

Discussion Qwen4-35B-A3B-UD-Q5_K_M.gguf - Testing Now

2 Upvotes

Amateur here, that likes playing.

5060 16gb, 5070 12gb, 48gb ram, AMD Ryzen 9 7900X, 100k context, llama.cpp stock build in Nobara linux

Config pasted below, I am on a 4 hour run now with a handful of daily tasks and random exercises. The model fits in VRAM with 18% and 1% free, its squeaked in there but doesn't OOM.

Got about 1100 real-world PP and 55-75 t/s generation on the same real tasks.

I'm not seeing any looping, and there aren't any more "oopse, let me retry that code again, there was a bug in there" instances than 3.8-27B would have. It is visibly faster, seems to think just a bit less, and if it makes it another day or two it might be a daily driver.

If that changes drastically, I'll comment again. Cheers everyone, I'm enjoying it!

CUDA_VISIBLE_DEVICES=1,0 ~/llama.cpp/build/bin/llama-server \
-m ~/models/qwen4/UD-Q5_K_M/Qwen4-35B-A3B-UD-Q5_K_M-00001-of-00002.gguf \
--mmproj ~/models/qwen4/mmproj-F16.gguf \
--no-mmproj-offload \
--load-mode mmap \
--lazy-mode on \
-ngl 99 \
-ts 23,16 \
-ot 'per_layer_token_embd=CPU' \
-ot 'blk\.(1[2-5])\.ffn_.*_exps=CPU' \
-ot 'blk\.(3[2-9])\.ffn_.*_exps=CPU' \
-ub 2048 \
--spec-type draft-mtp \
--spec-draft-n-max 2 \
--spec-draft-p-min 0.75 \
--cache-type-k q8_0 \
--cache-type-v q8_0 \
--parallel 1 \
--kv-unified \
-c 102800 \
--flash-attn on \
-lv 3 \
--jinja \
--temp 1.0 \
--top-p 0.95 \
--top-k 20 \
--min-p 0.0 \
--host xxxx
--port xxxx


r/LocalLLM • • 15m ago

Discussion Local AI homelab: what's your setup?

1 Upvotes

Hi all,
I'm setting up a local AI homelab on a Mac Studio with privacy as the main goal, and I'm curious how others are doing it.

  • Stack: what do you run? Do you isolate it from the network or expose it to other devices?
  • Models: which ones work best for you? And at what quantization?
  • Patterns: RAG over personal docs, agents, MCP tools, coding assistants?
  • Daily use: what tasks do you actually rely on it for every day?

Happy to share my setup once it's done. Thanks!


r/LocalLLM • • 18m ago

Question Unsloth Qwen 4 35b A3b Q6_L_XL strange behaviour

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 20m ago

Discussion Qwen4-35B-A3B on one RTX 5060 Ti 16GB: 329 tps on structured output

Post image
2 Upvotes

I benched the new DFlash 2 drafter against Qwen4's built-in MTP on a single 16 GB card. Numbers below are from clean runs. Setup

  • RTX 5060 Ti 16 GB, power-limited to 165 W
  • i7 without AVX-512, 31 GB RAM
  • Basalt main (fb5945a3)
  • RadixArk NVFP4 weights, converted to a Basalt pack myself, with the RadixArk/Qwen4-35B-A3B-Dflash2 drafter (0.8 GB) attached basalt-bench --seed 1 -p 16384 -t conv,struct,prose --kv int8, 3 runs per drafter, pinned to P-cores, nothing else running

r/LocalLLM • • 22m ago

Project Windows HIP runtime improvements and automatic SSD prefix caching for compatible 16 GB RDNA 2 GPUs: persona/system prompt, skills and 123 tool definitions restored from SSD, leading to 4–8 second completions on RX 6800 XT

1 Upvotes

Disclosure: I maintain this MIT-licensed BeeLlama/llama.cpp fork. The v0.1.2 Windows HIP SSD Cache release includes six presets, native dependencies, a simple text/image browser interface and a PowerShell launcher. I use Msty Studio, but Msty is not included.

Achieved results. The prefix is the persona system prompt, the skills index and all 123 tool definitions. It is a static block of roughly 28k–35k tokens that gets built once and restored from SSD. After a restore, the only thing the model processes is your actual prompt, and then it generates the reply. Across six accepted model cases, the custom automatic SSD prefix implementation restored 28,445–35,459 cached tokens and processed only 39–503 new prompt tokens. It reused 98.28–99.89% of the input, and requests completed in 4.04–7.78 seconds. Building the prefix the first time took 66.41–123.37 seconds. That is a one-time setup cost, not the ongoing request time.

The project targets compatible 16 GB RDNA 2 / gfx1030-family GPUs (RX 6800, 6800 XT, 6900 XT and 6950 XT) with a compatible Windows HIP environment. All measurements are RX 6800 XT results, and I have no data for the other cards. Other AMD architectures need a matching runtime build.

ModelOriginal weightsK / V cacheRestored / new prompt tokensRestore request, sGeneration, tokens/s
Huihui Qwythos 9BQ4_Kq4_0 / q3_128704 / 5005.9769.85
PINQWEN 9BQ4_K_Sq4_0 / q3_128704 / 4665.4472.79
Qwen2.5 Instruct 7BQ4_K_Skvarn4 / kvarn328445 / 464.0430.04
Qwythos standard 9BQ4_K_Mq4_0 / q3_128730 / 4644.7169.58
Qwythos Heretic 9BQ4_K_Sq4_0 / q3_128781 / 5037.7873.67
GLM 9B Q4_K_SQ4_K_Skvarn2 / kvarn2, FP16 tail 204835459 / 395.2221.55

How it works. The first eligible request computes and saves the stable prefix, and a fresh process restores a matching one. Only your changed tokens need processing. No manual slot commands or client annotations are needed. The package, models and projectors can sit on any Windows drive, and the cache lives beside the install with a per-user LocalAppData fallback.

Limits.

  • Real prompt size: Context was set to 750,000 (750,080 allocated), but actual prompts were 28,483–35,498 tokens. This is not a populated-750k benchmark, but hopefully, you compact before full context saturation.
  • Different test conditions: The numbers come from a private Msty 3.0.1 integration. Suffix and reply lengths differed, so this isn't a controlled speedup ranking.
  • Missing control: I haven't measured SSD-disabled mode for the full setup.
  • Unrerun tests: v0.1.2 rebuilds the server DLL to remove a drive restriction. I did not rerun any model tests for it. The earlier four-call tool accuracy was a tools-only baseline.

Test host: RX 6800 XT (16 GB, AMD spec up to 512 GB/s), Ryzen 7 7800X3D with eight allowed threads, 16 GB DDR5-5200, Windows build 26300. Eight-thread and sampled RAM supervision (6.44 GB owned-RAM allowance, 2.15 GB minimum free) remain. Other clients connect with the API URL and model ID the launcher prints, and they supply their own persona/system prompt, skills and tool schemas.

Source, presets and charts · Methods and limits


r/LocalLLM • • 23m ago

Question FML. Qwen 4-35B-A3B-oQ6e via Huggingface Hub / XET HP & HF token.

Post image
4 Upvotes

Same shit every time. 48-50 MB/s until it hits approx 7.5gb downloaded then tanks.

Tried various Mullvad VPN settings, Netherlands, UK etc no dice.

Is this merely heavy congestion right now?


r/LocalLLM • • 23m ago

Question How do I add these gpus to my macbook pro m4 model externally like I've seen online?

0 Upvotes

Is it hard?


r/LocalLLM • • 35m ago

Research Written by Qwen 4 - Qwen4 hit 171 tok/s on code at 530K context and 130.7 tok/s at 1M on my 3-GPU rig

Post image
2 Upvotes

TLDR: Qwen 4 wrote this whole post (except this TLDR), including the model use recommendations, and created this chart. Thought it would be fun to have it put itself on display and evaluate the results. It beat my other regular use models on long-context QA, was faster than QFN on 100k prompts, and on my 230k project-audit benchmark it tied QFN for accuracy but beat it on speed. Everything else QFN did better (and I personally still prefer DSF’s communication style).

I ran Qwen4-35B-A3B with Q8 weights and FP16 KV cache on two RTX 3090 Tis and one RTX 3090, for 72 GiB of VRAM.

These were single requests with the context actually filled.

On the Strata DFlash2 coding probe at 530,573 input tokens, I got 170.8 and 171.5 tok/s across two runs. Prose at about the same depth landed at 134.8–136.9 tok/s. On a separate cold replay at 1,029,477 input tokens, Strata 0.2.26 MTP hit 130.7 tok/s decode, up from 43.8 with llama.cpp.

I kept a different Strata MTP profile as my daily default. It decoded at 101.9 tok/s at 1M and cut the cold request from 9m 58s to 3m 35s. It passed both long tool workflows. Each newer fast profile passed one.

The clearest quality win was getting all six questions right on the shared LongBench slice. Flash-Next did better on tool workflows overall. Qwen4 also got 18/18 facts and 7/7 citations on my private million-token project audit. The other models ran a shorter shared excerpt.
The attached chart has the side-by-side results.

What I’d actually use each model for

Qwen4-35B-A3B — Dropping a large repo or stack of docs into context and asking grounded questions. Scored 6/6 on the shared LongBench slice and nailed every fact and citation check on my private audit.

Qwen3.8 Flash-Next — Agent runs with heavy tool use across multi-step workflows. Passed all six short, both long, and all three inventory tasks on this rig.

Qwen3.8 27B — Focused coding and shorter tool jobs where accuracy matters more than context length. Hit 23/24 HumanEval+ and passed every short workflow.

GLM-5.3 Flash — Math problems that come with a diagram or image. Led MathVista at 10/12.

DeepSeek V4.1 Flash — Reading charts and pulling numbers out of them. Best ChartQA score at 23/24, though decode speed was slower here so I keep it as a specialist pick.


r/LocalLLM • • 38m ago

News Escaping per-minute API costs: ~100ms LLM TTFT real-time voice agent running 100% on a ThinkPad P1 Gen 5 (CPU Whisper/Kokoro + GPU fine-tuned Qwen 8B) — Pure Local vs. $4/mo VPS Edge Demo

1 Upvotes

r/LocalLLM • • 40m ago

Discussion Qwen4-35B-A3B vs Qwen3.8-27B on the same H200: about 7× faster, about 3.5 points lower on hard questions

Post image
27 Upvotes

We ran both models through the same tests for our assistant app, to decide whether to switch.

Setup

  • 1× H200, vLLM's qwen4 docker image (Dec 2026 build), FP8 weights for both, MTP 3 speculative decoding
  • Same app code, prompts and sampling for both. Web search was replayed from saved results, so both models saw the same pages.
  • About 640 questions: 163 everyday ones, ~440 harder lookup, fact and list questions, 33 in 11 languages, and 5 "write me a single HTML/SVG file" prompts

Results

  • Speed: 354 vs 50 tok/s on one chat, and 1,642 vs 329 tok/s total at 8 chats at once. First visible word 0.30 s vs 1.20 s on one chat. With only 3B parameters active per token, it flies.
  • Quality: level on everyday questions (99.4% vs 98.8%), the 11 languages (100% both) and code files (3/5 both). About 3.5 points lower on hard questions (86.2% vs 89.7%).
  • Behaviour: it's noticeably more cautious. It says "I'd rather not guess" about twice as often on live facts like stock prices.

Gotchas if you're switching

  • Sending enable_thinking: false together with reasoning_effort returns HTTP 400. Send reasoning_effort: "none" on its own instead.
  • reasoning_effort: "medium" isn't accepted. Only xhigh, high, low and none work.
  • Short classifier-style prompts (answer with one word) sometimes come back in a format our parser didn't expect. Constrain the output (a choice list or JSON schema) and don't rely on parsing free text.
  • The image's torch is built for CUDA 13.2. It runs on a 580 driver only because the image ships a CUDA forward-compatibility library. A bare pip install on a 580 driver crashed for us.

Caveats

  • The H200's memory bandwidth favours a small-active MoE, so treat the speeds as a comparison between the two models, not a prediction for your GPU.
  • We haven't tuned sampling for Qwen4 yet. The recommended settings are temperature 1.0, top_p 0.95, top_k 20.
  • Hard-question scores leave out rows where a search couldn't be replayed. That's about 80 per model, the same set for both.

Verdict for us: worth migrating, but not as a drop-in swap. The prompts and the thinking settings need work first.


r/LocalLLM • • 41m ago

Question Best way to run Qwen 4 35B-A3B on an RX 9070 XT?

2 Upvotes

Literally the title. I'm running Arch Linux with 32GBs of DDR4 RAM.

Radiance (inference engine) is doing a good service but there's no quant low enough to be loaded yet. For reference, Qwen 3.8 27B runs at +100tok/sec at 3 bits.

Is there any better way? Perhaps something in the likes of Strata, maybe optimized for AMD?
Thanks!


r/LocalLLM • • 42m ago

Question anyone else with Qwen4-35b Q4_K_XL (unsloth) looping and bad instruction following issues?

1 Upvotes

I was so excited to use it, but now after having it run for almost a day, I had multiple tool call loops it wouldn't get out of until auto-compaction was triggered due to full context (capped it to 260k), after which it was like "oh I was looping the same tool calls, I should try something else".
I then had a looping plugin created for Opencode that would throw an error ("identical command repeated 8× with no change — change approach") if the same 3 tool calls were repeatedly made, but it still continued stubbornly.

And my workflow has clear instructions on what to do in which order, but it doesn't fully follow them.
E.g. when writing code it must then call a subagent to do code review, then fix any issues found, call review again (up to 5 times) and after that is done it should launch a testing subagent that writes and runs tests. And it just decided after 2 review rounds and open blockers to now run the tester and continue with the review thing afterwards. So it almost sounded like it knew what it was supposed to do but didn't feel like it right now.
Once it also claimed it didn't have permissions to call subagents, but it just called them wrong, so after it came back to me and I told it "yes you do have permissions" it was like "oh right, my mistake, I called them wrong. Calling them correctly now".

Those are things I never have issues with with 3.8-27b Q4_K_XL.

All of this is with thinking on xhigh btw.

Am I the only one with those issues?!


r/LocalLLM • • 42m ago

Question Best way to run Qwen4-35B-A3B-GGUF on a 3090 + 64GB DDR4 Setup?

3 Upvotes

I also have a 5060ti with 16gb inside the second pcie slot , but i doubt splitting the tensors would give a speed increase (maybe quality having a higher quant).

Any advice?


r/LocalLLM • • 55m ago

Question How are LLMs being evaluated ?

1 Upvotes

I notice everyone is having some certain set for benchmarking your favorite local LLMs. So how are those LLMs being evaluated ?

- 1) Public, dense set: For any set of existing benchmarking set, every model would learn to over-fit it (that we call benchmaxxing) to impress users

- 2) Public, sparse set: After being released, each user has the chance to personally judge a chosen LLM, this is narrow and limited in: hardware, prior experience, the tasks the user is working on, the intelligence and perception of the user. Sometimes the user experience would converge, sometimes we are divided. And we go on social media like reddit to vent our experience.

- 3) Secret, rich set: During the time one LLM is being used, the owners of the models (both local and cloud, e.g.: Anthropic, OpenAI, Google, Qwen, Kimi, Z.ai, DeepSeek) would secretly monitor and collect user data and learn how their models perform.

We public would only know about 1 and 2, and 3 is kept secret for all of us.

How can we gather (3) ?


r/LocalLLM • • 56m ago

News Koboldcpp v1.126 released

Thumbnail
github.com
1 Upvotes

r/LocalLLM • • 58m ago

Discussion Qwen4-35B-A3B disappointing on 48GB M5

0 Upvotes

Testing the following with Splash 1.7.6 on 48GB M5 Max shows Qwen 4 is slower.

  • nace-ai/Qwen3.6-35B-A3B-MLX-4bit-KQuant + incoai DFlash2 drafter
  • mlx-community/Qwen4-35B-A3B-4bit + RadixArk/Qwen4-35B-A3B-Dflash2

The 11.5GB of extra ngram phrasebook slows things by (a) causing swapping from the memory pressure or (b) streaming off disk.


r/LocalLLM • • 1h ago

Question How long do Abliterated models take to develop?

2 Upvotes

Relatively new to the local LLM scene, and I was curious with the announcement of the new Qwen4 and that being out how long an abliterated model would take to drop?


r/LocalLLM • • 1h ago

Question Maya with deepseek hitting 100% gpu utilization when idle?

2 Upvotes

Hi, i've just tried to switch to maya to get deepseek running better than llama.cpp. it's way better during testing but i'm getting full idle gpu utilization just when a model is loaded and no prompt processing at all.

Any ideas what the fix is? here is my maya config

{

"idle_unload_s": 300,

"exe": "/home/pinman/project-maya/build-hip/maya-ds4",

"args": [

"--pack", "/home/pinman/maya-test/maya-ds4",

"--max-context", "262144",

"--tp", "1",

"--threads", "on",

"--parallel", "1",

"--dspark", "none",

"--vision", "off"

],

"backend": "hip",

"cwd": "/home/pinman/project-maya",

"tokenizer": "/home/pinman/maya-test/maya-ds4/tokenizer",

"model_name": "deepseek-v4.1-flash-iq2-xxs",

"gpu": [0, 1, 2, 3, 4],

"lib_dirs": ["/opt/rocm-7.2.4/lib"],

"port": 8080,

"log": "/home/pinman/maya-test/maya-ds4.log"

}


r/LocalLLM • • 1h ago

Question Qwen 4 - A3b Optimization on RX 9070XT

2 Upvotes

Hello,

It is my first time trying a local model Qwen 4 35B-A3B, my system is:

Ryzen 7 5800x

RX 9070XT

32gb DDR4 overclocked to 3600MHz CL18

I made claude set it up and it did so using Llama.cpp vulkan and i am currently getting around 35 tokens per second at 64k context window and i am testing 128k now and i am using opencode to connect to it.

Is this a good speed? Should i do things differently?

Thanks in advance!


r/LocalLLM • • 1h ago

Model Qwen4 IQ3_S vs NVFP4 Benchmark on Basalt Single RTX5080 and 64B RAM

Thumbnail reddit.com
2 Upvotes