mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #457] /metrics: expose the speculative draft counts (offered / accepted) for llm-visuals #208
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#208
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 @blaakstone on GitHub (Oct 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/457
Hi, I run Strata 0.1.34 with Qwen3.8-Flash-Next IQ3_S at 262K on my RTX 5090 behind llama-swap (119-135 tok/s decode, ~5,000 tok/s prefill, 0.8 s to resume a 71K conversation), thank you for it.
I monitor it live with llm-visuals, a terminal dashboard that polls Strata's
/metricsevery second (its Strata adapter is on the branchfeature/strata). Throughput, context, layers and requests work; the speculative decoding panel stays empty: "Strata does not report draft acceptance".The server already has the MTP draft counts:
serve/server.pyreads them from the engine's DONE line (self.last.update(drafts_accepted=..., drafts_offered=...)), returns them in the responsetimingsasdraft_n/draft_n_accepted(#83), and the server log prints them ("drafts accepted 601 of 1181").They are missing from
GET /metrics: not inlive, not in therequestshistory, not intotals(checked on 0.1.34). From the responsetimingsI only get the figure once a request has finished; what I would like to see in llm-visuals is the acceptance while the model generates.Proposal (additive, no change to existing fields):
live, while generating:"drafts_offered"and"drafts_accepted"so far for the current request (if the engine can report them before DONE);requestsentry: the same two counts for the finished request (nullwhen the engine did not report them, asdraft_nis omitted today);totals: running sums of both.@Niko1221 commented on GitHub (Oct 2, 2026):
Added in 0.1.35: each
/metricsrequest entry hasdrafts_offeredanddrafts_accepted(null when the engine didn't report them), andtotalskeeps their running sums. Live counts during a request need an engine protocol change, so they're for later. Thanks for the idea!