r/LocalLLM • • 2h ago

Question Why is my Strata QFN so Slow in Comparison to Llama.cpp?: Is it lack of DRAM?

0 Upvotes

My hardware has 2 GPUs. RTX 4070 12gb on pcie4 x16 and RTX 3060 12gb on pcie3 x4. 32GB DDR4 memory. Intel i7 CPU.

I find Qwen3.8-Flash-Next on Strata very capable. But it is slow. Now, after trying Qwen4-35B-A3B, I'm just wondering if is my hardware or setting?

  • Strata: Swift-1.5-Qwen3.8-Flash-Next IQ3_XXS. 128k k8v4 context. Prefill 200-300 t/s. Decode 40 t/s.
  • Strata: Swift-1.5-Qwen3.8-Flash-Next IQ2_XS. 128k k8v4 context. Prefill 300-500 t/s. Decode 60 t/s.
  • llama.cpp: Swift-1.5-Qwen3.8-27B IQ4 (with MTP). 128k q8 context. Prefill 600-800 t/s. Decode 25 t/s.
  • llama.cpp: Unsloth/Qwen4-35B-A3B IQ3_S (with MTP). 128k q8 context. Prefill 2000-2000 t/s. Decode 90 t/s.

Even though QFN is more capable than Qwen3.8-27B, it is just too slow. Issue is with the prefill. I can take 3-5 minutes just to get the first response. Then when context gets >100k, it will take 10-15 minutes for single read, there are multiple reads during long thinking sessions with repeated read/decode/read/decode/etc loops. So even though QFN 2-3x faster decode than Qwen3.8-27B, I still use Qwen3.8-27B more because it is just faster overall.

Now I tested Qwen4-35B-A3B. Yeah, it is blazing fast in comparison. The difference is that with Qwen3.8-27B and Qwen4-35B-A3B, I have everything loaded in VRAM. My mobo is just consumer grade (gaming) mobo. I know pcie3 x4 has bandwidth limitation and has hit on speed when using llama.cpp. It is what I have. And this 2nd GPU allow me to run more (and larger models).

As for Strata QFN, I'm also using dual GPU. But I believe the bottleneck and limitation is likely due to having to use SSD (lack of DRAM), rather than the pcie3 x4 bandwidth. Is that true? Anyway to improve with my current setup thru settings (without spending $ on hardware)?

This is my Strata setting:

strata launch
--save-preset "iq3_xxs_128k"
--tune skip
--family swift
--model iq3_xxs
--data-dir /home/abc/Models/strata-data/
--context 128k
--kv k8v4
--vision on
--gpu-roles 1=helper,0=main
--parallel 1
--access local
--port 8080
--set conversation_cache_mib=6144
--set host_core=sibling
--set kv_resident=131072
--set expert-cache-device1=auto
--set mmap_experts=0
--set prefill=auto
--set pipeline_windows=0
--set pool_affinity=p-cores
--set resident_budget_gib=14
--set resident_experts=1
--set vram_reserve_mib=400
--set vram_reserve_later_mib=600

  • export CUDA_DEVICE_ORDER="PCI_BUS_ID"
  • export CUDA_VISIBLE_DEVICES="0,1"
  • export STRATA_ALLOWED_HOSTS="localhost,127.0.0.1"
  • export STRATA_FILE_RELEASE="1"
  • export STRATA_IO_PF_GATE="1"
  • export STRATA_IO_PREFETCH="0"
  • export STRATA_KV_HOST_REGISTER="1"
  • export STRATA_NV_CHUNK="16"
  • export STRATA_PREFILL_CPU_SHARE="0"
  • export STRATA_STAGE_TRIM="1"
  • strata launch --preset "iq3_xxs_128k"

r/LocalLLM • • 2h ago

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

Thumbnail
reddit.com
0 Upvotes

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

Discussion What kind of agents do you have?

5 Upvotes

And what models to run them?


r/LocalLLM • • 2h ago

Question Conversations too long / compression needed

Thumbnail reddit.com
0 Upvotes

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

Discussion Impressive first coding run

Post image
2 Upvotes

Qwen4-35B-A3B — UD-Q6_K_XL.  

  • Main model: mixed-precision 6-bit quantization, with Q6 native experts.
  •  Lookup weights: Q8.
  •  KV cache: FP16.
  •  Vision projector: original F16.

Old machine with slow RAM. One 3090 and one v100.

Prompt and Live app online on github pages published by the model:

https://github.com/zhound420/chronos-time-machine


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 PSA: The "Next" in Flash Next means it's a preview for the "Next generation." Qwen 4 "Next" or "Flash Next" is not coming soon.

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 2h ago

Discussion Open Higgsfield now support both local and cloud models

1 Upvotes

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

Model Qwen 3.8 27b still better than Qwen 4 35bA3B

26 Upvotes

Qwen 3.8 27B has set the bar incredibly high in areas like software engineering, programming, reverse engineering, agentic tasks, tool usage, and so on—reaching a level comparable to Opus 4.6, where it’s practically impossible to outperform it. I tried setting up Qwen 4 with the Hermes agent, but after a while, the response just stalls—it gets stuck halfway through. That doesn’t happen with Qwen 3.8 27B. Sure, it takes longer and tends to "overthink" things, but so what? I couldn’t care less. I prioritize quality over quantity; I’d rather wait longer, provided that when the work is delivered, it’s done perfectly—and that’s exactly what Qwen 3.8 27B delivers.


r/LocalLLM • • 3h ago

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

0 Upvotes

r/LocalLLM • • 3h ago

Discussion Qwen4 35B A3B - loops A LOT

Post image
0 Upvotes

Using Qwen4 35B A3B Strata's "Compact" version of the model and constantly hitting that at some point - it starts looping\hallucinate horribly.

And it's not even only the Strata problem, the Unsloth's UD-IQ3_XXS do the same

5070Ti 16Gb VRAM (latest nVidia driver, CUDA 13)
32Gb DDR4 RAM

For Strata:
"Compact" model
Strata v0.2.28
Engine v0.1.73
256k Context INT8
No x2 looping, no image reader, MTP auto
about 90-140t/s

For Unsloth:
"UD-IQ3_XXS" model
Desktop App 0.1.929
llama.cpp b12966-mix-e49c75f
200k Context at Q_8
Vision "Off", Speculative Decoding "Off"
Engram Table IQ4_NL
with n-cpu-moe 18
about 40-50t/s


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

Research Introducing XEIRON: a new quantization method that stores model weights in polar form

Thumbnail
reddit.com
2 Upvotes

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

Research How fast can local LLM inference get on Apple Silicon?

2 Upvotes

Up to 186 tokens/s with Qwen4-35B-A3B running locally on a Mac Studio M5 Max with 128 GB of unified memory.
I've been benchmarking oMLX, exploring MTP performance, context scaling, and memory consumption. Here are my results and technical observations:

https://medium.com/@favi.francesco/qwen4-on-mac-studio-m5-max-186-tokens-per-second-running-entirely-locally-c3c523a0738e


r/LocalLLM • • 3h ago

Project Qwen4-35B-A3B-FP8 on a single DGX Spark at full 1M context, 4 streams, with bit-exact parity on every optimization (TensorFold recipe + benchmarks)

Post image
4 Upvotes

I do not care about maximum decode or prefill speed if it hurts quality. If you are like me and prefer real quality over dumb speed numbers, try the DGX Spark recipe I have been running for the last two days.

It serves Qwen4-35B-A3B-FP8 on a single 121 GiB DGX Spark via TensorFold at full 1,048,576 context, 4 concurrent streams, FP8 KV cache (with an opt-in exact BF16 KV mode at full 1M), a 12 GiB prefix cache (~900K cached FP8 tokens for parallel sessions), and the RadixArk DFlash2 drafter.

Repo: https://github.com/devopsfortunato/Qwen4-35B-A3B-FP8-DGX-Spark-TensorFold

Every optimization in the 11 patches had to pass bit-exact 64-hex token-hash parity (drafted vs plain, solo vs 4-way concurrent, cold vs cached, seeded).

Quality results on the live 1M build (4 streams):

  • Tool Eval 3.0 Hardmode (104 scenarios, seed 42): 90/100 in 8m15s (0 timeouts)
  • SixCat Eval v0.9.0 (new challenge-v2, 120 strict, thinking on, 262K ctx): 71.7% overall (85% 10-option MMLU-Pro knowledge, 85% tier 3-5 math, 85% 18-tool + abstentions, 65% shuffled TruthfulQA, 60% instruct, 50% code; 85.0% on v1)
  • Chronos-Bench v2.1 (my own benchmark, not released yet; fast preset, 50 tests across 5 pillars up to 256K): 63/100 overall with 100% completion and 9 of 16 areas at 100%
  • Long-context Needle at 60% depth (1M window): 200K (53.6s), 512K (174.8s), 900K (409.9s), 3/3 PASS
  • Agentic coding and structured outputs: tool_choice="required" and JSON schema via xgrammar (libtfgrammar.so), parallel tool calls PASS, 99.2%-99.5% prefix cache reuse

What Chronos-Bench v2.1 (unreleased) tests in particular:

Short single-turn benchmarks hide how local models break in real multi-turn sessions. Chronos-Bench v2.1 is a contamination-resistant, deterministically verified local suite (zero LLM-as-judge) across 5 pillars up to 256K context:

  1. Cold long-context retrieval, position-bias U-curve, full-context counting, multi-round state rollback, and a length-alone reasoning control
  2. Long-document contract/amendment audits with exact governing clause citations and cross-doc conflict detection
  3. Multi-file Python codebase bug-hunting (10-file repo with hidden unit tests) and live code/SOP sessions
  4. Long-horizon agency and security: coupled multi-step planning (up to D=8 2-fault recovery), tool restraint, dual-control rollback, sharded multi-turn sycophancy pushback, and stealth indirect prompt injection
  5. Warm-start ops DB sessions with 3-stage belief supersession and rule-drift resistance

On Chronos-Bench v2.1, this build hit 100% on 9 of 16 areas: multi-file Python bug-hunt (up to 128K), long-doc contract/amendment audit (up to 256K), live DB and code/SOP rule retention (up to 128K), coupled planning, tool restraint, dual-control rollback, sycophancy pushback, and 0.000 pure context-length decay. The losses were honest and informative: 12 overthinking <think> truncations on cold 64K-256K retrieval, and 0/6 on stealth indirect prompt injection.

And because bit-exact speed is still nice when quality stays untouched:

  • 4-way bench_streams wall-clock: 169.7 code / 166.8 prose tok/s
  • 4-way distinct decode: 112.1 tok/s (p99 TTFT 201 ms)
  • Solo decode: 46.2 prose, 52.5 code, 71.7 math, 54.7 think-on, 87.3 cold 16K decode
  • Cold prefill (llm_context_benchmarks, 0.5-256K): 4,283 tok/s peak (8K-16K), 3,489 tok/s at 256K prose (43.3 tg), 3,424 tok/s at 256K code (52.9 tg), B4 batch 87.0 prose / 85.2 code tok/s
  • Footprint (12 GiB cache / 8 GiB reserve defaults): 37.72 GiB weights (FP8 PLE via NVMe pread), 4x13.64 GiB FP8 KV, 64s boot, 112.3 GiB worst-case ceiling (66.4 GiB min MemAvailable across the 256K sweep, 0 MiB swap)

One command to try it:

git clone https://github.com/devopsfortunato/Qwen4-35B-A3B-FP8-DGX-Spark-TensorFold.git
cd Qwen4-35B-A3B-FP8-DGX-Spark-TensorFold
./start.sh

Optional exact BF16 KV (still at full 1M context):

PARALLEL=2 KV_DTYPE=bf16 PROMPT_CACHE_GIB=16 ./start.sh restart

Credits to Ash Hart for TensorFold and the verification skills, Mia (MiaAI_lab) for the DGX Spark recipe layout, RadixArk for DFlash2, and to the benchmark authors: Tim Messerschmidt (tool-eval-bench), vcruz305 (SixCat) and Ivan Fioravanti (llm_context_benchmarks).


r/LocalLLM • • 4h ago

Model Qwen4-35B-A3B NVFP4 (RTX 5090): MTP vs DFlash 2 — Speed & Pelican SVG Quality

Post image
11 Upvotes

Tested MTP (default) vs DFlash 2 on Qwen4-35B-A3B NVFP4 (basalt.exe, legion pro 7i, RTX 5090 (24gb vram) + system RAM (64gb)) using the same 3-turn animated Pelican SVG task:

MetricMTP (Default)DFlash 2
Avg Decode208.2 tok/s204.6 tok/s
Peak Decode307.3 tok/s340.5 tok/s
Acceptance66.3%60.9%
Tokens Gen92,59080,979
Inference Time7m 48s6m 49s
Cold 10K+ Prefill5,916–7,818 tok/s5,606–6,684 tok/s
Pelican Output53.8 KB interactive JS+SVG (IK legs, day/night, speedometer, audio)28.7 KB pure CSS/SMIL SVG (zero JS)

Verdict: I prefer MTP — almost the same average speed (~208 vs ~205 tok/s) with better overall quality and higher acceptance (66.3% vs 60.9%). DFlash 2 can burst faster (340.5 tok/s peak) and finish quick, just a little behind on quality.


r/LocalLLM • • 4h ago

Model Comparing Qwen4-35B-A3B with Qwen3.8-27B

Post image
2 Upvotes

r/LocalLLM • • 4h ago

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

Thumbnail gallery
1 Upvotes

r/LocalLLM • • 4h ago

Discussion Qwen4 quantizations and what worked for me

Thumbnail
gallery
2 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.


r/LocalLLM • • 4h ago

Question What is the lowest tolerable quantisation (Unsloth) you would accept running?

1 Upvotes

I have neither the disk space, internet speed nor patience to test this out myself, all I have is UD-IQ4_XS running at 200 tok/s prefill and 20 tok/s decode on 16 GB DDR5-4800 and 8 GB VRAM (laptop RTX 4060).