mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1933] [CLOSED] serve: aggregate batch request timings #3763
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#3763
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/1933
Author: @constantindjonkam
Created: 10/11/2026
Status: ❌ Closed
Base:
main← Head:fix/batch-request-timings📝 Commits (1)
a2c1599serve: aggregate batch request timings📊 Changes
2 files changed (+143 additions, -34 deletions)
View changed files
📝
serve/server.py(+121 -33)📝
serve/test_server.py(+22 -1)📄 Description
What this fixes
A request that moves through solo generation, batch admission, batch windows, and possibly back to solo was reporting only the final native segment. This produced inflated prompt rates and single-step decode rates for concurrent requests.
This change:
timings.prompt_nand Prometheus prompt totals from the engine'sprompt_readfield when available;Fixes the behavior described in issues #1869 and #1870.
Validation
python -m py_compile serve/server.pypython -m unittest serve.test_server.BatchRequestStats serve.test_request_accounting -vpython -m unittest serve.test_parallel -vpython -m unittest discover -s serve -p 'test_*.py' -q(692 tests; one existing order-sensitive sampler-thread test was flaky in the full run and passed in isolation)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.