[Benchmark] RTX 3090 24 GB (sm_86), Windows + CUDA 13: 0.1.66 decodes 4-5 % slower than 0.1.62 and gives up 358 resident expert slots

未关闭
#7,286 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
42/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
cpp

调研方向

Start by comparing the engine 0.1.62 and 0.1.66 startup logs and planner output for expert cache reservation and actual allocation; the report says the raw run files are available locally but does not identify repository files or tests. Then trace the cache sizing and reservation entry points and reproduce the RTX 3090 measurements. Done means explaining or correcting the reduced cache allocation and planner estimate while checking decode performance.

由索引模型根据 Issue 内容生成。

描述

needs-format
Area

[Benchmark] - measured numbers on one specific machine

Desktop app, Terminal or source?

Terminal (strata / serve/server.py)

What happened

The 24 GB case is missing from the tracker: #7106 is a 12 GB 3080 Ti, #6976 is a 4090 on Linux, and the sm_86 reports so far are all crash reports. This is a four-arm interleaved speed comparison of 0.1.62 vs 0.1.66 on the same box, same pack, same config.

Engine 0.1.66 is 4-5 % slower on decode and has no prefill gain. The startup lines show why: it reserves more after the expert cache and more of the card was already gone before it started — together 0.82 GiB less cache, which on 24 GB costs 358 resident expert slots.

Environment
GPU RTX 3090 24 GB (sm_86), driver 610.88
OS / backend Windows 11, CUDA 13 engine packages
CPU / RAM i5-12600KF / 128 GB DDR4
Model Qwen3.8-Flash-Next Unsloth UD-IQ4_XS v31, iq_pack.py --compat-bf16
Flags --max-context 262144 --kv int8 --kv-resident 20480 --parallel 1, STRATA_ROUTE_TAIL_SKIP=5
Engines 0.1.62 (build 1d295787b365) vs 0.1.66 (build 2e87c08db18a)

--max-context 262144 is what both arms ran; this deployment runs 393216 today, so nothing here is specific to 256K.

The 0.1.66 arm ran with STRATA_HC_Q8=0. Without it every request dies at the first verify window (layer 0 never rang) - the auto-enabled Q8_0 hyper-connection path of #6713 / #6714, which UD-* packs hit. Ten variants of that failure were checked separately (kv-resident, adapt-async, reserve, context, device-hits, SM86_PERF, HC_SPLIT, HC_Q8_TC): all ten reproduce, so it is not a knob.

Method

Four arms interleaved A-B-A-B, two rounds per arm, conv_cache: false in every run, identical run config except engine\, engine stopped between arms, both on port 8097.

  • 4K cell: n = 10 per arm
  • 16K cell: n = 4 per arm
  • Single-run decode spread is 91-128 tok/s, so a single run cannot resolve 4 % - hence the interleave and two rounds.
Prefill (tok/s, median)
Cell 0.1.62 r1 0.1.66 r1 0.1.62 r2 0.1.66 r2 Mean delta
4K 1787.0 1763.2 1794.4 1755.0 -1.8 %
16K 2700.0 2882.7 2974.6 3153.4 +6.4 % (arm-to-arm spread is itself +/-10 %, so: noise)
Decode (tok/s, median)
Cell 0.1.62 r1 0.1.66 r1 0.1.62 r2 0.1.66 r2 Mean delta
4K 117.7 107.8 113.2 111.5 -5.0 %
16K 103.2 103.2 123.9 114.1 -4.3 %

Both rounds and both cells point the same way: decode is lower, prefill is not better.

Expert cache - two inputs moved, not one
0.1.62 0.1.66
Free VRAM at start 16.70 GiB 16.12 GiB (-0.58)
Reserved, +draft +220 MiB +220 MiB
Reserved, after cache +256 MiB +384 MiB (+128)
Planner's printed estimate 5,563 slots 6,186 slots
Actual allocation 6,508 slots, 14.85 GiB 6,150 slots, 14.03 GiB
prompt chunk auto 32768 tokens, 512-slot ring 32768 tokens, 512-slot ring
Load time 25.2 s 25.2 s

0.1.66 had 0.82 GiB less for the expert cache in total - 358 slots at ~2.3 MiB. Decode on a MoE model is expert-cache hit-rate bound, so a 5.5 % smaller cache yielding a 4-5 % slower decode is the expected direction, not a coincidence. Same direction as #7106 (12 GB 3080 Ti: 2363 -> 2087 slots, -32 % decode) and #6976 (4090, same UD-IQ4_XS-v31: 6615 -> 5973 slots). On 24 GB the loss is smaller than on 12 GB but it does not disappear.

Two things are worth a look. The reserve step (256 -> 384 MiB) accounts for only 128 MiB of the 0.82 GiB; the other 0.58 GiB was less free VRAM at start on the same boot sequence, which I did not isolate. And the planner's estimate moved the opposite way (5,563 -> 6,186) while the actual allocation moved down (6,508 -> 6,150), so the printed estimate is not what the allocation follows.

Why 0.1.67 is not in this table

0.1.67 could not be measured here. On Windows + CUDA 13 it matches #7131 exactly: 1K and 8K prompts pass, long prompts die with 0xC0000005. This deployment runs 384K context and lives on 64K+ prompts, so an A/B on 0.1.67 would only produce crashes. A Linux 0.1.67 run with the same four-arm interleave on a 24 GB sm_86 card would close the gap - that data point does not exist in the tracker.

Reproduction status

Reproduced locally (2026-11-23), re-analysed from the stored run files (2026-11-25). Nothing was re-run for this report.

Strata version

0.2.1 / engine 0.1.62 vs 0.2.20 / engine 0.1.66. Not affected by 0.1.67 yet (see above).

Raw data

Four files per arm per round (cfg-*.json, result-*.json, serve-*.log, stdout-*.log), kept locally; every number above is a median over the per-cell samples listed under Method. The result files carry engine_version, build_id, conv_cache and load_s per arm, so the pairing is checkable. Happy to attach either round's json if that helps.

Suggestion

Size the post-cache reserve from the card instead of a flat 384 MiB (or keep the 256 MiB 0.1.62 used), and make the planner's printed estimate agree with the allocation it actually makes - between 0.1.62 and 0.1.66 the two move in opposite directions. Until then 0.1.62 remains the fastest engine for this configuration.

主要语言
C++
星标
11.6k
派生
1k
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Niko1221/Strata 的其他 Issue

查看 Niko1221/Strata 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。