[PR #5339] [GUI] Monitor: per-card tiles for a split run (GPU load, VRAM, temp, Power, PCIe) #5391

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

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/5339
Author: @ilfarpro
Created: 11/5/2026
Status: 🔄 Open

Base: main ← Head: f-web-monitor-gpu-tiles


📝 Commits (10+)

  • c514c96 Telemetry: each card carries its own PCIe link and traffic, and load, power and PCIe history per card. A
  • 583a1a0 Monitor: a split run's GPU load tile becomes one named chart per card. The one mean spark hid an idle card
  • 05d2df9 Monitor: the GPU load tile really shows one chart per card. The mean chart stayed painted behind the cards'
  • b06f018 Monitor: a split run's Power tile names each card's draw under the total. One figure said the rig pulled
  • 3f10d90 Monitor: a split run's PCIe tile lists each card's own link and traffic. The tile showed one Gen and width
  • 21ad11a Monitor: a tile's own chart stays with its figure, above the card rows. In the Power and PCIe split tiles the
  • e4126d3 Monitor: the GPU load tile of a split run drops the mean figure. The mean of the cards hides the very
  • dfaac27 Monitor: the Power and PCIe tiles of a split run chart each card, not the total. One chart of the summed
  • fe8e95a Monitor: the card rows name the card without the "GPU n" prefix. The rows are already in the cards' own
  • b0af712 Monitor: the GPU load rows keep the "GPU n" prefix after all. Dropping it everywhere was more than the

📊 Changes

7 files changed (+352 additions, -38 deletions)

View changed files

📝 serve/server.py (+2 -1)
📝 serve/telemetry.py (+34 -8)
📝 serve/test_server.py (+27 -5)
📝 serve/web/app.css (+10 -1)
📝 serve/web/app.js (+90 -17)
📝 tools/webtest/browser_test.mjs (+163 -0)
📝 tools/webtest/mock.mjs (+26 -6)

📄 Description

Problem and result

This PR improves information on tiles for 2+ GPU deployments.

Before

Screenshot 2026-11-05 at 20 11 41

When a model is split across several cards, the Monitor tab said almost nothing about the cards
themselves. GPU load, GPU temp and PCIe showed one aggregate figure (a mean, the hottest card, the first
card's link); per-card numbers were crammed into the tile's sub as one growing line
("GPU 0 13.1 GB · GPU 1 12.2 GB · GPU 2 12.7 GB ...") that wrapped mid-name; Power displayed a summed cap
("140 W of 620 W limit") that belongs to no card, while a person tunes limits per card and a card quietly
capped at 170 W beside one at 450 W looked healthy; VRAM's total shared its line with the crammed list;
and the grid stretched short tiles (Speed, CPU, Disk read) next to tall ones into boxes of empty air.

After

Screenshot 2026-11-05 at 20 02 28

In a split run each card gets its own row in the GPU load, VRAM, GPU temp, Power and PCIe tiles -
with its own chart where the server sends its own history. Power says what each card takes of its own cap
("85 W" over "450 W limit"), PCIe its own traffic over its own link, VRAM what each card holds of its own
size. The figures a person still reads together stay: the watts all cards pull (what the wall and the PSU
see) and total VRAM. Every metric tile is now as tall as its own content, with one even padding. A run
with one card is exactly what it was: same payload, same tiles, byte for byte.

none

Approach

The split's data was already mostly sampled and thrown away by aggregation. serve/telemetry.py now lets
each card answer for itself: its own power_limit and PCIe fields (pcie_rx_mb, pcie_gen,
pcie_gen_max, pcie_width) travel in hardware["gpus"], and when a run is split, history["gpus"]
carries one short history per card (util, power, pcie_rx_mb, temp) so each row can chart its own. A single
card sends exactly what it sent before (no gpus key in history, same fields in hardware).
On the page one row mechanism (metricRows) serves all five tiles; it rebuilds rows only when the set of
cards changes and redraws readings each poll. The figure and its sub step aside only where the aggregate
misleads (mean load, hottest temp, one card's link, the summed cap); where the aggregate is real - total
draw, total VRAM - it stays as the figure with its history chart. Row charts of one tile share the
busiest card's scale so cards compare by eye. .metrics gets align-items: start, so no tile is
stretched. New payload fields are additive: an old page on a new server ignores them, a new page on an old
server shows "–" for missing per-card readings. No engine file is touched.

Validation

Passed:

  • python -m pytest serve/test_server.py -q at 256f3704 (macOS 27.0.1 arm64, Python 3.15.2): 359 passed,
    516 subtests passed, including two fake sysfs cards reporting their own caps and per-card history, and
    the one-card case asserting gpus is absent from history.
  • node tools/webtest/browser_test.mjs "monitor:" at 256f3704 (headless Chrome 157.0.8103.38, Node
    v26.10.0, 1280px): 7 passed - the new per-card tests for GPU load, Power, PCIe, GPU temp, VRAM and the
    content-height layout (each tile's box measured against its own content bottom plus its computed
    padding, in a split run and with one card).
  • node tools/webtest/browser_test.mjs (full page suite) at 256f3704: 38 passed, 2 failed (below).
  • Real hardware: the branch was installed from this fork's checkout on a test server with two GPUs and a
    split run was served; the Monitor showed one row per card with its own cap, link and memory, and the
    layout was checked by eye (reporter: the author; exact cards and model noted in the PR discussion).

Failed:

  • list: chats are kept, found, renamed, deleted with an Undo, and survive a reload and
    rewind: edit and send again here, with an Undo that brings everything back in the full page suite.
    Both fail identically at the base main (ffa80d73) on the same machine, pre-existing and unrelated.

Not run:

  • CUDA, HIP, SYCL and Metal engine builds: no engine file changed, so the builds stay as the release's.
  • npm test in apps/host: the desktop app was not touched.
  • A one-card run against the updated server on real hardware: covered here by the page's one-card tests
    and the telemetry test that keeps the payload unchanged, not on a machine.

Limits

  • Per-card PCIe readings depend on what the driver reports; a card without a source shows "–" rather
    than a guess.
  • VRAM rows carry no history chart (the server keeps per-card history for util, power, temp and PCIe
    only); the tile's own total chart stays.
  • Row layout was verified at 1280px (four columns) and at the two-column and one-column breakpoints
    visually; very narrow widths keep the pre-existing single-column behaviour.
  • The per-card rows are new UI language (name over number, quiet cap/size lines); if the design wants a
    different order, metricRows makes it a per-tile one-liner.

🔄 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/5339 **Author:** [@ilfarpro](https://github.com/ilfarpro) **Created:** 11/5/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `f-web-monitor-gpu-tiles` --- ### 📝 Commits (10+) - [`c514c96`](https://github.com/Niko1221/Strata/commit/c514c96cf79d7f8a6058c5861e3c4eb45bc46400) Telemetry: each card carries its own PCIe link and traffic, and load, power and PCIe history per card. A - [`583a1a0`](https://github.com/Niko1221/Strata/commit/583a1a09ef45dd605537a82380f972a6f6f25f66) Monitor: a split run's GPU load tile becomes one named chart per card. The one mean spark hid an idle card - [`05d2df9`](https://github.com/Niko1221/Strata/commit/05d2df94fddf56121fbaacde14c2b3879c16b49a) Monitor: the GPU load tile really shows one chart per card. The mean chart stayed painted behind the cards' - [`b06f018`](https://github.com/Niko1221/Strata/commit/b06f0185b185b81ee7a8cdb15071c76bedd450bf) Monitor: a split run's Power tile names each card's draw under the total. One figure said the rig pulled - [`3f10d90`](https://github.com/Niko1221/Strata/commit/3f10d90df04eee265e78b8f1fc7cb2d0b8a67ed7) Monitor: a split run's PCIe tile lists each card's own link and traffic. The tile showed one Gen and width - [`21ad11a`](https://github.com/Niko1221/Strata/commit/21ad11a3b5221f579c9869843f4900d33bc40ef3) Monitor: a tile's own chart stays with its figure, above the card rows. In the Power and PCIe split tiles the - [`e4126d3`](https://github.com/Niko1221/Strata/commit/e4126d3855808ccad24f7341bb2fcaad78d66e03) Monitor: the GPU load tile of a split run drops the mean figure. The mean of the cards hides the very - [`dfaac27`](https://github.com/Niko1221/Strata/commit/dfaac27a8971d49a226906520901369664585e1a) Monitor: the Power and PCIe tiles of a split run chart each card, not the total. One chart of the summed - [`fe8e95a`](https://github.com/Niko1221/Strata/commit/fe8e95a533ee84b863121d6e8f799e3b6cdbded4) Monitor: the card rows name the card without the "GPU n" prefix. The rows are already in the cards' own - [`b0af712`](https://github.com/Niko1221/Strata/commit/b0af712ca07a76054923ac43ff41f32433b42484) Monitor: the GPU load rows keep the "GPU n" prefix after all. Dropping it everywhere was more than the ### 📊 Changes **7 files changed** (+352 additions, -38 deletions) <details> <summary>View changed files</summary> 📝 `serve/server.py` (+2 -1) 📝 `serve/telemetry.py` (+34 -8) 📝 `serve/test_server.py` (+27 -5) 📝 `serve/web/app.css` (+10 -1) 📝 `serve/web/app.js` (+90 -17) 📝 `tools/webtest/browser_test.mjs` (+163 -0) 📝 `tools/webtest/mock.mjs` (+26 -6) </details> ### 📄 Description ## Problem and result This PR improves information on tiles for 2+ GPU deployments. #### Before <img width="2030" height="957" alt="Screenshot 2026-11-05 at 20 11 41" src="https://github.com/user-attachments/assets/9545f725-29b3-45d7-9b95-a4f2b031b490" /> When a model is split across several cards, the Monitor tab said almost nothing about the cards themselves. GPU load, GPU temp and PCIe showed one aggregate figure (a mean, the hottest card, the first card's link); per-card numbers were crammed into the tile's sub as one growing line ("GPU 0 13.1 GB · GPU 1 12.2 GB · GPU 2 12.7 GB ...") that wrapped mid-name; Power displayed a summed cap ("140 W of 620 W limit") that belongs to no card, while a person tunes limits per card and a card quietly capped at 170 W beside one at 450 W looked healthy; VRAM's total shared its line with the crammed list; and the grid stretched short tiles (Speed, CPU, Disk read) next to tall ones into boxes of empty air. #### After <img width="2030" height="957" alt="Screenshot 2026-11-05 at 20 02 28" src="https://github.com/user-attachments/assets/78a9b04a-7712-4265-8b8c-5283504823ab" /> In a split run each card gets its own row in the GPU load, VRAM, GPU temp, Power and PCIe tiles - with its own chart where the server sends its own history. Power says what each card takes of its own cap ("85 W" over "450 W limit"), PCIe its own traffic over its own link, VRAM what each card holds of its own size. The figures a person still reads together stay: the watts all cards pull (what the wall and the PSU see) and total VRAM. Every metric tile is now as tall as its own content, with one even padding. A run with one card is exactly what it was: same payload, same tiles, byte for byte. ## Related discussion none ## Approach The split's data was already mostly sampled and thrown away by aggregation. `serve/telemetry.py` now lets each card answer for itself: its own `power_limit` and PCIe fields (`pcie_rx_mb`, `pcie_gen`, `pcie_gen_max`, `pcie_width`) travel in `hardware["gpus"]`, and when a run is split, `history["gpus"]` carries one short history per card (util, power, pcie_rx_mb, temp) so each row can chart its own. A single card sends exactly what it sent before (no `gpus` key in history, same fields in hardware). On the page one row mechanism (`metricRows`) serves all five tiles; it rebuilds rows only when the set of cards changes and redraws readings each poll. The figure and its sub step aside only where the aggregate misleads (mean load, hottest temp, one card's link, the summed cap); where the aggregate is real - total draw, total VRAM - it stays as the figure with its history chart. Row charts of one tile share the busiest card's scale so cards compare by eye. `.metrics` gets `align-items: start`, so no tile is stretched. New payload fields are additive: an old page on a new server ignores them, a new page on an old server shows "–" for missing per-card readings. No engine file is touched. ## Validation **Passed:** - `python -m pytest serve/test_server.py -q` at 256f3704 (macOS 27.0.1 arm64, Python 3.15.2): 359 passed, 516 subtests passed, including two fake sysfs cards reporting their own caps and per-card history, and the one-card case asserting `gpus` is absent from history. - `node tools/webtest/browser_test.mjs "monitor:"` at 256f3704 (headless Chrome 157.0.8103.38, Node v26.10.0, 1280px): 7 passed - the new per-card tests for GPU load, Power, PCIe, GPU temp, VRAM and the content-height layout (each tile's box measured against its own content bottom plus its computed padding, in a split run and with one card). - `node tools/webtest/browser_test.mjs` (full page suite) at 256f3704: 38 passed, 2 failed (below). - Real hardware: the branch was installed from this fork's checkout on a test server with two GPUs and a split run was served; the Monitor showed one row per card with its own cap, link and memory, and the layout was checked by eye (reporter: the author; exact cards and model noted in the PR discussion). **Failed:** - `list: chats are kept, found, renamed, deleted with an Undo, and survive a reload` and `rewind: edit and send again here, with an Undo that brings everything back` in the full page suite. Both fail identically at the base `main` (ffa80d73) on the same machine, pre-existing and unrelated. **Not run:** - CUDA, HIP, SYCL and Metal engine builds: no engine file changed, so the builds stay as the release's. - `npm test` in `apps/host`: the desktop app was not touched. - A one-card run against the updated server on real hardware: covered here by the page's one-card tests and the telemetry test that keeps the payload unchanged, not on a machine. ## Limits - Per-card PCIe readings depend on what the driver reports; a card without a source shows "–" rather than a guess. - VRAM rows carry no history chart (the server keeps per-card history for util, power, temp and PCIe only); the tile's own total chart stays. - Row layout was verified at 1280px (four columns) and at the two-column and one-column breakpoints visually; very narrow widths keep the pre-existing single-column behaviour. - The per-card rows are new UI language (name over number, quiet cap/size lines); if the design wants a different order, `metricRows` makes it a per-tile one-liner. --- <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#5391
No description provided.