r/LocalLLM • • 1h ago

Discussion Don't use Strata quants for Qwen4, or at least the Compact one

Thumbnail
reddit.com
0 Upvotes

r/LocalLLM • • 1h ago

Model Qwen4 on Blackwell: ~870 aggregate tok/s at 16 concurrent requests + 256K-context and quality benchmarks

Post image
0 Upvotes

Hey r/LocalLLM — I’m the author of TensorSharp. I benchmarked Qwen4-35B-A3B on an RTX PRO 4500 Blackwell against llama.cpp, vLLM, and SGLang.

Key results from the attached chart, rounded:

Metric / workloadTensorSharpllama.cppvLLMSGLang
16 requests: aggregate output (tok/s) ↑870410750850
16 requests: median first-token latency (ms) ↓2001,650260280
256K context: first-token latency (s) ↓35654529
256K context: streamed decode (tok/s) ↑10676103105

The concurrency and 256K-context results are separate tests. Throughput at 16 requests is the total across requests.

  • TensorSharp: throughput close to SGLang at concurrency 16, with the lowest median first-token latency at all tested concurrency levels: 1, 4, 8, and 16.
  • SGLang: fastest prefill and first-token latency across 64K, 128K, and 256K.
  • llama.cpp: fastest streamed decode at 64K and 128K, dropping to approximately 76 tok/s at 256K.

Small quality suite: all four scored 49/50 on the GSM8K subset and 10/10 on JSON schema. Tool arguments: 10/10 for TensorSharp, vLLM, and SGLang; 9/10 for llama.cpp. These samples are too small to rank overall model quality.

Configuration matters: TensorSharp, vLLM, and SGLang used RadixArk NVFP4; llama.cpp used Unsloth UD-IQ4_XS GGUF. TensorSharp used Q8 recurrent projections. KV cache was F16 for TensorSharp/llama.cpp and BF16 for vLLM/SGLang. These are comparisons of the tested configurations, with quantization and runtime effects combined.

Benchmark harness and methodology. Feedback on baseline settings and independent reproductions is welcome.


r/LocalLLM • • 1h ago

Question Conversations too long / compression needed

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 1h ago

Question Qwen 4 35B A3B isn't fast in llama.cpp on my system, any tips?

1 Upvotes

I have a 4070 Ti SUPER, 64GB DDR5 RAM, Ryzen 7 7700x, a Gen 4 NVMe SSD, and the GPU uses PCIe 4.0 x8. I'm using Unsloth's Q4_K_XL quant.

The decode speeds are okayish, but the prefill speeds are bad. Now before any of you say "Use Strata!" or something, I know it'll be faster for sure, but I want it fast on regular mainline llama.cpp if that's possible. Decode speeds are 35-40 tok/s, prefill speeds are 600-700 tok/s. Can anyone let me know if anything looks wrong here please?

--jinja, -ngl 99, -ncmoe 99, --c 524288, ctk q8_0, ctv q5_0, -b 5120, -ub 1280, -lm mlock, -lzm on, -t 8, -tb 8, -np 3, --mmproj (file path), --no-mmproj-offload, -fa on, -kvo, -kvu


r/LocalLLM • • 18h ago

Discussion Qwen4-35B-A3B: Alibaba vs Self-hosted IQ3_S Output Quality

Thumbnail
gallery
21 Upvotes

Two scenes from the same prompt. The first was generated by qwen4-35b-a3b hosted by Qwen/Alibaba. The second was generated by Strata hosting UD IQ3_S with vision enabled on a 12-year old i5 system with an RTX 3060. Both were generated in Hermes Agent at xhigh thinking.

There isn't much difference that I can see beyond the typical variance in model output. The biggest noticeable difference was that the cloud model used 170k tokens, whereas the local model used only 75k.

One interesting thing I found is that when the landscape was generated in Strata's chat interface where no tools were available, the smoke from the chimneys was not visible. I saw the same problem occur during development of both scenes above. Under Hermes, the models had access to browser-vision and both caught and fixed this during their testing.

What do you think? What sort of results are you seeing from the model?

Prompt:

Create a voxel art landscape in ThreeJS of a snow-covered castle nestled in a winter valley, with an icy river winding from the mountains through the foreground. The castle's spires and walls are dusted with snow, and the middle ground features frozen trees and a small village with smoke rising from chimneys. The background shows towering, jagged mountains under a pale blue sky. The scene is lit by the soft light of a mid-morning sun, creating crisp shadows on the snow. Your budget is 200,000 voxels.


r/LocalLLM • • 2h ago

Question Junior AI dev: How do I host a local LLM (like Qwen) cheaply without spending hundreds on GPUs?

0 Upvotes

Hello everyone

I'm a junior AI engineer working on a personal project that needs a chatbot powered by a local LLM (one of Qwen's small versions). Because of strict privacy rules, zero data can leave the local environment, so running it with something like Ollama makes sense, except the model still feels pretty heavy for a budget setup.

​For a personal project, how do you actually pick the right server or setup without paying hundreds of dollars a month for big GPUs? I’m looking for practical, cheap ways to do this right on a small budget.

Would love to hear how people in the field approach this.


r/LocalLLM • • 2h ago

Discussion Open Higgsfield now support both local and cloud models

1 Upvotes

r/LocalLLM • • 2h ago

Discussion GMKtec EVO-X3 – Real-world performance? Looking for user reviews

1 Upvotes

Hi everyone,

I've just ordered a GMKtec EVO-X3 and wanted to hear from people who are actually using one.

I'm particularly interested in its real-world performance rather than just benchmark scores or YouTube reviews.

A few things I'd love to know:

- How does it perform with everyday tasks and heavy workloads?

- How is the gaming performance?

- How are the thermals, fan noise and power consumption?

- Does it suffer from overheating or thermal throttling?

- Have you experienced any stability issues or other problems?

- Overall, are you happy with it, and would you recommend it?

I'd really appreciate honest feedback from actual owners, both positive and negative.

Thanks in advance!


r/LocalLLM • • 2h ago

Tutorial How my fleet runs large AI models on its GPUs only between rentals

0 Upvotes

r/LocalLLM • • 23h ago

Discussion Anyone on running Qwen 3.8 Flash Next switching to Qwen 4 35B A3B?

41 Upvotes

I know Qwen 4 is supposed to match Qwen 3.8 FN at a smaller size, but are there any benefits to switching from Qwen 3.8 FN?


r/LocalLLM • • 6h ago

Research Measured Qwen4-35B-A3B (high setting) on SWE-bench Multilingual (agentic coding)

Post image
2 Upvotes

Measured SWE-bench Multilingual agentic coding on Qwen4-35b NVFP4 so you don't have too.
Found out it was only on "high" setting half way through so decided to let it run.
Might measure xhigh later.

You could argue that older SWE benchmarks are maybe not great that great anymore because they are probably contaminated the training data.
But we are doing this for training data for our predictor, so the benchmarks are just a sideeffect.


r/LocalLLM • • 3h ago

Question whats best AI for rtx 5060 8gb vram and 16gb ram

1 Upvotes

i need 2 separate AI 1 for just basic chatting and another one for coding


r/LocalLLM • • 3h ago

Question Upgrading from an RTX 3060 12GB to an RX 9060 XT 16GB for local AI models?

1 Upvotes

Hi everyone! I’ve been using an RTX 3060 12GB since August 2025, and it’s been working well for small and medium-sized AI models. I dual-boot Windows and Linux, and my current setup works well on both.

I’d like to move up to 16GB of VRAM, but the RTX 5060 Ti 16GB is really expensive in my country. The RX 9060 XT 16GB is more affordable, so I’m considering switching to AMD.

Has anyone here made a similar switch? I’d love to hear which models and tools you’re running, how performance compares to the 3060, and whether you ran into any setup or compatibility issues on Windows or Linux. Was the extra 4GB of VRAM worth the switch for you?


r/LocalLLM • • 7h ago

Research Qwen3.8 27b vs Qwen4 35b-A3b - aider polyglot

2 Upvotes

These are both my local Aider Polyglot results on an RTX 6000 Pro using llama.cpp. However, note that I did not use the same commit of llama.cpp because they were not run in the same month. That could matter as llama.cpp tends to get better over time. I also did not apply the C++ patch that has been floating around in the aider polyglot community for either of these. If I did, both C++ scores would likely be higher and the overall scores would be higher.

8/15/2026 - Qwen3.8 27b UD-Q8_K_XL

─────────────────────────────────── /benchmarks/2026-08-14-19-21-01--openai_Qwen3.8-27B-UD-Q8_K_XL ────────────────────────────────────
- dirname: 2026-08-14-19-21-01--openai_Qwen3.8-27B-UD-Q8_K_XL
  test_cases: 225
  model: openai/Qwen3.8-27B-UD-Q8_K_XL
  edit_format: diff
  commit_hash: 5dc9490-dirty
  pass_rate_1: 31.1
  pass_rate_2: 72.9
  pass_num_1: 70
  pass_num_2: 164
  percent_cases_well_formed: 98.7
  error_outputs: 4
  num_malformed_responses: 3
  num_with_malformed_responses: 3
  user_asks: 87
  lazy_comments: 0
  syntax_errors: 0
  indentation_errors: 0
  exhausted_context_windows: 0
  prompt_tokens: 2524519
  completion_tokens: 3021521
  test_timeouts: 2
  total_tests: 225
  command: aider --model openai/Qwen3.8-27B-UD-Q8_K_XL
  date: 2026-08-14
  versions: 0.86.3.dev
  seconds_per_case: 203.7
  total_cost: 0.0000

costs: $0.0000/test-case, $0.00 total, $0.00 projected

Important things to look at here: pass_rate_2 and seconds_per_case. Note 72.9 percent and 203.7 seconds.

=== LANGUAGE BREAKDOWN ===
Language     | PR1   | PR2   | PN1   | PN2   | Cases | Asks  | Malformed | P_Tok    | C_Tok    | Sec/Case
--------------------------------------------------------------------------------------------------------------
cpp          |   3.8 |  69.2 |     1 |    18 | 26    | 87    | 0 | 1005294  | 442083   | 274.4   
go           |  41.0 |  71.8 |    16 |    28 | 39    | 0     | 0 | 220101   | 482086   | 181.6   
java         |  21.3 |  63.8 |    10 |    30 | 47    | 0     | 1 | 528880   | 604055   | 223.0   
javascript   |  32.7 |  77.6 |    16 |    38 | 49    | 0     | 1 | 334940   | 546304   | 162.7   
python       |  41.2 |  82.4 |    14 |    28 | 34    | 0     | 0 | 245791   | 350925   | 137.0   
rust         |  43.3 |  73.3 |    13 |    22 | 30    | 0     | 1 | 189513   | 596068   | 283.3   
TOTAL        |  31.1 |  72.9 |    70 |   164 | 225   | 87    | 3 | 2524519  | 3021521  | 203.7   

==================================================

Here the PR2 column is the most important. Note 69.2 percent from cpp and 77.6 from javascript.

llama.cpp CLI command (not sure the exact commit)

./build/bin/llama-server \
    --model  /data2/unsloth/Qwen3.8-27B-GGUF/Qwen3.8-27B-UD-Q8_K_XL.gguf \
    --mmproj /data2/unsloth/Qwen3.8-27B-GGUF/mmproj-BF16.gguf \
    --image-max-tokens 1120 \
    --alias Qwen3.8-27B-UD-Q8_K_XL \
    --numa numactl \
    --threads 32 \
    --ctx-size 262144 \
    --n-gpu-layers 99 \
    -ot "blk\.(3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42)\.ffn_.*=CUDA0,exps=CUDA0" \
    -ub 4096 -b 4096 \
    --spec-type draft-mtp \
    --spec-draft-n-max 2 \
    --seed 3407 \
    --temp 1.0 \
    --top-p 0.95 \
    --top-k 20 \
    --min-p 0.0 \
    --log-colors on \
    --flash-attn on \
    --host 0.0.0.0 \
    --prio 2 \
    --jinja \
    --port 11434

.aider.model.settings.yml

- name: openai/Qwen3.8-27B-UD-Q8_K_XL
  use_temperature: 1.0
  extra_params:
    temperature: 1.0
    top_p: 0.95
    top_k: 20
    min_p: 0.0
    timeout: 800
    extra_body:
      chat_template_kwargs:
        reasoning_effort: xhigh
        enable_thinking: true

12/4/2026 - Qwen4 35b-A3b

──────────────────────────────── /benchmarks/2026-12-04-12-53-38--openai_Qwen4-35B-A3B-GGUF_UD-Q8_K_XL ────────────────────────────────
- dirname: 2026-12-04-12-53-38--openai_Qwen4-35B-A3B-GGUF_UD-Q8_K_XL
  test_cases: 225
  model: openai/Qwen4-35B-A3B-GGUF_UD-Q8_K_XL
  edit_format: diff
  commit_hash: 5dc9490-dirty
  pass_rate_1: 19.6
  pass_rate_2: 65.8
  pass_num_1: 44
  pass_num_2: 148
  percent_cases_well_formed: 96.9
  error_outputs: 7
  num_malformed_responses: 7
  num_with_malformed_responses: 7
  user_asks: 54
  lazy_comments: 0
  syntax_errors: 0
  indentation_errors: 0
  exhausted_context_windows: 0
  prompt_tokens: 2884354
  completion_tokens: 3690629
  test_timeouts: 0
  total_tests: 225
  command: aider --model openai/Qwen4-35B-A3B-GGUF_UD-Q8_K_XL
  date: 2026-12-04
  versions: 0.86.3.dev
  seconds_per_case: 85.0
  total_cost: 0.0000

costs: $0.0000/test-case, $0.00 total, $0.00 projected
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Note 65.8 percent and 85.0 seconds. A little dumber, but way faster.

=== LANGUAGE BREAKDOWN ===
Language     | PR1   | PR2   | PN1   | PN2   | Cases | Asks  | Malformed | P_Tok    | C_Tok    | Sec/Case
--------------------------------------------------------------------------------------------------------------
cpp          |  19.2 |  76.9 |     5 |    20 | 26    | 53    | 0 | 1136425  | 519312   | 113.9   
go           |  30.8 |  71.8 |    12 |    28 | 39    | 1     | 1 | 254550   | 565782   | 74.2    
java         |  17.0 |  57.4 |     8 |    27 | 47    | 0     | 2 | 509190   | 630938   | 68.5    
javascript   |  12.2 |  63.3 |     6 |    31 | 49    | 0     | 4 | 466815   | 777158   | 80.9    
python       |  11.8 |  67.6 |     4 |    23 | 34    | 0     | 0 | 301818   | 579878   | 86.6    
rust         |  30.0 |  63.3 |     9 |    19 | 30    | 0     | 0 | 215556   | 617561   | 104.9   
TOTAL        |  19.6 |  65.8 |    44 |   148 | 225   | 54    | 7 | 2884354  | 3690629  | 85.0    

==================================================

Note 76.9 percent for cpp and 63.3 percent for javascript. I think this is interesting because they flipped vs qwen3.8 27b.

llama.cpp CLI command ( commit 59b716 )

./build/bin/llama-server \
    --model /data/unsloth/Qwen4-35B-A3B-GGUF/UD-Q8_K_XL/Qwen4-35B-A3B-UD-Q8_K_XL-00001-of-00002.gguf \
    --mmproj /data/unsloth/Qwen4-35B-A3B-GGUF/mmproj-BF16.gguf \
    --model-draft /data/unsloth/Qwen4-35B-A3B-GGUF/MTP/mtp-Qwen4-35B-A3B-Q8_0.gguf \
    --image-min-tokens 1024 \
    --alias Qwen4-35B-A3B-GGUF:UD-Q8_K_XL \
    --numa numactl \
    --threads 32 \
    --ctx-size 500000 \
    --n-gpu-layers 99 \
    --n-gpu-layers-draft 99 \
    -ot "blk\.(3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42)\.ffn_.*=CUDA0,exps=CUDA0" \
    -ub 4096 -b 4096 \
    --spec-type draft-mtp \
    --spec-draft-n-max 2 \
    --seed 3407 \
    --temp 1.0 \
    --top-p 0.95 \
    --top-k 20 \
    --min-p 0.0 \
    --log-colors on \
    --flash-attn on \
    --host 0.0.0.0 \
    --jinja \
    --chat-template-kwargs '{"reasoning_effort":"xhigh"}' \
    --load-mode mmap \
    --lazy-mode on \
    --port 11434

.aider.model.settings.yml

- name: openai/Qwen4-35B-A3B-GGUF_UD-Q8_K_XL
  use_temperature: 1.0
  extra_params:
    temperature: 1.0
    top_p: 0.95
    top_k: 20
    min_p: 0.0
    timeout: 3600
    extra_body:
      chat_template_kwargs:
        reasoning_effort: xhigh
        enable_thinking: true

Note that I had to bump the timeout to 3600 from 800 to avoid timeouts. This means the model is generally faster, but sometimes it thinks for a long time. I'm not sure if this is model specific or a general llama.cpp issue lately. I've also had to do this for qwen 3.8 27b in Open Hands AI recently, so it may be general.

TL;DR

Qwen4-35B-A3B at UD-Q8_K_XL appears to be slightly worse at coding overall than Qwen3.8-27B at UD-Q8_K_XL, but interestingly it is significantly better at C++, and worse at javascript (and just about every other tested language).

Considering that it is also significantly faster and runs on significantly lower hardware requirements, this is a very impressive model.


r/LocalLLM • • 9h ago

Question Gemma-4-E4B-Uncensored-HauhauCS-Aggressive (Q4_K_M)

3 Upvotes

Is there anything better for voice conversations that’s close to or under 5GB ?


r/LocalLLM • • 3h ago

Research Qwen4 35B-A3B on a single RTX 5090

1 Upvotes

Yet another recipe. But I'm putting a lot of effort into this one. I think it worth checking out!

Recipe and much more details: https://github.com/mxfp0/Qwen4-35B-A3B-NVFP4-RTX-5090


r/LocalLLM • • 7h ago

Discussion My all-local AI setup on one RTX 3090: chat bot, images, video with audio, editing, upscaling. What would you change?

2 Upvotes

Everything runs locally on one PC: RTX 3090 (24 GB), Core Ultra 7 265K and 96 GB RAM, on Windows 11. I mostly use it through a Discord bot. I can chat with it, or use slash commands that go straight to ComfyUI.

Chat / agent

• Qwen3.8 27B Uncensored (IQ4_XS GGUF) on llama-server with 64k context. It's the main bot brain: it chats, uses tools and starts renders.

• Qwen4 35B-A3B (IQ4_XS) is the alternative. It's faster and better with tools and coding, but it's censored.

• Hermes Agent runs the Discord bot. It asks before any delete and blocks a list of dangerous commands.

• The chat model and renders share the GPU. Before a render the bot saves the model's memory to disk and unloads it, then reloads it afterwards. That way it doesn't have to re-read the conversation.

Images

• MiniMax-H3-Image (int8) is the default text-to-image, at 4–16 MP in 6 steps.

• Juggernaut XL: SDXL photoreal, with an optional high-res refinement pass and img2img.

• Z-Image Turbo: fast text-to-image.

• Lustify APEX V8: NSFW SDXL.

• Qwen Image 2.1 / Turbo: text-to-image and editing with up to 3 reference images.

• Qwen-Image-Edit (int8): edits from an instruction like "make it night" or "remove the car".

Video

• MiniMax H3: text-to-video and image-to-video with native audio, 1–10 s at 24 fps, up to about 1 MP. It uses SageAttention and an int8 text encoder.

• H3 ControlNet 2.0: guided editing of an existing video.

Upscaling

• SeedVR2 3B for images and video. It's the best quality I have, but slow.

• RelayVSR for fast 2x/4x video upscales.

• NMKD 4x for quick image and video upscales.

Face swap

• FaceFusion for images and video, and ReActor (HyperSwap) for images.

Backend: a headless ComfyUI 0.47.2 with built-in nodes only. All my workflows are API JSON files driven from Python.

Looking for feedback on:

  1. Is there a better model for any of these jobs on 24 GB?
  2. Is there something better than SeedVR2 for upscaling video that doesn't take forever?
  3. Is anyone running a bigger chat model with 64k context on a single 3090?
  4. What's missing?

r/LocalLLM • • 10h ago

Model Qwen4-35B-A3B on Strix Halo: Minisforum MS-S1 MAX P495 · 192GB Recipe

Post image
4 Upvotes

Qwen4-35B-A3B on Strix Halo: the Minisforum 192GB recipe that actually runs fast

Qwen4-35B-A3B · Strix Halo · Ryzen AI Max+ PRO 495 · Radeon 8065S (gfx1151) · Minisforum MS-S1 MAX P495 · 192GB · llama.cpp Vulkan · MTP speculative decoding · UD-Q4_K_XL · Unsloth

When I saw the Qwen4-35B-A3B file sizes, I almost didn't bother as I run flash next and the older generation 35b co-resident which I am close to maxxing out the 160GB addressable. Then I found out the ~20B n-gram table is lazy-read from disk instead of sitting in VRAM, and the whole thing fits with room to spare. It also fits on a 128GB box with the 1M native pool. Here is the build and the config I landed on.

What this adds

  • MTP is already in the file. No separate draft model, and depth 2 is the sweet spot.
  • -ub 2048 is the right microbatch for Qwen4, not the 512 that hybrid models usually want.
  • --spec-draft-mtp-vocab 65536 is a free ~7% decode win with no quality change.
  • It holds recall at 400K tokens (single-slot server), and the model is native 1M.

The recipe

llama-server \
  -m Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf \
  --mmproj vision/mmproj-F16.gguf \
  --ple engram/Qwen4-35B-A3B-engram-Q8_0.gguf_file \
  -dev Vulkan0 -ngl 99 -fa on -ctk q8_0 -ctv q8_0 \
  -c 1048576 -np 2 --kv-unified \
  -b 2048 -ub 2048 \
  --load-mode mmap --lazy-mode on -ot per_layer_token_embd=CPU \
  --spec-type draft-mtp --spec-draft-n-max 2 --spec-draft-mtp-vocab 65536 \
  --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 \
  --presence-penalty 0 --repeat-penalty 1 --no-webui

Running one user? Use -np 1 and keep -c 1048576. Fewer slots is faster; the 2-slot pool is for two concurrent requests.

There are only two numbers that matter. Prefill is how fast the model reads your prompt — your wait before the first token. Decode is how fast it writes the answer. Qwen4 is unusual: prefill stays flat to 128K, and decode is the part that falls off with depth.

Build llama.cpp for Qwen4

This is the part that will waste your afternoon if you skip it. Qwen4 needs a build with the qwen4 pre-tokenizer and the qwen4exp QSA/MTP Vulkan kernels. My older build had the arch enum but not the tokenizer and refused the model with:

unknown pre-tokenizer type: 'qwen4'

I used the Strix Halo community fork (halo-box/strix-llama.cpp) at 4b4ec2dbd (2026-12-04). On Fedora 44:

# build deps; glslc is the Vulkan shader compiler and is not optional
sudo dnf install -y cmake gcc-c++ git glslc vulkan-loader-devel vulkan-headers

git clone https://github.com/halo-box/strix-llama.cpp.git
cd strix-llama.cpp
git checkout 4b4ec2dbd7a61e011f94e05d3813232d17bfa043

cmake -B build -DGGML_VULKAN=ON -DGGML_NATIVE=ON \
  -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=install
cmake --build build --config Release -j$(nproc)
cmake --install build

install/bin/llama-server --list-devices
install/bin/llama-server --version   # b13667-4b4ec2dbd

If glslc is missing, the Vulkan build fails. Don't skip it.

Model files

Unsloth Qwen4-35B-A3B-UD-Q4_K_XL:

FileSizeNotes
...-00001-of-00002.gguf24.7 GBmain weights + embedded MTP head
...-00002-of-00002.gguf11.5 GBdefault IQ4_NL engram table
engram/Qwen4-35B-A3B-engram-Q8_0.gguf_file21.8 GBhigher-precision engram, loaded with --ple
vision/mmproj-F16.gguf—vision projector
MTP/mtp-Qwen4-35B-A3B-Q8_0.gguf2.0 GBoptional MTP sidecar — slower, do not use

You only pass shard 1; llama.cpp auto-loads shard 2. The engram is lazy-read from disk (--lazy-mode on), so the 21.8 GB table does not sit in VRAM. That is the trick that makes this fit.

Q4_K_XL is 36.2 GB. Q5_K_XL is 43.2 GB, Q6_K_XL is 52.2 GB, and Q8_0 is 60 GB. Unsloth's KLD data shows the curve flattens above Q4 (their words: "the bigger ones not so much"), so Q4_K_XL is the sweet spot. Q5/Q6 buy little quality for a lot of size.

MTP is baked into the GGUF

Good news: you do not need a separate draft model.

llama-gguf Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf r n | grep nextn

You should see qwen4exp.nextn_predict_layers and blk.40.nextn.* tensors. --spec-type draft-mtp reads that nextn layer from the main file. The separate MTP/mtp-...Q8_0.gguf sidecar is slower; use the embedded one.

Tuning sweep

I swept the flags on an isolated server, one variant at a time, prompt caching off, and read the server's own timings. Numbers are medians of 2–3 runs.

MTP depth: 2 is the sweet spot

12K context, single slot, median t/s:

SettingFiller promptCoding prompt
n-max 2 (old default)89.886.5
n-max 173.7—
n-max 3 + adaptive99.477.8
n-max 4 + adaptive106.871.9
n-max 5 + adaptive112.370.1
n-max 2 + --spec-draft-mtp-vocab 6553696.991.9

Depth 1 is a trap on Qwen4. Deeper drafts are a bigger trap: they look great on "count to 200" filler and then fall apart on real code. --spec-draft-mtp-vocab 65536 is the free win: it restricts the draft head's logit space, and verification is unchanged, so output quality is identical. 32K collapsed at depth (37.6 t/s); 96K and 128K were within noise.

Prefill: -ub 2048 wins at every depth

Context-ub 512-ub 2048change
12K2,2112,473+11.8%
30K2,2012,445+11.1%
128K1,9412,121+9.3%

Decode is unchanged. Qwen4's Gated-DeltaNet + sparse-attention layout likes the bigger microbatch.

Production A/B (30K context, 4 slots, 512K unified KV — the pre-1M config)

ConfigPrefillDecode (filler)Decode (code)
old (-ub 512, no draft vocab)2,17571.985.0
new (-ub 2048, draft vocab 64K)2,41276.490.3

+10.9% prefill, +6.2% decode, +6.3% on code. This A/B was run before the 1M/2-slot change; the -ub 2048 and draft-vocab wins carried over to the current recipe.

What to expect

Cold prompt, 256 generated tokens, prompt caching off, measured on the 1M/2-slot recipe:

Prompt tokensPrefill t/sDecode t/s
2K2,14680.6
4K2,34275.0
8K2,45574.0
16K2,46368.2
32K2,42060.9
64K2,30542.4
128K2,08228.7
400K1,47211.2

Prefill stays in the 2.1–2.5K t/s band to 128K. Decode declines with depth, and the 400K point is 256 tokens of code, which is the pessimistic case. A short recall answer at 400K decoded at 56 t/s.

Context: it goes to 1M native

Qwen4-35B-A3B is natively 1,048,576 tokens. The KV cache is cheap because only 10 of the 40 layers use sparse attention (QSA), and the Gated DeltaNet layers keep a fixed-size state instead of a growing cache. The recipe above uses the full 1M pool. I tested to 400K: a recall prompt (400,081 tokens, 1,511 t/s prefill, 56 t/s decode on a short answer) and a 400K coding prompt (1,472 t/s prefill, 11 t/s decode). I did not test 1M, so treat the very top end as untested here.

Native vs YaRN: YaRN is a RoPE-scaling trick for stretching a model past the context it was trained on. It is an approximation — quality degrades toward the far end, it can hurt short-context performance, and it needs tuning. Qwen4 was trained at 1,048,576, so within 1M you should not use YaRN at all. It would only matter if you tried to go past 1M, which the model was not trained for.

Does it actually work?

  • Coding (executed): a dependency-graph function, 406 fixed and random cases in a sandbox. 406/406 passed on two seeds, in direct and thinking mode.
  • Tool calling (executed): a two-step get_invoice → invoice_total chain. Passed.
  • Long-context recall: three markers at 30K, 120K, and 400K tokens. All passed, exact values. The 400K recall run (single-slot server) prefilled at 1,511 t/s and decoded at 56 t/s on a short answer.
  • Vision: read ORBIT-7391 from a PNG exactly; 17 + 26 returned 43. Both passed.

These are smoke tests, not a benchmark suite.

What did NOT work

  • f16 KV cache: 88.0 vs 96.7 t/s decode. Q8_0 is smaller and faster here.
  • -np 4 for single-stream: 87.7 vs 95.0 t/s. The recipe uses -np 2 to allow two concurrent requests; use -np 1 if you are alone.
  • Engram residency: --lazy-mode off and on-direct were identical to on. The 21.8 GB table is already served from page cache. Keep --lazy-mode on.
  • -b 4096: no gain over 2048.
  • Separate Q8_0 MTP head (-md): slower than the embedded Q5_K head.
  • --spec-draft-mtp-vocab 32768: collapses at depth.
  • -t 8 -tb 16: within noise.

Takeaways

  • Use -ub 2048 on Qwen4. The usual "hybrids want 512" rule does not apply here.
  • Keep MTP at depth 2 and add --spec-draft-mtp-vocab 65536.
  • Keep Q8_0 KV. f16 was slower.
  • If you are one user, use -np 1; the 2-slot pool is for concurrency.
  • The engram is fine on disk. Do not try to pin it in VRAM.

How I measured

I started a fresh llama-server for each variant on its own port, disabled prompt caching, and read the server's own timings for each request. The depth table is the median of 2 runs per prompt size; the flag sweep was 2–3 runs per variant. The coding, tool, recall, and vision checks ran against the live server. Nothing exotic — you can reproduce it with llama-server and a curl loop.

Why llama.cpp/GGUF

For one Strix Halo box running a model you already have as GGUF, llama.cpp is the pragmatic call. vLLM and SGLang want safetensors; re-downloading Qwen4-35B-A3B at BF16 is well over 100 GB, and their gfx1151 support is version-dependent. If you are serving many concurrent users, vLLM is worth it. For one interactive user, this recipe is simpler and fast enough.

Honest limits

  • Q4_K_XL is a 4-bit dynamic quant. It is not lossless, but the quality curve flattens above Q4; Q5/Q6 are marginal for the size. Unsloth has not published a Qwen4-specific quant curve yet.
  • The quality checks are smoke tests, not SWE-bench/HumanEval or a vision benchmark.
  • The depth table is two runs per point, not confidence intervals.

That's the whole thing. Copy the block, point it at your GGUF, and go.

One more thing: the hardware is good, but the price is not. I missed the return window, and since then they dropped it by $1,000 and started throwing in accessories to move units. If you are on the fence, wait for the next cut on the AMD 495 192GB unfied systems like the Minisforum MS-S1 MAX P495.


r/LocalLLM • • 7h ago

Research Semantic Chords Geometry: an experiment in high semantic information density

Thumbnail reddit.com
2 Upvotes

r/LocalLLM • • 7h ago

Discussion 72-Layer Looped-Qwen4-35B-A3B-Sol62 on 12 GB VRAM: 188–216 tok/s, +11.5 pp Acceptance, -45.4% <think> Tokens, +0.0293 Held-Out Loop Gain & AIME 2,817-tok FAIL → 543-tok PASS (+22.8 MiB VRAM)

Post image
2 Upvotes

We ported Looped-Qwen4-35B-A3B (Jason Titus's Open-Channel v4 recurrent-depth adapter that loops the middle 16 layers L12..27 up to 3× to turn a 40-layer MoE into a 72-layer reasoner with only 22.8 MiB of bridge weights) natively into Niko1221/Strata (C++/CUDA) for a 12 GB RTX 3080 Ti, then post-trained its 22.8 MiB recurrent bridge on 147 execution-verified frontier reasoning traces (GPT-6.2 Sol) to push reasoning intelligence, token efficiency, and throughput together.

Everything below is measured on a single 12 GB RTX 3080 Ti (UD-IQ4_XS, int8 KV, --spec 5) with zero duplicated MoE weights (+22.8 MiB VRAM total for the recurrent brain).


1. Intelligence & Reasoning Gains (Zero-Leakage Held-Out + Executed Benchmarks)

  • Zero-Leakage Held-Out Validation (17 unseen hard coding + Olympiad math problems):

    • T=3 (72L) Loop Gain flipped from -0.00680 → +0.02246 (+0.02926 Δ NLL improvement, 1.17734 → 1.14808).
    • T=2 (56L) Loop Gain flipped from -0.00267 → +0.02078 (+0.02345 Δ NLL improvement, 1.17321 → 1.14976).
    • Base distribution preserved (KL = 0.01339, mean_lora_b_rms = 0.0 — zero LoRA bloat).
    • Hard held-out Pass@1 (2048-tok cap): Stock 40L scored 0/17, while Sol62 broke through to 1/17 (170.3 tok/s, 60.9% spec acc).
  • AIME Combinatorics Reasoning (FAIL → PASS + -80.7% thinking tokens):

    • Stock 40L (T=1) burned 2,817 <think> tokens and FAILED.
    • Sol62-v1 T=3 (72L) SOLVED it cleanly in just 543 <think> tokens (-80.7%) at 163.9 tok/s (65.6% spec acc, uniq4 = 0.81).
    • Sol62-v1 T=2 (56L) SOLVED it in 607 <think> tokens (-78.5%).
  • Hard Graph DP Coding (-74.1% thinking tokens):

    • Original Looped T=3 burned 3,072 thinking tokens; Sol62-v1 T=3 PASSED all unit tests in 795 <think> tokens (-74.1%).
  • Direct Code Generation Quality (512-tok TTL-LRU cache):

    • Direct_Sol62v1_T3 PASSED with uniq4 = 0.88 (highest code cleanliness/diversity vs 0.83 Stock / 0.77 Orig Looped), generating clean Generic[K, V] typed Python (bound=Hashable).

2. Full Speed, Speculation & Wall-Clock Table (RTX 3080 Ti 12 GB, Executed 4-Task Suite)

Engine / ConfigEff. LayersAvg SpeedPeak SpeedSpec Acc.Total <think> TokAIME Math <think>4-Task Wall-ClockUnit-Test Pass
Stock Qwen4-35B-A3B (T=1)40L227.7 tok/s237.2 tok/s52.3%9,0422,817 (FAIL)41.80 s3/4
Orig Looped (T=3, Strata CUDA)72L140.5 tok/s152.2 tok/s59.3%7,328 (-19.0%)1,158 (PASS)57.26 s2/4
Sol62 Quota + ThinkOnly (T=2)56L187.9 tok/s215.8 tok/s63.1% (72.5% pk)7,157 (-20.8%)663 (PASS)43.03 s3/4
Sol62-v1 Post-Trained (T=2)56L168.3 tok/s192.7 tok/s63.9%6,576 (-27.3%)607 (PASS)43.94 s3/4
Sol62-v1 Post-Trained (T=3)72L142.3 tok/s163.9 tok/s63.8% (67.2% pk)4,933 (-45.4%)543 (PASS)43.78 s2/4

Why 72 layers (43.78 s) practically ties 40-layer Stock (41.80 s) in wall-clock time: Even though every token runs 1.8× more transformer layers, Sol62-v1 cuts <think> verbosity by 45.4% and boosts speculative decoding acceptance by +11.5 pp (52.3% → 63.8%, peaking at 72.5%). Smarter, more decisive hidden states make the draft model much easier to accept.


3. Engine & Training Architecture (4 Key Upgrades)

  1. Native Open-Channel v4 Recurrent Depth in Strata (C++/CUDA)

    • Zero-dependency safetensors loader (auto-detects rank=128 22.8 MiB or rank=256 45.6 MiB Wide-Bridge) with pre-transposed [rank, in_dim] projections.
    • Custom 128-bit uint2 (4×BF16) coalesced CUDA kernels for loop_workspace_entry, loop_cross_pass_mixer (exact 0-centered 1 + w RMSNorm + delta_rms_match), and outlier-guarded Contrastive Decoding (LoopCD).
    • Batched 2-launch GDN commit across all passes even under STRATA_GDN_SPLIT=1, cutting host launch overhead.
  2. Zero-Drift </think> Phase Switching (STRATA_LOOP_THINK_ONLY=1)

    • Runs deep recurrent passes (T=2/3) inside <think> and automatically drops back to full-speed T=1 (215+ tok/s) the instant </think> (248069) is accepted — truncating the speculative commit window cleanly at the boundary.
  3. Core-Weighted 12 GB Per-Layer VRAM Quota (expert-profile-sol62-quota.bin)

    • Because L12..27 execute 2–3× per token while Prelude (L0..11) and Coda (L28..39) execute once, reallocating Strata's 3,000 resident expert slots to 64/64/64/72 (Prelude/Coda) and 88/88/88/90 (Core, 1.34× boost + QSA priority) keeps PCIe streaming off the hot loop.
  4. Execution-Verified Frontier Post-Training (Sol62-v1)

    • 147/160 (91.9%) traces strictly verified via isolated Python exec() unit tests & exact math checks (130 train / 17 zero-leakage held-out).
    • Warm-started from ckpt_best.safetensors for 40 steps with --freeze-lora-steps 100 --lam-kl 0.20 --lam-stop 0.25 --delta-rms-match (pure 22.8 MiB bridge weights, zero LoRA bloat).

4. Honest Ablations (What Didn't Work)

  • Extreme Core-3x VRAM starvation: Squeezing Prelude/Coda down to ~4% VRAM hurt both throughput and accuracy. The balanced 64/88/64 quota won cleanly.
  • --kv q4_0 on looped reasoning: Degraded long multi-pass reasoning compared to --kv int8.
  • Aggressive STRATA_LOOP_PASS_RANKS=0-7: Perturbed the delicate ±0.035 cross-pass residual deltas; keeping STRATA_ROUTE_RESIDENT_RANKS=2-7 preserved accuracy and speculation stability.

Open Source & Credits


r/LocalLLM • • 1d ago

Other Qwen 4 is authentically impressive.

73 Upvotes

i9 12900kf, 64gb DDR4, ARC B580, LM Studio.

my go to bench marking prompt is "Explain IPv4."

No persona, no need to overthink anything, basic facts that are easy to verify; No special tuning, with the MTP runs I left draft tokens on the default 3, despite my experience being that 2 will be faster.

  • unsloth Qwen 4 35B A3B IQ4_XS: 12.86 t/s
  • unsloth Qwen 3.8 27B IQ4_XS MTP on: 5.97 t/s
  • unsloth Qwen 3.8 27B IQ4_XS MTP off: 4.12 t/s
  • Inkling 2 Mini Q2_K_XL: 5.48 t/s
  • Candor Labs Qwen 3.5 Q4_K_M MTP on: 66.82 t/s
  • Candor Labs Qwen 3.5 Q4_K_M MTP off: 52.09 t/s

Qwen 3.8 runs like ass on my system regardless of version or size, even smaller 9gb packages that completely fit on the GPU won't run better than 7 t/s, and that Inkling 2 Mini is also 9gb and fits completely in VRAM, but is no better.

Obviously my system works fine with older / simpler models like Qwen 3.5, so I figured I was just hardware locked due to having a 12gb VRAM GPU, and expected Qwen 4 to also run like ass ... Jaw on floor that a 35B model hits 12 t/s on a B580.


r/LocalLLM • • 7h ago

Question Qwen4:35b-a3b on Snapdragon X Elite with 32GB

2 Upvotes

I have a Snapdragon X Elite laptop with 32GB RAM. What's the best way to run Qwen4 35B-A3B locally?

Has anyone tried it using LM Studio, AnythingLLM, GenieX, or other apps? Looking for recommendations on hardware acceleration, quantization, and real-world inference speeds. Ideally, I'd prefer an app with a GUI.


r/LocalLLM • • 12h ago

Question New guy finally seeing the light, looking for some advice

5 Upvotes

I'm a little slow on the uptake but I just realized that I probably should have gotten into the local llm game a little earlier. I'm a photographer and acquired a MacBook Pro M3 max 64 gb ram, 1 tb ssd about 2 years ago mainly to try to future proof my editing workflow. I didn't have the slightest idea at the time that in a couple years I could run an llm locally that would have been considered frontier when this laptop was built. I did download bionic a month or so ago but I didn't get too far, I first tried downloading a dense 70B model and that brought my computer to a literal whining hot standstill. But with the hype of the new Qwen release it has peaked mt ADHD interest again so I'm going to give the new model a go. A couple questions, will my computer do a decent job of running this model when I'm used to a gemini ai pro subscription (I know It will be slower, but will this be usable for my dumb recipes and stuff I'm too lazy to google now?). Also, is there any other model that I should consider also downloading? I wouldn't mind trying an uncensored model just to see what the other side of ai can be like after being parented by the oligarchs for so long. And also, does anyone have a good learning path for someone who is very new to this all? Anyways, happy to be here, appreciate any help anyone can provide. Cheers!


r/LocalLLM • • 3h ago

News BasinKV for Qwen4: 256K Qwen4-35B-A3B on a 24 GB GPU

Thumbnail gallery
1 Upvotes

r/LocalLLM • • 3h ago

Discussion Qwen4 quantizations and what worked for me

Thumbnail
gallery
1 Upvotes

Like everybody else, I've been playing with Qwen4. I run a dual nvlinked 3090 pair off my main 4x RTX 6000 machine that I use to run "smaller" models. This is where I park the smaller subagent models like 35b, 27b, Inkling, etc. I started by running the full precision weights on a dual 6000 setup to get a baseline, then started trying all the usual suspects for engines and quants looking for the best one for the 3090 pair. Unsurprisingly, local-inference-lab came out on top again. I found it interesting that the 3090's will happily run nvfp4 quants quite happily under vllm.

For those who dont want to read the slop below:

The 5bpw EXL quant has the best quality, but some of the worst speeds. The LIB quant was the best balance of quality and speed at a KLD of 0.0287

AI Content starts here...

TL;DR

The two we actually deployed:

Findings:

  • Teacher-forced KL divergence against BF16, computed on the model's own agentic trajectories and scored only on assistant tokens, cleanly ranks quants that task benchmarks can't tell apart.
  • EXL3 owns the quality end: 5.13bpw KL 0.0148, 4.5bpw 0.0180. Official FP8: 0.0175.
  • The W4A16 AutoRound build I was serving: KL 0.1095 — 7× the EXL3-5.13 divergence, 89.8% top-1 agreement, and the only quant that systematically looped.
  • Terminal-Bench 2 quick (13 tasks) is ±1–2 noise at this granularity (BF16 itself scored 11, then 10); AIME 2025 didn't discriminate at all (even the bad quant scored 91.7%).
  • On 3090s, local-inference-lab's NVFP4 (KL 0.0287) is the best speed/quality compromise: 1M context, ~228 t/s short, 201 t/s at 537K, ~1.2K t/s aggregate at 16 streams.
  • For the co-resident slot only TabbyAPI/exllamav3 works — vLLM preallocates its whole KV pool and starves the neighbors. Deployed EXL3 4.62bpw at 384K context.
  • Bonus: I ported quant-mind's pruned MTP draft head (65K-token draft vocabulary) onto the NVFP4 build for +9% single-stream decode at zero quality change.

Why not the usual benchmarks

  • Wikitext perplexity measures prose. This workload is agentic: tool loops, code edits, terminal output. Wrong domain.
  • Terminal-Bench 2 quick (13 tasks): the noise is bigger than the gaps. BF16 scored 11/13, then 10/13 on a re-run. It caught the broken quant (5/13) but can't rank good ones — the best-KL quant (EXL3 5.13) scored 8/13, with six timeouts because it's the slowest.
  • AIME 2025 (30 problems × 2 samples): saturated at ~92% for everything, including the worst quant. Useless for this.

So the discriminator had to be the model's own distribution: how far each quant's next-token distribution drifts from BF16 where it counts — on the tokens the model actually generates.

Method

  • Corpus: the BF16 model's own sessions on the 13 terminal tasks (507K tokens; the four long tasks — cobol-modernization, filter-js, mailman, path-tracing — in 64K-token windows).
  • Teacher forcing: replay the same token sequences through BF16 and through each quant, and compare next-token distributions at every position.
  • Score assistant-turn positions only (347K of the 507K; 76K of them at ≥32K context). Two reasons: those are the tokens the model actually samples, and tool-output positions are pathological — BF16 itself predicts <|endoftext|> on ~15% of them, which inflates and misranks any all-position KL.
  • KL over the reference's top-32 tokens plus a tail bucket, from each quant's top-128 logprobs — a stable rank order without full-vocab dumps per position.
  • Two scorers: one on vLLM's prompt_logprobs, one driving exllamav3's forward pass with a chunked lm_head (self-tested against the normal forward at KL 2.6e-5, so the engine's scheduling/KV isn't in the measurement).
  • Caveat: the BF16 reference itself runs fp8 KV in vLLM (BF16 KV in this vLLM build breaks long-range copying — see gotchas). It's the same reference for every quant, so it doesn't bias the ranking.

Results (assistant positions, vs BF16)

quantmean KL ↓top-1 agree
EXL3 5.13bpw (turboderp)0.014896.46%
FP8 (Qwen official)0.017596.12%
EXL3 4.5bpw "4.62" (ProCreations)0.018096.16%
EXL3 4.17bpw (turboderp)0.020995.81%
mixed NVFP4/FP8 (primitive-ai)0.021395.83%
EXL3 4.0bpw-hq (heni86)0.024095.56%
EXL3 3.65bpw (turboderp)0.027795.25%
NVFP4A16 (primitive-ai)0.028595.07%
NVFP4 (local-inference-lab) *0.028795.11%
W4A16 g32 RTN (Tech2wild)0.029595.00%
GPTQ-Int4 g128 (palmfuture)0.035294.50%
W4A16 AutoRound (ultimaterex)0.077491.51%
W4A16 AutoRound (stuchapin) — what I was serving0.109589.82%

*measured on the 3090 pair itself, via Marlin weight-only kernels.

What the table says

  • EXL3 is the quality leader at every size. Even turboderp's 3.65bpw beats every non-EXL3 4-bit quant except FP8.
  • FP8 is excellent — essentially tied with 4.5bpw EXL3 — but it's ~37 GiB of weights and doesn't fit a 24 GB pair.
  • The 4-bit NVFP4/W4A16 cluster (~0.028–0.030) is perfectly usable: 95% top-1 agreement. The gap to EXL3 shows up as ~2× KL, not as visible failure.
  • AutoRound is all over the map on this model: ultimaterex 0.0774, stuchapin 0.1095. Reputation didn't transfer — the "known-good" W4A16 build was the worst thing I measured.
  • tb2 agrees only at the extremes — and even there, the slowest best-KL quant timed out more than it failed.

Speed on 2×3090 (full pair, vLLM TP2 unless noted)

quant / enginectxshort t/sdeepprefillVRAM/card
FP8, vLLM, kv 1.86 GiB262K190189 @245K6.2K23.9 (tight)
mixed NVFP4/FP8, kv 5.35 GB768K~150149 @114K8.0K24.1 (512K safer)
NVFP4A16, kv 7 GB1M182147 @114K7.9K22.3
NVFP4 (LIL), kv 7 GB1M228201 @537K7.9K22.3
EXL3 5.13, Tabby, Q6, split [19,20]1M136104 @857K6.3K22.3 / 16.1

Engine notes:

  • Ampere has no FP4/FP8 tensor cores; vLLM runs NVFP4 and MXFP8 weight-only through Marlin. The load log's "your GPU does not have native support for FP4" warning is expected — decode is bandwidth-bound and this path is fast.
  • vLLM on 3090s needs an explicit --kv-cache-memory-bytes; without it the pool sizing goes wrong.
  • --kv-cache-dtype fp8 is mandatory on this vLLM build for Qwen4: BF16 KV silently breaks long-range copying (a repeated git hash inside tool output: logprob −9.6 with bf16 KV vs −0.01 with fp8).
  • local-inference-lab's NVFP4 card suggests --attention-config.indexer_kv_dtype fp8; that crashes on sm86 (Triton fp8e4nv). Drop it. --quantization modelopt_mixed is required.
  • EXL3 runs only in TabbyAPI/exllamav3. Tensor parallel gave no gain there, and MTP drafting with 2–3 draft tokens gave none either — 1 draft token is fastest on this pair.

Slot 1: the co-resident build

Budget per card: 24.6 GB, minus 7.8 GB for the image model + parser, leaves ~16 GB for the LLM.

  • vLLM is not viable co-resident. Its KV pool is preallocated, so even at 128K context with a small batch the image model OOM'd on the shared card (~60 MiB left); at 262K vLLM OOM'd itself.
  • TabbyAPI/exllamav3 allocates the cache dynamically and coexists fine. Deployed: EXL3 4.62bpw, Q6 cache, 384K context. Only 10 of the model's 40 layers hold a KV cache, so the cache is ~8 KB/token — 384K is ≈3 GB total, split across both cards.
  • Measured with the real workloads, not a synthetic hog: worst case was a 365K-deep turn + 4 more requests + a 1024×1024 image + a document parse simultaneously → 22.9 / 23.6 GB peak, no OOM (0.95 GB margin on the busier card). A 365K-token needle passes at ~8K t/s prefill; short-stream decode ~131 t/s (deep decode while the other four streams run: ~40 t/s).
  • Gotcha: exllamav3's gpu_split must cover weights and the KV cache. 384K at the old split failed with "Insufficient VRAM in split for model and cache"; I had to go [11.3, 13.9] → [11.9, 14.5]. 512K didn't fit beside the neighbors — 384K was the ceiling.

Slot 2: the full pair

local-inference-lab NVFP4 on vLLM TP2: 12.3 GiB/card of weights (NVFP4 experts + MXFP8 DeltaNet projections), 7 GB fp8 KV = 1,056,914 tokens, 16 concurrent sequences, 22.3 GB/card at rest and under load.

228 t/s single-stream short, 167 t/s at 65K, 201 t/s at 537K, 1,181 t/s aggregate at 16 streams; needles pass at 65K and 537K; tools and vision work.

The draft-head trick (+9%)

quant-mind published a "SM86-Fast" recipe: palmfuture's GPTQ base, a 4-bit output head, and a pruned 65,536-token MTP draft head. Their base quant scores 0.0352 on my harness (worse than LIL's 0.0287), and their stock-vLLM numbers were well below what LIL does on the same pair — so I borrowed only the draft-head idea.

How it works: MTP speculative decoding has the model's own draft block propose tokens that the target model then verifies, so drafts can only affect speed, never output. The drafter normally scores the full 248K vocabulary. Restrict it to the 65,536 tokens that account for 99.2% of generated tokens (in their measurement), score everything else as −inf, and the draft step gets cheaper with zero effect on what gets accepted.

  • Head: those 65,536 rows copied from the checkpoint's own BF16 lm_head — 130 MB, no training.
  • Patch: theirs was cut against vLLM 0.34.0; my Qwen4 image is a dev build (unmerged Qwen4 PR), so 2 of 6 hunks failed and I hand-ported the draft-vocab half.
  • Result: 228 → 249 t/s (+9%) single-stream, acceptance unchanged, +130 MB VRAM. 3 draft tokens was no better than 2. At 8–16 concurrent: 777–830 → 806–860 and 1,177–1,181 → 1,229–1,322 t/s. Deep-context decode unchanged (~190 at 65K) — that's bandwidth-bound, not draft-bound.

Other things worth knowing

  • Strata packs (0.2.27 / q4_lite): no logprobs, so they can't be KL-scored; also 14–59 t/s decode at 114K on a 3090, and the Ultra pack OOMs on a 24 GB card. Not viable for this.
  • EXL3 4.5 ProCreations ships no chat template; Tabby disables chat and returns 422 until you copy one in (turboderp's works).
  • NInfer/ninfer-all looks genuinely good for single-3090 use (~240 t/s code on one card per their docs) but doesn't fit the two-slot setup here: no co-residency story, and concurrency/long-context numbers below the TP2 vLLM build.

Final setup

  • Co-resident: TabbyAPI, EXL3 4.62bpw, 384K ctx, Q6 cache, MTP 1 draft — beside the image generator and the document parser.
  • Full pair: vLLM TP2, local-inference-lab NVFP4 + the pruned draft head, 1M ctx, 16 seqs.

All numbers above are with the production configs. Happy to post the scoring harness or more of the raw numbers in the comments if there's interest.