mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #5364] [Engine] Keep concurrent request accounting and prompt progress correct #5404
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#5404
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/5364
Author: @cennac
Created: 11/6/2026
Status: 🔄 Open
Base:
main← Head:fix/rdna3-monitor-accounting-5306-5307-5318📝 Commits (3)
4b534b8Serving metrics: keep prompt progress and rates on their request1a96d64Serving metrics: count admission and slot decode work exactly once2266854Fix external cache and prefill accounting across prompt yields📊 Changes
8 files changed (+534 additions, -36 deletions)
View changed files
📝
docs/DETAILS.md(+5 -0)📝
serve/server.py(+91 -27)📝
serve/test_ds_parallel.py(+48 -1)📝
serve/test_parallel.py(+192 -3)📝
serve/test_replicas.py(+35 -1)📝
serve/test_request_accounting.py(+28 -1)➕
serve/test_yield_accounting.py(+132 -0)📝
serve/web/app.js(+3 -3)📄 Description
Problem and result
When several requests share a batch engine, the Monitor could show prompt progress, prefill rate, and decode rate from a different request. Batch admission time could also be counted twice or omitted, and a missing native decode time could be reported as zero. Prompt reads that yielded to another request were not included consistently in the final request totals.
After this change, Monitor progress and per-request rates remain attached to the selected request. Batch admission and slot decode figures are combined once, unknown native figures remain unknown, and multiple yielded prompt legs are included in the final accounting. The aggregate decode rate remains available for the overall service view.
Approach
BADM 0orBDONE, then combine its timing with the slot timing exactly once.Validation
Passed on the upstream branch:
python -m pytest -q serve/test_request_accounting.py serve/test_yield_accounting.py— 18 passed.python -m pytest -q serve/test_parallel.py serve/test_replicas.py serve/test_ds_parallel.py— 94 passed, 2 skipped./healthreturnedloaded=true; the service continued to report request ids, prompt progress, prefill rate, and per-request decode rate.The production service used for the runtime check was Qwen3.8-Flash-Next-IQ3_XXS with the existing dual-GPU MTP configuration. This pull request changes server accounting and Monitor data; it does not change model weights, sampling, engine binaries, or GPU kernels.
Limits
The upstream test environment does not include a dual RX 7900 XTX hardware run. The runtime values above are from the local machine; the unit and fake-engine regression tests run on the branch itself.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.