[PR #4477] [Benchmark] bench run --url reports every card on a split over identical GPUs #5065

Open
opened 2026-11-07 16:32:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/4477
Author: @coryjett
Created: 10/28/2026
Status: 🔄 Open

Base: main ← Head: fix-bench-url-gpus


📝 Commits (2)

  • b11d115 bench: report every card the server names, not the first, on a split over identical cards (#4473)
  • b0600e3 tools/strata_bench: the same fix, one local card per name the server lists (#4473)

📊 Changes

4 files changed (+83 additions, -4 deletions)

View changed files

📝 strata_cli/bench_facts.py (+10 -2)
➕ tests/terminal/test_bench_facts_gpus.py (+49 -0)
📝 tools/strata_bench.py (+10 -2)
📝 tools/test_strata_bench.py (+14 -0)

📄 Description

Problem and result

Fixes #4473. With strata bench run --url there is no run config, so bench_facts.hardware() chooses the cards from
the server's GPU name. On a layer split the server reports every card joined by " + ", e.g.
"NVIDIA GeForce RTX 3090 + NVIDIA GeForce RTX 3090". The code kept only cards whose name equals that whole
string. None did, so it fell back to cards[:1], and a two-card server was reported as one card.

After: one local card is taken per name in the server's " + " list, in that order. Two identical cards are both
reported, a local card the server does not use is left out, and a single served name still gives one card. A run
config's gpu selection still wins. If some served name has no local card, the old behaviour is kept.

#4473

Approach

A small change to the elif len(cards) > 1 and served_gpu: branch only. The served handling below it (cards only
the server can see, vendor-only names) is unchanged.

Validation

Passed:

  • python3.12 -m unittest tests.terminal.test_bench_facts_gpus tests.terminal.test_bench_facts_amd tests.terminal.test_bench_standard tests.terminal.test_bench tools.test_strata_bench:
    129 tests OK (1 skipped). Strata Control 0.1.52's bundled Python 3.12.15, Ubuntu 26.10, on this branch (main
    46c152a1 + this commit).
  • The new tests/terminal/test_bench_facts_gpus.py on unchanged main: 3 of 5 fail (two identical cards, a mixed
    pair, an unused third card).
  • On real hardware (2x RTX 3090, layer split, Strata 0.2.7 serving): the server's /v1/status reports
    machine.gpu.name = "NVIDIA GeForce RTX 3090 + NVIDIA GeForce RTX 3090". hardware() with the real
    nvidia_gpus() and that name returns two cards on this branch and one on main.
  • The original report: the --url and --profile --no-start runs in #4468.

Failed:

  • None observed.

Not run:

  • A full strata bench run --url with this branch (only hardware() was run on the real machine).
  • AMD/other-vendor multi-card setups beyond the unit tests (the AMD tests in test_bench_facts_amd.py pass).

Limits

  • When the server reports one name for several cards without " + " (it did not here), one card is still reported.
    hardware_static.gpu_count could cover that case; it is not used here.

🤖 Generated with Claude Code

Update: the same fix in tools/strata_bench.py

collect_machine compared the server's "A + A" name against single cards the same way, so the community runner attached to a server on two identical cards reported one card, half the VRAM total and a rtx-3090 folder slug instead of 2x-rtx-3090. Second commit: one local card per name in the server's list, mirroring bench_facts.hardware().

Passed: python3.12 -m unittest tools.test_strata_bench tests.terminal.test_bench_facts_gpus tests.terminal.test_bench_standard: Ran 96 tests in 54.014s, OK (1 skipped), same environment. The new ReportTests.test_two_identical_cards_the_server_names_are_both_listed against main's tools/strata_bench.py (production file stashed): Ran 1 test in 0.508s FAILED (failures=1)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/4477 **Author:** [@coryjett](https://github.com/coryjett) **Created:** 10/28/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix-bench-url-gpus` --- ### 📝 Commits (2) - [`b11d115`](https://github.com/Niko1221/Strata/commit/b11d1150d3e7950189d6a0fc994274f2311ed4e1) bench: report every card the server names, not the first, on a split over identical cards (#4473) - [`b0600e3`](https://github.com/Niko1221/Strata/commit/b0600e3b7aeb2ae1a074a3b40d8928327ae17fc1) tools/strata_bench: the same fix, one local card per name the server lists (#4473) ### 📊 Changes **4 files changed** (+83 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `strata_cli/bench_facts.py` (+10 -2) ➕ `tests/terminal/test_bench_facts_gpus.py` (+49 -0) 📝 `tools/strata_bench.py` (+10 -2) 📝 `tools/test_strata_bench.py` (+14 -0) </details> ### 📄 Description ## Problem and result Fixes #4473. With `strata bench run --url` there is no run config, so `bench_facts.hardware()` chooses the cards from the server's GPU name. On a layer split the server reports every card joined by " + ", e.g. `"NVIDIA GeForce RTX 3090 + NVIDIA GeForce RTX 3090"`. The code kept only cards whose name equals that whole string. None did, so it fell back to `cards[:1]`, and a two-card server was reported as one card. After: one local card is taken per name in the server's " + " list, in that order. Two identical cards are both reported, a local card the server does not use is left out, and a single served name still gives one card. A run config's `gpu` selection still wins. If some served name has no local card, the old behaviour is kept. ## Related discussion #4473 ## Approach A small change to the `elif len(cards) > 1 and served_gpu:` branch only. The `served` handling below it (cards only the server can see, vendor-only names) is unchanged. ## Validation **Passed:** - `python3.12 -m unittest tests.terminal.test_bench_facts_gpus tests.terminal.test_bench_facts_amd tests.terminal.test_bench_standard tests.terminal.test_bench tools.test_strata_bench`: 129 tests OK (1 skipped). Strata Control 0.1.52's bundled Python 3.12.15, Ubuntu 26.10, on this branch (main 46c152a1 + this commit). - The new `tests/terminal/test_bench_facts_gpus.py` on unchanged main: 3 of 5 fail (two identical cards, a mixed pair, an unused third card). - On real hardware (2x RTX 3090, layer split, Strata 0.2.7 serving): the server's `/v1/status` reports `machine.gpu.name` = `"NVIDIA GeForce RTX 3090 + NVIDIA GeForce RTX 3090"`. `hardware()` with the real `nvidia_gpus()` and that name returns two cards on this branch and one on main. - The original report: the `--url` and `--profile --no-start` runs in #4468. **Failed:** - None observed. **Not run:** - A full `strata bench run --url` with this branch (only `hardware()` was run on the real machine). - AMD/other-vendor multi-card setups beyond the unit tests (the AMD tests in `test_bench_facts_amd.py` pass). ## Limits - When the server reports one name for several cards without " + " (it did not here), one card is still reported. `hardware_static.gpu_count` could cover that case; it is not used here. 🤖 Generated with [Claude Code](https://claude.com/claude-code) ## Update: the same fix in tools/strata_bench.py `collect_machine` compared the server's "A + A" name against single cards the same way, so the community runner attached to a server on two identical cards reported one card, half the VRAM total and a `rtx-3090` folder slug instead of `2x-rtx-3090`. Second commit: one local card per name in the server's list, mirroring `bench_facts.hardware()`. **Passed:** `python3.12 -m unittest tools.test_strata_bench tests.terminal.test_bench_facts_gpus tests.terminal.test_bench_standard`: Ran 96 tests in 54.014s, OK (1 skipped), same environment. The new `ReportTests.test_two_identical_cards_the_server_names_are_both_listed` against main's `tools/strata_bench.py` (production file stashed): Ran 1 test in 0.508s FAILED (failures=1) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#5065
No description provided.