mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1863] fix: Complete the synchronous decode timing breakdown #735
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#735
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 @SanghunYun on GitHub (Oct 10, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1863
What do you want to do?
Include expert swap application and synchronous adaptive-worker join time in the serial
--servebreakdown printed bySTRATA_DECODE_TIMING=1. The total already includes these intervals, butverify + commit/emit + draftdoes not, which makes the decode time harder to interpret.Observed on v0.1.42
I sent the same public request in release → instrumented build → release order, using v0.1.42 (
61b3fb5d). The two unmodified release runs showed:The values inside the verify parentheses describe verify itself; they are not added again.
Intervals to include
apply_pending()branchadapt_thr.join()Direct timers around these locations recorded 5.37ms/window for swap application and 6.91ms/window for join waiting. Together with the existing sections, they accounted for that run's total of 53.76ms/window. Swap application includes GPU completion synchronization, RAM exchange commit and residency updates. The join timer measures the caller's wait, not the worker's whole parallel runtime.
My current workaround is to subtract the three sections from the total. Showing these intervals in execution order on the same line would make the breakdown easier to read directly from the log.
Reproduction conditions
61b3fb5d), CUDA sm_86 source build; RTX 3060 12GB, 32GB system RAM, Ubuntu 26.04.k8v4,--spec 3 --mtp-max-t 3 --spec-min-p 0.5.STRATA_DECODE_TIMING=1, synchronous adaptation (--adapt-asyncunset). Fresh process and the same static expert profile per run; profile saving,STRATA_RAM_ADAPTand GPU verify profiling off.STRATA_PREFILL_CPU_SHARE=0,STRATA_IQ_MT_MIN=1.docs/DETAILS.md, sent through the upstream Python server: 4,489 input tokens, 256 output tokens, 115 windows. Zero reused prompt tokens; OS page cache not flushed.The accompanying PR includes the request helper and the timing changes. The instrumented build was run on CUDA and also compiled and linked as HIP Release. AMD GPU inference was not tested.
Original release timing line
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.