dashboard: live figures read 0 when the lane is idle

Operator ruling 2026-10-20, on the three real-time figures: the decode-step
headline, the acceptance tile, and the Speculation live figure.

The defect was the FREEZE. Each of these held its last value while the lane
did nothing, so a stale number kept wearing a current name -- a reader
checking the dashboard at rest read a measurement of work that was not
happening. Judge slice 10 named the failure mode in review.

The fix follows the page's own convention rather than inventing one: every
other live figure on this page shows 0 when the lane is idle (tps() renders
0 as "0", and the engine publishes 0 rates when nothing runs), so 0 IS the
idle signal here. The dash stays reserved for a quantity that has no value
at all -- no draft head, no engine attached.

- Decode step: the tile reads this window's step time; a window with no
  decode steps reads 0. The engine's own best/recent floor figures below it
  are the engine's windows and stay put.
- Acceptance tile: drafted nothing this poll -> 0. Dash only when there is
  no draft head at all.
- Speculation live figure: same condition, same 0.

Sparklines are unaffected: setMetric() pushes nothing for a null sample, so
history stays honest across idle gaps. The restart path needs no special
case -- a restart poll has no delta, so it reads the idle 0 -- and the
pooled-ring clear inside accWindow stays, so a pre-restart pair never pools
with a post-restart one.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
This commit is contained in:
Memoria (Noblistic) authored and StillDeadcode committed 2026-10-21 09:27:48 +02:00
1 parent 1cf31320a9
commit 61e3131262
2 files changed
+33 -23

No files matched your search

+2 -2
View File
@@ -339,8 +339,8 @@ std::string Metrics::render() const {
"Fastest single-sequence decode step window this process has run, in seconds "
"PER STEP. A mean over 32 consecutive single-stream steps, not a stopwatch "
"reading. Not seconds per token: with speculation a step can emit several "
"tokens, so divide by the accepted-per-step figure to compare against a "
"token rate. Resets on restart.", L, g_step_best_.get());
"tokens, so per-token time is this divided by (1 + accepted per step), "
"not by the accepted figure alone. Resets on restart.", L, g_step_best_.get());
if (g_step_recent_.get() > 0)
w.gauge("radiance:decode_step_seconds_recent",
"Most recent single-sequence decode step window, in seconds PER STEP (see "