mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 21:05:40 +07:00
[GH-ISSUE #1956] Report: UD-IQ4_XS vs UD-Q6_K_XL vs Q8_0, speed from 256K to 1M context (0.1.42, NVIDIA L40S vGPU) #775
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#775
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @talisp on GitHub (Oct 11, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1956
I ran the same performance battery on three quantizations of
unsloth/Qwen3.8-Flash-Next-GGUFwith Strata v0.1.42, on one NVIDIA L40S-48Q vGPU. It covers 18 configurations: 3 weight formats × 3 context sizes (262,144 / 524,288 / 1,048,576) × 2 KV cache types (int8 and fp16).Why we run this. This model serves a local agent that works inside Unreal Engine through MCP (field report in #980). The sessions are long, often 100K–190K tokens of context, and include viewport captures. So prompt reading speed at large context and vision matter more to us than short-prompt speed. This report follows #971, where I promised to test larger quantizations.
Results in short
Tokens per second, KV int8:
Which one to pick
What each quantization needs, on this machine:
Hardware
What mattered for Strata on this machine:
All 18 runs with the context full
One run per row. The prompt is a long document with 3 codes hidden in it; the model has to return them in order. Generation speed is measured on a follow-up question that reuses the cached context.
"Time to read it all" is prompt tokens ÷ reading speed.
Speed with shorter prompts (4K, 32K, 128K)
Median of 3 runs, 256 generated tokens. Reading and generation in tokens per second.
Where the memory went (VRAM, RAM, SSD)
VRAM: about 43.5 GiB of the 48 GiB reported by the vGPU was in use in all 18 runs. Strata fills the card with as many experts as fit: 14,613 for UD-IQ4_XS, 7,886 for UD-Q6_K_XL and 6,712 for Q8_0 (about 33 GiB each, at 256K with KV int8). More experts on the card is what makes the 4-bit file faster.
KV cache: it lives in pinned RAM. Only a window of 32,768 cells per layer stays in VRAM, whatever the context size (
--kv-resident 32768).Even so, 75–86% of the KV block reads were served from VRAM.
RAM: the experts are loaded into RAM: 101.75 GiB for UD-Q6_K_XL and 119.53 GiB for Q8_0. System RAM in use at the end of a run was about 62 GiB (UD-IQ4_XS), 110 GiB (UD-Q6_K_XL) and 128 GiB (Q8_0).
SSD: the 54.4 GB PLE table is read from disk (see the setup notes). The KV cache never goes to disk.
What it took to run UD-Q6_K_XL and Q8_0
UD-IQ4_XS is what the setup installs, so it just works. The other two needed manual steps:
-DSTRATA_Q6K_EXPERTS=ON -DSTRATA_MMQ_KQUANTS=ON. Both are off in the default build and in the prebuilt engine. Q8_0 runs on the default build.tools/iq_pack.py --gguf <shard 1> --out packs/<name> --compat-bf16, about 40 s per model. No--experts-bin; the experts stay in the GGUF files.--kv fp16(the setup only offers int8, q4_0 and k8v4).--rope-scaling yarn --rope-scale 2; 1,048,576 needs--rope-scale 4."vision": {"model": <shard 1 of that model>}.--ple-io ramwhenulimit -lis low (31.5 GiB on this VM): the PLE table is 54.4 GB.Startup time depends on whether the files are already in the page cache: 23 s to 2.3 min for UD-IQ4_XS, 39 s to 9.7 min for UD-Q6_K_XL, 1.4 to 10 min for Q8_0.
Does KV fp16 help vision?
Not measurably here. I asked 24 questions about synthetic images with known answers (small text at 9, 12, 16 and 24 px, counting dots, reading a table cell, naming the colour at a grid position), at 256K context:
The three models miss the same things: the 9 px text (usually one wrong character) and the dot counts (off by one). Tables and colours were always right. A simpler check (name 3 shapes and their colours) passed in all 18 configurations.
History: our Strata tests on this machine, from the first install to now
Same VM and card throughout. The speeds below were measured in different ways (agent sessions, a single check after an upgrade, this battery), so read them as a log, not as a controlled comparison between versions.
<think>(#804).--cuda 12accepts driver 550 officially. First report that UD-IQ4_XS works with images (#971). Unreal field report (#980).<think>fix is now upstream. Setup removedapi_keyandhostfrom the config; restored by hand.The first four rows are at roughly 90K tokens of context in real agent use or a single check. The last row is UD-IQ4_XS with a 128K prompt, KV int8, thinking off (median of 3).
Lessons that carried over between versions:
api_key,host, sampling and aliases in the config."aliases": ["<old model name>"]so the client does not need to be reconfigured.Method and caveats
unsloth/Qwen3.8-Flash-Next-GGUF, revision38bb39e.--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --kv-resident 32768 --vision --vram-reserve-mib 700.Raw data (CSV) and this text: https://github.com/talisp/strata-qwen-flash-next-quant-benchmark
Resumo em português (pt-BR)
Teste de velocidade de três quantizações do Qwen3.8-Flash-Next (UD-IQ4_XS de 4 bits, UD-Q6_K_XL de 6 bits e Q8_0 de 8 bits) no Strata v0.1.42, numa vGPU NVIDIA L40S-48Q, com contexto de 256K, 512K e 1M e KV cache int8 e fp16 (18 configurações).
@talisp commented on GitHub (Oct 17, 2026):
Update: v0.1.45 on the same L40S-48Q vGPU (Q8_0, KV fp16, 1M context)
Production moved from 0.1.42 to 0.1.45 on 2026-10-17, with the same model files and the same run options.
STRATA_Q6K_EXPERTS,STRATA_MMQ_KQUANTS,STRATA_EXPERIMENTAL_SM60).tools/iq_pack.py --compat-bf16(Q8_0: about 30 s). The MTP folder from 0.1.42 was reused, sincetools/mtp_*.pyanddraft_vocab.bindid not change.The sample on 0.1.45 is still small; so far it looks the same or slightly faster.
A note on setup's
envblock: with every expert in RAM, setup now writesSTRATA_ROUTE_TAIL_SKIP=0, also for Q8_0. I left it out. My 0.1.42 A/B on this card (Q8_0, KV int8, 256K):STRATA_ROUTE_TAIL_SKIP=0On Q8_0 I could not see a quality gain that pays for the speed. This is one card and 60 prompts.
A UD-Q4_K_XL vs Q8_0 comparison on 0.1.45 will follow.
Closing this issue, since it is a report and not a bug. The numbers stay here for reference.