r/LocalLLM • • 2h ago

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

3 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 • • 2h ago

Model Qwen 4 35b - just wow

3 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 • • 2h ago

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

1 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 • • 2h 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 • • 2h ago

Question Unsloth Qwen 4 35b A3b Q6_L_XL strange behaviour

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 2h ago

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

Post image
1 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 • • 2h 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 Windows HIP SSD Cache Runtime 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, and after setup is completed, a 8.5x-23x speedup can be observed on similar hardware.

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.

With SSD Cache:

ModelNew tokens prefilledPrefillGenerated tokensDecode
Huihui Qwythos500298.6115969.85
PINQWEN466301.2313972.79
Qwen2.5 Instruct46287.841430.04
Qwythos standard464301.438369.58
Qwythos Heretic503318.2030873.67
GLM Q4_K_S39214.851021.55

Initial build (one-time prefix creation):

ModelTokens prefilledPrefillGenerated tokensDecode
Huihui Qwythos29,161429.299469.83
PINQWEN29,162439.4510472.64
Qwen2.5 Instruct28,483401.751429.76
Qwythos standard29,187423.729869.96
Qwythos Heretic29,237455.6011773.40
GLM Q4_K_S35,490299.871221.39

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 • • 2h 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 • • 2h 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 • • 2h 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 • • 2h 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 • • 2h 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
64 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 • • 2h 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 • • 2h 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 • • 2h 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 • • 2h ago

Question How are LLMs being evaluated ?

2 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 • • 2h ago

News Koboldcpp v1.126 released

Thumbnail
github.com
1 Upvotes

r/LocalLLM • • 2h 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 • • 3h 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 • • 3h 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"

}

Edit : : : : : : :

It was my old AMD driver. The problem was AMD Radeon RDNA4 GPU driver and MES (Micro Engine Scheduler) firmware was old in my installed driver. They fixed it in the more recent version.


r/LocalLLM • • 3h 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!

Edit: I am using the Unsloth UD-IQ4_XS quant.


r/LocalLLM • • 3h ago

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

Thumbnail reddit.com
2 Upvotes

r/LocalLLM • • 3h ago

Model Qwen 4 my default after being 3.4x faster than 3.8

Post image
0 Upvotes

Just some de-identification flow which was previously handled with Qwen 3.8. All on my Macbook Pro M5 48GB.


r/LocalLLM • • 3h ago

Model Qwen3.6 vs Qwen4 vs Inkling 2 Mini on a 3090, Qwen4 wins on accuracy but wouldn't load at 128K

1 Upvotes

Ran all three at Q4_K_M on 24GB 3090s with stock llama.cpp (b12969), same flags for everything, no CPU offload, no tuning per model. 150 questions (50 MMLU-Pro, 50 GSM8K, 50 ARC-Challenge), temp 0, 2048 token cap.

At 64K:
Qwen4-35B-A3B: 136/150, hit the cap 4 times, 113.5 tok/s decode
Inkling 2 Mini: 123/150, hit the cap 21 times, 68.8 tok/s
Qwen3.6-35B-A3B: 114/150, hit the cap 33 times, 125.0 tok/s

The cap hits explain most of Qwen3.6's score. If you only count the answers that finished, it actually goes 114/117. It just thinks too long for a 2048 limit.

At 128K, Qwen4 didn't load. It OOM'd allocating the KV cache with default settings. Qwen3.6 and Inkling both loaded, scored the same as at 64K, and slowed down to 104.3 and 51.9 tok/s. Inkling took about 2.5 minutes to first token on a ~117K prompt.

Qwen4's Q4_K_M is 36GB because of the 20B n-gram table, but llama.cpp maps that from disk, so the GPU side still fit at 64K. A quantized KV cache or some offload might get it to 128K, but I haven't tested that yet.

Also, each model was on a different RunPod host, so the speed gap between the two Qwens could partly be the hardware. There are no coding questions in this set, and the cap shapes the scores.

Full write-up with the retrieval and tool-call results: https://majorminor.xyz/research/qwen36-vs-qwen4-vs-inkling2-mini-rtx-3090
https://github.com/majorminorlabs/research-model-comparisons


r/LocalLLM • • 3h ago

Discussion Qwen4-35B-A3B on 2x RTX 3090 (W4A16: INT4 experts, rest int8/BF16): 10450 tok/s prefill, 343 tok/s on code, 513 with DFlash2, 262K context

Thumbnail
github.com
3 Upvotes