mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2857] [Feature]: Monitor: one widget per batch slot, so several requests at once each show their own speed #1150
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#1150
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 @street-tripy on GitHub (Oct 17, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2857
When
"parallel": Nis set, I want to see at a glance that the requests are really decodingtogether, each with its own rate — and which slot is reading, decoding or free.
Today the Monitor only shows one request's number: the header pill reads
Generating · 79.8 tok/s(the newest request) and the Model state card shows one request's progress and rate. Withtwo coding agents running I cannot tell from the page whether they are interleaved or one after
the other, so I end up watching the engine log's
strata batch: ... avg 2.00 rows, ... ms/windowline instead — which is a strange thing to have to do to answer "is it busy?".
What I would like: one widget per batch slot in the Monitor —
Worker 1,Worker 2, … — eachwith the slot's state (Reading / Decoding / Free), its own live tok/s, how many tokens it has
written and how long it has been in the slot, and that slot's context fill. The header pill
would name every decoding stream when more than one is decoding (
2 decoding · 80.4 + 76.1 tok/s).Workaround I use today:
curl /metricsand readlive.slotsby hand, or the engine log. Thedata is already there —
live.slotshas carriedslot,state,prompt_tokens,generated,elapsed_sandtok_sper slot since #465; the page simply does not show it.It should stay out of the way for everyone else: the card only appears when
/metricsreportslive.parallel, i.e. when the run config sets"parallel": N. Without it the Monitor isexactly what it is today.
I have a patch ready for this (4 files, 98 insertions:
index.html,app.js,app.css, plusthe same page test as
test_the_card_is_on_the_pageintest_monitor.py) and will open a PRagainst it if that is welcome.
@street-tripy commented on GitHub (Oct 17, 2026):
How it looks running two agents on one 4090
Three states of the card, same machine,
"parallel": 2:Each slot is a row that stretches the card, stacked in slot order — name, state, its own tok/s, what it has written, its context fill and the bar under it. The top row is the queue row: requests in flight outside a slot, and anything waiting for one.
The two numbers that needed care:
live.slots[].tok_sisgenerated / (now - first_token), so a slot opens at ~300 t/s and spends the next minute decaying to 35. The widget now mirrors the server's own window rule (RATE_WINDOW_S = 2.0,RATE_MIN_SPAN_S = 0.25, server.py:220-221) over consecutive samples, so it reads 35.0 from the start._control()(server.py:1704), and_controlparses the engine'sPPprogress lines and setsengine.prefill_tok_s_mean(server.py:1283-1288). One engine-wide figure, belonging to the slot that is reading, which is the only one — prompts are admitted one at a time. The cached prefix is not read, so it is the rate over the new tail tokens.Implemented in #2858. Screenshots are on my fork's
docs/workers-card-screenshotsbranch, so they stay out of the PR diff.@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.