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#4302
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/2858
Author: @street-tripy
Created: 10/17/2026
Status: ❌ Closed
Base:
main← Head:monitor-workers-card📝 Commits (3)
29f7d06serve: the Monitor's Workers card - one widget per batch slot, each with its own tok/s (#465)273ef51serve: a slot's tok/s is a window rate, not the mean since its first tokenfb38287serve: the Workers card reads as rows, and a request outside a slot gets a row of its own📊 Changes
4 files changed (+228 additions, -3 deletions)
View changed files
📝
serve/test_monitor.py(+54 -0)📝
serve/web/app.css(+26 -0)📝
serve/web/app.js(+141 -3)📝
serve/web/index.html(+7 -0)📄 Description
Title
Issue: Resolves #2857
Summary
With
"parallel": Nthe server runs several requests at once, but the Monitor still shows onerequest's numbers: the header pill reads the newest request's rate and the Model state card
shows one request's progress. There is no way to see on the page whether the requests are
decoding together or one after the other.
This adds a Workers card to the Monitor — one widget per batch slot with its own state, live
tok/s, tokens written and context fill — and makes the header pill name every decoding stream
(
2 decoding · 80.4 + 76.1 tok/s). It is opt-in by construction: the card is in the markuphidden and is shown only when
/metricsreportslive.parallel, which the server sets only fora run config with
"parallel": N.What changed
serve/web/index.html(+7): theworkers-cardmarkup after Model state,hiddenbydefault, with
workers-sum,workersandworkers-note.serve/web/app.js(+63 / -1):workerWidgetsFor()builds one widget per slot the first timeand reuses it, so state and progress transitions animate instead of being replaced every
second;
renderWorkers()fills it from the existinglive.slotsand is called fromrenderMonitor(). The pill line gained a branch: when two or more slots are decoding it liststheir rates; otherwise it is the old text.
serve/web/app.css(+17): the card's styles, from existing design tokens only (no newcolors, fonts or selectors outside
.worker*).serve/test_monitor.py(+11):test_the_workers_card_is_on_the_page_and_opt_in— the samepage assertion as
test_the_card_is_on_the_page, plus that the card shipshiddenand isgated on
live.parallel.Extra Notes
serve/weband this test. No server, setup or engine file changed, sothere is nothing to build: no CUDA, HIP or SYCL file is touched.
/metricspayload withoutparallel: the card stays hidden, no widget is built, and the pill readsGenerating · 79.8 tok/sas before. Withparallel: 2both slots render with their own rate.No console errors in either state.
python -m unittest serve.test_monitor serve.test_runconfig→ 20 tests, all pass(19 on
main+ the new one).node --check serve/web/app.jsis clean.live.slotsasslots_view()inserve/server.pyalreadypublishes it; the server and its tests are untouched.
poll(), the way the requesttable already is; each widget keeps its own context bar against
engine.max_context.serve/web/monitor.html), the Chatand About tabs, and every hardware card.
per card on a layer split); no functional overlap — happy to rebase if either lands first.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.