mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4968] [GUI] Monitor: name the model, add lifetime averages, and the speed min and max #5270
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#5270
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/4968
Author: @noahark
Created: 11/2/2026
Status: 🔄 Open
Base:
main← Head:monitor-model-card📝 Commits (1)
d2da860[GUI] Monitor: name the model, add lifetime averages, and the speed min and max📊 Changes
11 files changed (+182 additions, -9 deletions)
View changed files
📝
serve/web/app.css(+16 -0)📝
serve/web/app.js(+85 -9)📝
serve/web/locales/de.json(+9 -0)📝
serve/web/locales/en.json(+9 -0)📝
serve/web/locales/es.json(+9 -0)📝
serve/web/locales/fr.json(+9 -0)📝
serve/web/locales/ja.json(+9 -0)📝
serve/web/locales/ko.json(+9 -0)📝
serve/web/locales/pt.json(+9 -0)📝
serve/web/locales/ru.json(+9 -0)📝
serve/web/locales/zh.json(+9 -0)📄 Description
The problem. The Monitor tab shows everything the model is doing - speed, VRAM, temperature, requests - but never says which model it is. The name only appears on the About tab, a click away. And every number on the eight cards is instantaneous: the average decode and prefill speed since the server started, which is the number people quote when they report a speed, is nowhere to be read (it is only spelled out at the foot of the request list, in one sentence).
What this does. A "Model" card, first in the grid (what the model is reads before what it is doing):
since - N requests);min ... - max ... t/seach) - an average hides the spread a sparkline cannot: one long prefill and one streamed answer sit in the same number today;titlebox cannot be styled;Display only: no server, API or engine change - every field already arrives in
GET /metrics(engine.model,engine.max_context,engine.version,totals.*, and per requestid,decode_tok_s,prompt_ms,prompt_tokens,reused). The min and max are computed in the page: it keeps the requests it has seen, keyed by the request id the server already sends, and pulls the whole kept list once per page view with the existingmetrics?requests=all- a poll alone carries only the last 12, and the tooltip says how many requests the numbers cover.Every new string goes through
tr()and was added to all nine catalogs, sopython tools/web_i18n.pyis clean. (The eight translations beyond English and Chinese are drafted here, not by native speakers - a proofread pass is welcome.)Approach. Three kinds of files:
serve/web/app.js(a small[data-tip]tooltip box shared by the page, aMETRICSentry placed first, a template branch - the card carries facts and tooltips instead of a sparkline - a fill inrenderMonitor(), and for the min and max a request window keyed by the server's own request id: seeded with onemetrics?requests=all, added to from every poll, rebuilt when the server's totals window moves, i.e. a restart),serve/web/app.css(the box styled from the card tokens, plus the card's own rules, all on tokens the styles already use), andserve/web/locales/*.json(nine new keys each: eightmonitor.model.*andmonitor.speed.rangefor the min-max tooltip).Validation.
qwen3.8-flash-next-ud-iq4-xs-triple - 256K context - engine v0.1.55; after 52 requests: decode avg 108.0 t/s, prefill avg 1,601 t/s, 44,275 tokens in per request, 91.4% of prompt tokens reused - recomputed by hand from the same/metricspayload, in agreement. The min and max lines, over the 137 requests the server then kept: decodemin 79.8 - max 171.9, prefillmin 62 - max 3,474- recomputed fromGET /metrics?requests=allwith the same formulas, in agreement. Both themes and the 2-column and 1-column media queries render correctly.node --check serve/web/app.js;python tools/web_i18n.pyexits 0 (all nine catalogs carry exactly the new keys and their placeholders).python -m unittest serve.test_web_i18n- 6 tests OK.tests/terminaland theapps/hostUI tests (nothing they cover is touched - no server or host code changed).Limits. The card label and the fact names stay English, as the other eight cards' labels already do - translating the whole Monitor view is #4417's scope; what this change adds is already
tr()-ed and catalogued, and will follow the language when that lands. The name is the served alias, not a file path. The averages cover the whole run and do not reset on a model unload/load. The min and max cover the requests the server keeps (the last 500 at most, not the whole run), say so in their tooltip with the count, and a page opened fresh learns the list with one extra request.backdrop-filteris the first use of it in these files: without it (or with it off) the box stays readable, the blur is decoration on top of the 70% surface.Screenshots: I will add them in a follow-up comment (light and dark, and one tooltip open) if this is picked up.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.