[PR #2111] [CLOSED] [Benchmark] strata_bench: read CUDA UMD version, storage and GPU power/PCIe detail #3865

Closed
opened 2026-11-07 15:31:18 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2111
Author: @JoShMiQueL
Created: 10/12/2026
Status: ❌ Closed

Base: main ← Head: bench-tool-machine-fields


📝 Commits (1)

  • 11be9a5 strata_bench: read CUDA UMD version, storage and GPU power/PCIe detail

📊 Changes

1 file changed (+60 additions, -10 deletions)

View changed files

📝 tools/strata_bench.py (+60 -10)

📄 Description

Problem and result

The community report came out with fields missing or wrong:

  • Current drivers print CUDA UMD Version: 13.4 in nvidia-smi, not CUDA Version:, so machine.cuda came out null and the README said CUDA: not read.
  • Where it was read, it was the newest CUDA the driver supports, labelled as if the engine had been built with it (raised by autemetry-james in this thread).
  • Storage always said not measured, the GPU line carried no power limit, PCIe link, state or temperature, and Windows 11 reported as Windows 10 because platform.release() is still 10.

After the change a report reads CUDA (driver supports up to): 13.4; engine built for CUDA 13.0, names the storage device, adds a GPU detail (after the run, near idle) line with power limit and draw, PCIe gen x width, pstate and temperature, and says Windows 11. The measurement path (HTTP suite, statistics, results.json) is untouched: this changes what a report prints, not what it measures.

none

Approach

  • Accept both header forms from nvidia-smi and label the value as the driver's ceiling.
  • Read machine.engine_build from the engine's BUILD.json next to the exe, so driver ceiling and build toolkit are both in the report; no engine change.
  • Take the extra nvidia-smi fields from the GPUs the server uses (the selection of #1985), and label the line (after the run, near idle): collect_machine runs a second time after the suite, so they are end-of-run, near-idle figures (qiuzan2001).
  • Storage: Get-PhysicalDisk on Windows, system_profiler on macOS, lsblk -e 7 on Linux (-e 7 drops the snap loop devices that flooded the line on a stock Ubuntu, qiuzan2001).

Validation

Passed:

  • python tools/test_strata_bench.py on 8f7fd37d, rebased on main e88ee39d (0.2.0-beta): 20 tests, OK. The new checks cover the rendered report line with both CUDA numbers, the storage line, the GPU detail line, both nvidia-smi CUDA header forms, and the power/PCIe/pstate/temperature parsing.
  • python tools/test_windows_amd_gpu.py and python tools/test_bench_host.py, same revision: 5 and 5 tests, OK.
  • Live read on this PC (RTX 4060 Ti 16 GB, driver 616.92, Windows 11 build 26200): gpu_info_local() returned power_limit_w=165.00, power_draw_w=20.25, pcie=gen4 x8, pstate=P3, temp_c=45, cuda=13.4; storage_info() returned Samsung SSD 990 EVO Plus 2TB SSD/NVMe; the OS label resolves to Windows 11.
  • ruff check tools/strata_bench.py tools/test_strata_bench.py: the same 4 findings as on main, no new ones (3 of them are the port NameError below).
  • A report generated with this change, all fields filled, is in #2112.

Failed:

  • python tools/strata_bench.py --config strata-coder-iq1_m.json --port 9 --runs 1 --quiet on main e88ee39d ends in NameError: name 'port' is not defined (tools/strata_bench.py:1040), from #2330. It is a separate problem and is not touched here; it blocks a default run that starts its own server on 0.2.0-beta.

Not run:

  • The macOS (system_profiler) and Linux (lsblk -e 7) storage branches: no such machine here, they are read, not executed.
  • A full bench suite on 0.2.0-beta: blocked by the port NameError above. The tests drive the --url path against a fake server, not a real engine.

Limits

  • The GPU detail line is sampled after the suite, near idle; it is not a load figure and the label says so.
  • engine_build needs a BUILD.json next to the exe; without one the field is left out rather than guessed.
  • This changes what a report prints. The measurements in #2112 were taken on engine 0.1.43 and are not re-measured here.

🔄 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/2111 **Author:** [@JoShMiQueL](https://github.com/JoShMiQueL) **Created:** 10/12/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `bench-tool-machine-fields` --- ### 📝 Commits (1) - [`11be9a5`](https://github.com/Niko1221/Strata/commit/11be9a5745af9f145b8e45465d8c5a972bde916f) strata_bench: read CUDA UMD version, storage and GPU power/PCIe detail ### 📊 Changes **1 file changed** (+60 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `tools/strata_bench.py` (+60 -10) </details> ### 📄 Description ## Problem and result The community report came out with fields missing or wrong: - Current drivers print `CUDA UMD Version: 13.4` in `nvidia-smi`, not `CUDA Version:`, so `machine.cuda` came out null and the README said `CUDA: not read`. - Where it was read, it was the newest CUDA the **driver** supports, labelled as if the engine had been built with it (raised by autemetry-james in this thread). - Storage always said `not measured`, the GPU line carried no power limit, PCIe link, state or temperature, and Windows 11 reported as `Windows 10` because `platform.release()` is still `10`. After the change a report reads `CUDA (driver supports up to): 13.4; engine built for CUDA 13.0`, names the storage device, adds a `GPU detail (after the run, near idle)` line with power limit and draw, PCIe gen x width, pstate and temperature, and says `Windows 11`. The measurement path (HTTP suite, statistics, `results.json`) is untouched: this changes what a report prints, not what it measures. ## Related discussion none ## Approach - Accept both header forms from nvidia-smi and label the value as the driver's ceiling. - Read `machine.engine_build` from the engine's `BUILD.json` next to the exe, so driver ceiling and build toolkit are both in the report; no engine change. - Take the extra nvidia-smi fields from the GPUs the server uses (the selection of #1985), and label the line `(after the run, near idle)`: `collect_machine` runs a second time after the suite, so they are end-of-run, near-idle figures (qiuzan2001). - Storage: `Get-PhysicalDisk` on Windows, `system_profiler` on macOS, `lsblk -e 7` on Linux (`-e 7` drops the snap loop devices that flooded the line on a stock Ubuntu, qiuzan2001). ## Validation **Passed:** - `python tools/test_strata_bench.py` on `8f7fd37d`, rebased on `main` `e88ee39d` (0.2.0-beta): 20 tests, OK. The new checks cover the rendered report line with both CUDA numbers, the storage line, the GPU detail line, both nvidia-smi CUDA header forms, and the power/PCIe/pstate/temperature parsing. - `python tools/test_windows_amd_gpu.py` and `python tools/test_bench_host.py`, same revision: 5 and 5 tests, OK. - Live read on this PC (RTX 4060 Ti 16 GB, driver 616.92, Windows 11 build 26200): `gpu_info_local()` returned `power_limit_w=165.00`, `power_draw_w=20.25`, `pcie=gen4 x8`, `pstate=P3`, `temp_c=45`, `cuda=13.4`; `storage_info()` returned `Samsung SSD 990 EVO Plus 2TB SSD/NVMe`; the OS label resolves to `Windows 11`. - `ruff check tools/strata_bench.py tools/test_strata_bench.py`: the same 4 findings as on `main`, no new ones (3 of them are the `port` NameError below). - A report generated with this change, all fields filled, is in #2112. **Failed:** - `python tools/strata_bench.py --config strata-coder-iq1_m.json --port 9 --runs 1 --quiet` on `main` `e88ee39d` ends in `NameError: name 'port' is not defined` (`tools/strata_bench.py:1040`), from #2330. It is a separate problem and is not touched here; it blocks a default run that starts its own server on 0.2.0-beta. **Not run:** - The macOS (`system_profiler`) and Linux (`lsblk -e 7`) storage branches: no such machine here, they are read, not executed. - A full bench suite on 0.2.0-beta: blocked by the `port` NameError above. The tests drive the `--url` path against a fake server, not a real engine. ## Limits - The GPU detail line is sampled after the suite, near idle; it is not a load figure and the label says so. - `engine_build` needs a `BUILD.json` next to the exe; without one the field is left out rather than guessed. - This changes what a report prints. The measurements in #2112 were taken on engine 0.1.43 and are not re-measured here. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:31:18 +07:00
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#3865
No description provided.