mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#4112
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/2545
Author: @qiuzan2001
Created: 10/15/2026
Status: ❌ Closed
Base:
main← Head:chief-serve/bench-remote-machine📝 Commits (1)
31df2a5bench: a server on another PC (--url) is not described with this PC's RAM, OS, driver and CUDA (#2062)📊 Changes
2 files changed (+87 additions, -5 deletions)
View changed files
📝
tools/strata_bench.py(+43 -5)📝
tools/test_strata_bench.py(+44 -0)📄 Description
On #2062: the remaining point from the second comment (the folder/title and GPU-selection parts were fixed in
905a6058and #1985).What it changes. With
--urlof a Strata server on another PC,collect_machine()intools/strata_bench.pyfilled the report's machine block partly from the client: the RAM total (
ram_gib: 3.8from the client VM on a 64 GBbox, in #2062), the OS, and the GPU driver, CUDA version and card list from the client's
nvidia-smi. A newon_this_pc(base)says whether the URL's host is this PC: a loopback or unspecified address, or an address this PCcan bind to (its LAN address, another network card; no reverse DNS). When it is not:
/metricshardware_static.gpu_name,/v1/statusmachine.gpu.total_mib),through the existing #2001 branch; this PC's cards are not read;
/v1/statusmachine.ram.total_gib;nullin results.json, and the README says "not read" (the server does not report them);the CPU name and threads were already the server's, and are no longer filled in from the client when it lacks them.
What it leaves alone. A server on this PC (
127.0.0.1, which is every run where the bench starts the serveritself,
localhost, or this PC's own address):collect_machine()reads exactly what it read before. The README'sOS line only adds
or 'not read', which never shows when the OS is read. Still taken from the bench's side: theproject version and commit (they describe the checkout the bench runs from) and the Python version. The helper-card
question in the issue (
--expert-cache-device1 auto) is not touched.How it was checked.
tools/test_strata_bench.py:test_a_server_on_another_pc_is_not_described_with_this_pc_2062: a fake server answered at a TEST-NET-1 address,and this PC with a card of the same name, 16 GiB and 3.8 GiB RAM: the report has the server's 12 GiB and 64 GiB,
and no driver, CUDA or OS. The same server at 127.0.0.1 still gets this PC's reads. A full
main()run's READMEsays
- OS: not read; GPU driver: not read; CUDA: not read. Onmainit fails on the assertion (16384 / 3.8 GiBrecorded).
test_on_this_pc: loopback (v4, v6, v4-mapped),0.0.0.0,localhost, this PC's outgoing address -> this PC;192.0.2.7and an.invalidname -> not.python3 tools/test_strata_bench.py: 19 tests OK.tools/test_setup_bench_tips.py,tools/test_windows_amd_gpu.py:OK. (
tools/test_strata_mcp.pyhas 4 failures inStartStoponupstream/mainon this box too, with orwithout this change.)
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.