mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4477] [Benchmark] bench run --url reports every card on a split over identical GPUs #5065
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#5065
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?
📋 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)
b11d115bench: report every card the server names, not the first, on a split over identical cards (#4473)b0600e3tools/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 --urlthere is no run config, sobench_facts.hardware()chooses the cards fromthe 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 wholestring. 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
gpuselection 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. Theservedhandling below it (cards onlythe 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).tests/terminal/test_bench_facts_gpus.pyon unchanged main: 3 of 5 fail (two identical cards, a mixedpair, an unused third card).
/v1/statusreportsmachine.gpu.name="NVIDIA GeForce RTX 3090 + NVIDIA GeForce RTX 3090".hardware()with the realnvidia_gpus()and that name returns two cards on this branch and one on main.--urland--profile --no-startruns in #4468.Failed:
Not run:
strata bench run --urlwith this branch (onlyhardware()was run on the real machine).test_bench_facts_amd.pypass).Limits
hardware_static.gpu_countcould cover that case; it is not used here.🤖 Generated with Claude Code
Update: the same fix in tools/strata_bench.py
collect_machinecompared 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 artx-3090folder slug instead of2x-rtx-3090. Second commit: one local card per name in the server's list, mirroringbench_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 newReportTests.test_two_identical_cards_the_server_names_are_both_listedagainst main'stools/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.