strata_bench.py records a layer-split run as single-GPU (card list and VRAM total)
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 91/100
調査の方向性
tools/strata_bench.py:614-616 から確認し、static["gpu_name"] がローカルで使用されているカードとどのように照合されるかを調べます。説明されている2 GPUのレイヤー分割構成で再現し、./bench.sh --url http://127.0.0.1:<port> を実行します。完了とは、生成された README.md と results.json の両方に2つの配信GPU名が保持され、合計40952 MiBが報告され、単一カードの場合の結果が変わらないことです。
索引モデルが issue の本文から書いたものです。
説明
What happened
A benchmark of a two-card layer split (RTX 3090 + RTX 4080 SUPER) produces a report naming only the first card:
"gpu": ["NVIDIA GeForce RTX 3090"], "gpu_vram_mib": 24576
while the server reports both correctly:
"machine": {"gpu": {"name": "NVIDIA GeForce RTX 3090 + NVIDIA GeForce RTX 4080 SUPER",
"total_mib": 40952}}
and the engine log says layer split: layers 0-28 (CUDA0), 29-47 (CUDA1), one hand-off per window.
Cause, tools/strata_bench.py:614-616:
elif len(used) > 1 and static.get("gpu_name"):
named = [g for g in used if g["name"] == static["gpu_name"]]
used = named[:1] or used[:1]
With a split, static["gpu_name"] is "A + B", so no single card equals it, named is empty, and used is truncated to the first card. gpu_vram_mib is then summed over that one card (lines 627-628), overriding the server's correct total. The " + " form is already parsed 20 lines below (#2001), but that branch only fires when the served cards are not all local (the other-vendor case), so a split across two local NVIDIA cards never reaches it.
The branch is only reached when cfg is None, i.e. with --url. On current main that is the only way to benchmark at all, because bench.sh crashes when it starts the server itself (#2872). So at the moment every layer-split run benchmarked with the tool is reported as single-GPU, in both the card list and the VRAM total.
To reproduce: a config with "gpu": [0, 1], start the server, then ./bench.sh --url http://127.0.0.1:<port>. The generated README.md and results.json name one card.
Suggested fix: match each name the server gives, keeping the count.
elif len(used) > 1 and static.get("gpu_name"):
served_names = [n for n in static["gpu_name"].split(" + ") if n and n != "?"]
named = [g for g in used if g["name"] in served_names]
used = named[:len(served_names)] or used[:1]
Checked against this machine's values: the split case becomes ["RTX 3090", "RTX 4080 SUPER"] / 40952 MiB, and both single-card-of-two cases are unchanged.
Strata version, GPU, OS
Engine 0.1.45, main at 477ac13c (these lines unchanged on main today). RTX 3090 + RTX 4080 SUPER, Linux (Ubuntu 24.04 base), engine compiled from source.
- 主要言語
- C++
- スター
- 11.6k
- フォーク
- 1k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Niko1221/Strata のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
Niko1221/Strata#3894 · コメント 2 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Niko1221/Strata#3785 · コメント 2 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
メンテナーはふだん 3 日以内に返信
Niko1221/Strata の issue をすべて見る
似ている issue
-
Remove source files from packaging for deb, zip, etc対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
OpenSpace/OpenSpace#4353 · コメント 1 件 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
justcallmekoko/ESP32Marauder#1656 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
Decompiler: convertCharRef() in xml.y overflows its int4 accumulator on long character references対応中かも @kaayzouee が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
NationalSecurityAgency/ghidra#10009 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
mutationpp/Mutationpp#337 ·