mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4556] [Benchmark] Single 7900 XTX: tuning gives +45% prefill on 0.1.48, but decode has degraded from 60+ t/s (0.1.3x) to 34.8 t/s (0.1.48 default) #2059
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#2059
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 @wan0791 on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4556
[gfx1100] Single 7900 XTX: tuning gives +45% prefill on 0.1.48, but decode has degraded from 60+ t/s (0.1.3x) to 34.8 t/s (0.1.48 default)
Summary / 摘要
Running Qwen3.8-Flash-Next IQ3_S on a single RX 7900 XTX 24 GB (gfx1100) in production. Two findings:
STRATA_PF_GEMM=1+--prefill auto:32768are the main contributor.I think this is useful for the gfx1100 user base, and the +45% prefill number is surprising enough that I wanted to report it before drawing conclusions.
Machine / 机器
hip-rx79000.1.48 package (ships its own LLVM 22 + hipBLASLt 100200)--max-context 524288,--kv int8 --kv-resident 32768Part 1: Tuning result on 0.1.48 (the good news)
Three arms, same 17 production args otherwise. Medians of 3 runs for decode; prefill is a single 272,071-token prompt.
STRATA_PF_GEMM=1STRATA_PF_FUSED=1+--prefill auto:32768STRATA_ROUTE_TAIL_SKIP=7Gains vs default (E vs A): prefill +46%, decode +5.5%, cache −10% (faster).
Questions I cannot answer myself:
STRATA_PF_GEMMon a 2-card gfx1100 layer split (0.1.40). We get +45% on a single card (0.1.48). Is the difference the single-vs-split topology, or our weak CPU / PCIe 3.0 making the "keep the prompt on the GPU, out of the CPU↔GPU round trips" path pay more?STRATA_PF_GEMM=1+ a larger prefill chunk be the default for gfx1100 single-card (at least on weak-CPU boxes)? We see no quality change in normal use (we have not run a formal quality suite).STRATA_ROUTE_TAIL_SKIP=7is off by default on RDNA3. For us it gives +5.5% decode and faster cache. We noticed the wording of answers shifts slightly (expected, per the docs). Did you measure a quality delta for this specific value on gfx1100?Part 2: Decode degradation across versions (the concerning part)
Same machine, same model family (IQ3_S), decode throughput for a 256-token answer:
--spec 3What I can say with confidence:
So the question for the maintainers: is there a known decode regression between 0.1.3x and 0.1.4x on gfx1100 single-card? Or is it the hipBLASLt 100200 table shipped in the 0.1.48 package (vs the 100500 table the 0.1.3x community builds used) that is costing us here? We are happy to A/B any switch or table you point us at.
Reproduction
Tuning arm E (the one we run in production now):
Everything else is the stock production profile:
--serve --pack <iq3_s> --native <gguf-1> --ple-gguf <gguf-2> --expert-profile <bin> --expert-cache auto --kv int8 --kv-grow --kv-resident 32768 --max-context 524288 --ple-io ram --resident-experts --mtp <rt> --spec 4 --spec-min-p 0.5 --rope-scaling none --rope-scale 1 --adapt-every 0 --adapt-async 1 --vision.Happy to share the raw timing logs if useful — can paste them into the issue.
中文摘要
在**单张 RX 7900 XTX 24 GB(gfx1100)**上跑 Qwen3.8-Flash-Next IQ3_S 生产环境,两个发现:
STRATA_PF_GEMM=1+--prefill auto:32768。机器
hip-rx7900自包含包(自带 LLVM 22 + hipBLASLt 100200)--max-context 524288 --kv int8 --kv-resident 32768调优结果(0.1.48,三组对照,decode 取 3 次中位,prefill 为单次 272,071 token)
E vs A:prefill +46%、decode +5.5%、cache 快 10%。
想请教的问题:
STRATA_PF_GEMM只有 +7%,我们单卡是 +45%。差异是拓扑(单卡 vs 双卡)还是我们的弱 CPU / PCIe 3.0 让"prompt 留在 GPU、减少 CPU↔GPU 往返"这条路收益放大?STRATA_PF_GEMM=1+ 更大 prefill 分块设为默认?STRATA_ROUTE_TAIL_SKIP=7在 RDNA3 默认关,我们测到 decode +5.5% 且 cache 更快,答案措辞略有差异(文档预期内)。你们在 gfx1100 上对这个值有测过质量差异吗?decode 跨版本下降(需要留意)
同机器、同模型族(IQ3_S),256 token 回答的 decode 吞吐:
--spec 3可以确定的:
所以想问维护者:gfx1100 单卡上 0.1.3x 到 0.1.4x 之间是否有已知的 decode 回退? 还是说 0.1.48 包自带的 hipBLASLt 100200 表(vs 0.1.3x 社区构建用的 100500 表)在这里让我们吃了亏?你们指定任何开关或表,我们都可以 A/B。
@github-actions[bot] commented on GitHub (Oct 29, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Oct 29, 2026):
Thanks, this follows the format now.
@Niko1221 commented on GitHub (Oct 29, 2026):
Thank you for measuring this and writing it up. The decode slowdown you measured between the 0.1.3x builds and 0.1.48 is on our list for the next update. We are building a Strata website with a page for community benchmarks, and results like these will be added there when it launches, so we are closing this here. If your numbers change with a new version, you are welcome to post them again.
感谢你测量并整理了这份报告。你测到的从 0.1.3x 构建到 0.1.48 的解码速度下降已列入我们下一次更新的待办清单。我们正在建设 Strata 网站,其中有一个社区基准测试页面,这类结果会在网站上线时添加到那里,所以我们在这里关闭此条目。如果新版本下你的数据有变化,欢迎再次发布。
@Niko1221 commented on GitHub (Oct 29, 2026):
We measured the tail skip on its own on an RTX 3060, a Tesla P100 and two RTX A4000s. We have not measured it on a 7900 XTX; the setting works the same way there, but the numbers below are from NVIDIA cards.
On the model's own text it changes the words a little: the mean KL is 0.006 to 0.012, and the top choice is the same 97% of the time. On long human-written text the shift is larger (KL 0.07 to 0.27). On our 61-task suite it made no difference: 52 tasks passed with it, and 51 and 53 in two runs without it, with no repetition and no change in the copy-exact answers. It makes decode about 12% faster on cards that miss experts. It stays off by default on RDNA3.
If you find a prompt where the answers are worse with it, please send the prompt and both outputs.
我们在 RTX 3060、Tesla P100 和两张 RTX A4000 上单独测量了 tail skip。我们没有在 7900 XTX 上测过;这个设置在那里的工作方式相同,但下面的数字来自 NVIDIA 显卡。
在模型自己生成的文本上,它对用词的影响很小:平均 KL 为 0.006 到 0.012,97% 的情况下首选词相同。在较长的人类撰写文本上偏移更大(KL 0.07 到 0.27)。在我们的 61 项任务测试中没有差别:开启时通过 52 项,关闭时两次分别通过 51 和 53 项,没有重复输出,逐字复制类答案也没有变化。在需要换入专家的显卡上,它能让解码快约 12%。在 RDNA3 上它仍然默认关闭。
如果你发现某个提示在开启后答案变差,请把提示和两次输出发给我们。
@wan0791 commented on GitHub (Oct 31, 2026):
Reporter update (gfx1100 / RX 7900 XTX): engine 0.1.55 with the tuning from this issue now gives 46–50 tok/s decode.
Following the note at close ("If your numbers change with a new version, you are welcome to post them again"), I benchmarked the official
hip-rx7900prebuilt 0.1.55 (app 0.2.9) on the same machine with the same 17 production args as the original post.Machine unchanged: 1× RX 7900 XTX 24 GB (gfx1100), PCIe 3.0 x16, 2× Xeon E5-2630 v3 (AVX2 only, no AVX-512), 125 GB RAM, Ubuntu 24.04; Qwen3.8-Flash-Next IQ3_S + MTP,
--max-context 524288,--kv int8 --kv-resident 32768. Both arms run the official self-contained packages; perBUILD.jsonboth are hipBLASLt 100200 with the samegfx1100-hipblaslt-100200.txttable — so BLAS is not the variable, the engine version is.Each arm is a fresh engine start; decode = median of 3 × 256-token replies (same coding prompt); prefill = one 272,071-token prompt (
max_tokens=20); cache = the same ~300-word prompt timed after one warm call."full tune" =
STRATA_PF_GEMM=1,STRATA_PF_FUSED=1,STRATA_ROUTE_TAIL_SKIP=7,--prefill auto:32768— exactly the switches from this issue.What I read from this:
strata-vision-hip) and prompt cache all work on 0.1.55.STRATA_ROUTE_TAIL_SKIP=7behaves as your note describes (small wording shifts on some prompts); on this box it still adds decode and cache.I have switched production to 0.1.55 with the same tuning. I will post again if the 400K-prompt long-context behavior differs from 0.1.48.
报告人跟进(gfx1100 / RX 7900 XTX):按本帖方法调优的 0.1.55,decode 已到 46–50 tok/s。
按关帖时"新版本下数据有变化欢迎再发"的说明,我在同一台机器、同一套 17 个生产参数上实测了官方预编译
hip-rx79000.1.55(app 0.2.9)。机器同前帖:单张 7900 XTX 24GB(gfx1100)、PCIe 3.0 x16、双 E5-2630 v3(仅 AVX2、无 AVX-512)、125GB RAM、Ubuntu 24.04;IQ3_S + MTP、524K 上下文、--kv int8 --kv-resident 32768。两版都按BUILD.json为 hipBLASLt 100200、同一张 tuning 表——BLAS 不是变量,唯一变量是引擎版本。每组均为全新启动;decode = 3 次 256-token 回答取中位;prefill = 单次 272,071 token(max_tokens=20);cache = 预热 1 次后同 prompt 计时。结果见上表。要点:
strata-vision-hip)、prompt cache 全部正常。STRATA_ROUTE_TAIL_SKIP=7的表现与你们回复一致(个别 prompt 措辞小幅变化);本机仍带来 decode 与 cache 增益。生产已切到 0.1.55 全调优。如果 40 万 token 长上下文行为与 0.1.48 有差异,我会再来追报。