mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2062] strata_bench.py mislabels mixed-GPU hosts and single-GPU runs on multi-GPU hosts #825
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#825
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?
Originally created by @MinhHaDuong on GitHub (Oct 12, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2062
tools/strata_bench.py(v0.1.43) labels the hardware wrong on a host with two different GPUs. The measurements themselves are fine.Setup: Linux, an RTX A4000 (nvidia-smi index 0) and an RTX 5070 Ti (index 1), driver 580.159.04, CUDA 13.0, Qwen3.8-Flash-Next IQ3_S. Two configs, both run with
python tools/strata_bench.py --config <cfg> --think --runs 2:"gpu": [1]. The server runs on the 5070 Ti only (per-GPU memory: 14.1 GB on the 5070 Ti, the A4000 idle).--expert-cache-device1 --remote-expert-opt).What the report says, for both runs:
2026-10-12-community-2x-rtx-a4000-qwen3-8-flash-next-iq3-s: two A4000s, which neither run had;Community benchmark on NVIDIA RTX A4000 + NVIDIA GeForce RTX 5070 TiandGPU and VRAM: ... 32 GiB VRAM, even for the solo run that used one 16 GB card.Cause, as far as I can read it:
gpu_slug()slugsnames[0]and prefixeslen(names)x-, so mixed cards collapse into N copies of the first one.gpu_namescomes fromgpu_info_local(), which lists every GPU of the host (nvidia-smi), not the GPUs the server was started on (the config'sgpulist or--gpu).Expected: the GPUs the server actually used, named one by one when they differ, e.g.
rtx-5070-tifor the solo run andrtx-5070-ti-plus-rtx-a4000for the helper run.This matters for the shared format proposed in #713: a mixed-GPU or partial-GPU report would be filed under the wrong hardware.
@mmbeanz commented on GitHub (Oct 12, 2026):
Confirmed on a different mixed host (RTX 5060 Ti 16 GB + RTX 3060 12 GB, Linux, engine
7695859a= v0.1.43), plus two adjacent problems with the same "the report's hardware section lies" theme:gpu_slug()drops the second card.f"{len(names)}x-{s}"withsfromnames[0]only: an on-box run on this pair names the folder2x-rtx-5060-ti-...and silently loses the 3060. (Run remotely with no localnvidia-smi, it instead used the server's combinedgpu_namestring and named the folder correctly by accident.)--urlmode blends client and server fields incollect_machine(). GPU name, CPU and commit come from the server (correct), butram_gib,os,gpu_driverandcudacome from the client. Our remote runs recordedram_gib: 3.8(the client VM),gpu_driver: null,cuda: null— on a 64 GB box with driver 615.71.09. Anyone benching over the LAN gets a fabricated machine block.engine-log-excerpt.txtin--urlmode, where no such file is written.Workaround we used: hand-write the Hardware section from
nvidia-smi,lspci -vvunder load,dmidecodeandnvcc, and say so in the report (the auto block is marked unusable in ours). Our publishedresults.jsonmachine blocks are hand-corrected with the original wrong values listed inNOTES.md, so the tool bug stays visible in the artifacts: #2083.Drafted with AI assistance; I reviewed every line and ran the measurements myself.
@Niko1221 commented on GitHub (Oct 12, 2026):
Both causes are right. The part about listing only the cards the server was started on was already fixed after 0.1.43 (#1985: the bench reads the config's
gpulist or--gpu), so your solo run with"gpu": [1]will name the 5070 Ti alone on the next build. The folder and title part is fixed now: the slug names mixed cards one by one in the order they are listed (rtx-5070-ti-plus-rtx-a4000), and only identical cards get theNx-form (2x-rtx-a4000). What the bench cannot see is a helper card: an--expert-cache-device1helper is not in the config'sgpulist, so the helper run would still name only the 5070 Ti. Can you paste the helper config'sgpuvalue and its--expert-cache-device1line (without keys) so I can check which number the helper uses and whether the bench can add that card to the report? I will leave this open for that.@MinhHaDuong commented on GitHub (Oct 13, 2026):
Thanks. Here are the relevant fields from our v0.1.43 helper config (no keys):
The
gpukey is absent in the helper config (not[1]). In the solo config it is"gpu": [1]. We do not setCUDA_VISIBLE_DEVICESin the helper launch; with nogpukey, the server'schild_env()does not add it either.nvidia-smiindices on this host are 0 = RTX A4000 (16 GB), 1 = RTX 5070 Ti (16 GB). The helper engine log says:So the engine's CUDA0/main is the 5070 Ti and CUDA1/helper is the A4000; these are not the
nvidia-smiindices. The actual helper argument is--expert-cache-device1 auto, not an explicit card number.I also checked the benchmark fix in a disposable branch at upstream
a0116b2(which includes905a605, #2062), keeping our installed engine unchanged:tools/test_strata_bench.pytests pass.2x-rtx-a4000/ 32 GiB solo report. The new code reportsrtx-5070-ti/ 16 GiB.rtx-5070-ti-plus-rtx-a4000.This validates the report-selection/naming code, not GPU performance or a rebuilt engine. No new GPU benchmark was run.
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for the report. This is fixed in 0.2.0-beta (or an earlier release), and we're closing it as part of the tracker reset for 0.2.0-beta.
If it still happens on 0.2.0-beta, add the area prefix to the title ([Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]), put the Strata version and your hardware in the issue form fields, and comment
/reopen. A check runs and reopens it.