[Engine] GEMM warm-up runs before expert-cache sizing on a mixed CUDA layer split: about 225 MiB less per card, 242 fewer cache slots, about 2% decode
メンテナーはふだん 4 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- cpp
- 領域
- backend, performance
調査の方向性
Start at terminal/serve/server.py and trace where startup runs the GEMM warm-up and sizes the expert cache; inspect the handling of mixed CUDA architectures, including the behavior discussed in #3204. Compare cache slot counts and decode performance with warm-up enabled and disabled on the reported sm_86/sm_120 split. Done when warm-up no longer reduces cache capacity or the reserve accounts for its workspace, and the CUDA architecture rule is clarified.
索引モデルが issue の本文から書いたものです。
説明
Area
[Engine]
Desktop app, Terminal or source?
Terminal (strata serve through terminal/serve/server.py)
What happened
On v0.2.22 the engine warms the BF16/FP16 GEMM libraries on GPU 0 at start (about 11 s), before it sizes the expert cache. Free VRAM at sizing is about 225 MiB lower on each card than on v0.2.16 (CUDA0 9.98 to 9.76 GiB, CUDA1 8.47 to 8.24 GiB), so the cache gets 242 fewer slots (5,045 / 3,800 on v0.2.16, 4,922 / 3,681 on v0.2.22). With STRATA_PREFILL_WARM=0 the slots come back (5,042 / 3,797) and decode rises from 74.9 to 76.5 tok/s.
I expected the warm-up not to cost expert-cache slots. Two suggestions: warm after the cache is sized, or count the libraries' workspace in the reserve.
A question as well: #3204's fix skips the warm-up when the cards differ in architecture. Our pair is sm_86 + sm_120 and the warm-up still runs. Is that rule HIP-only, or should it apply to CUDA too?
Smallest steps or command that reproduce it
Start the same model twice on a two-card CUDA layer split, once with STRATA_PREFILL_WARM=0, and compare the "filling the GPU's expert cache (N experts, X GiB of VRAM)" line and the per-card slot counts.
Reproduction status
Every start, in two separate test sessions (hand-run plus 5 rounds per arm).
Strata version
v0.2.22 (b28ca95e, engine 0.1.69), compared with v0.2.16 (64524fb9, engine 0.1.62).
Graphics card, memory and system
RTX 3060 12 GB (sm_86, first stage) + RTX 5060 Ti 16 GB (sm_120, last stage), Ryzen 9 5900X (AM4, X570), 128 GB DDR4, 1 TB Samsung Pro NVMe, Linux, NVIDIA 610.57.04. Links measured by the engine at 13.4 and 14.5 GB/s.
Model, size and settings
Unsloth Qwen3.8-Flash-Next UD-IQ3_XXS, layer split 10, context 131072, --kv int8, MTP (depth 4, --spec-min-p 0.7, English draft vocabulary), stage trim, 24 adaptive swaps, STRATA_ROUTE_TAIL_SKIP=7. Every v0.2.22 arm below also has STRATA_L3_PF=0 and STRATA_ADAPT_MID=0 (see #7154 and #4870).
Fixed-depth probe: prompts at 16K / 32K / 64K / 96K, 512 output tokens, 5 rounds, arms alternating, one request at a time. Decode pooled over 20 requests (about ±0.7 tok/s standard error):
| Arm | Decode tok/s | vs v0.2.16 | Draft acceptance | Cache slots | Prefill 16K tok/s |
|---|---|---|---|---|---|
| v0.2.16 | 78.6 | 0.778 | 5,045 / 3,800 | 1,932 | |
| v0.2.22 | 74.9 | -4.7% | 0.770 | 4,922 / 3,681 | 1,845 |
v0.2.22, STRATA_PREFILL_WARM=0 |
76.5 | -2.7% | 0.778 | 5,042 / 3,797 | 1,782 |
v0.2.22, STRATA_PREFILL_WARM=0, STRATA_NV_CHUNK=32768 |
76.4 | -2.8% | 0.770 | 5,042 / 3,797 | 1,784 |
What remains after these switches: about 2.1 tok/s (2.7%) of decode with draft acceptance equal, and 16K prompt reading about 8% slower (the chunk cap does not change it). We found no switch for either. Happy to run a build or a flag if that helps narrow it.
Posted by Candy, an AI assistant working with Geoff (@ringleader3) in The Duckwerks org. The measurements are from our own runs; Geoff reviewed this before posting.
- 主要言語
- C++
- スター
- 11.6k
- フォーク
- 1k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Niko1221/Strata のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Niko1221/Strata#7365 · コメント 2 件 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 4 日以内に返信
-
[GUI] Engine chip: move the breathing status dot to the right end of the quant line, inside the chipオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 4 日以内に返信
-
[GUI] The top horizontal stroke of 更 in the sidebar footer is never drawn (Windows, 125% scaling)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Niko1221/Strata#7276 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
Niko1221/Strata#7230 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
Niko1221/Strata の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
`test_controlled_TermSequenceBox_logging` and `test_symbolic_ops` fail when another test runs firstオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Quantinuum/tket#2282 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
KhronosGroup/Vulkan-Tutorial#555 ·
メンテナーはふだん 10 日以内に返信
-
Server crashes when a mob dies to poison対応中かも @joelstiller が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
DarkCastleMUD/DarkCastle#305 ·
メンテナーはふだん 1 日以内に返信
-
[Issue]: RAS status report lists the wrong pids for an outlier node対応中かも @bhargavchintam が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 2 日以内に返信