mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1975] [Regression] v0.1.43 adaptive overlap reduces IQ3_S decode ~26% on RTX 5090 #785
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#785
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 @oal on GitHub (Oct 11, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1975
[Regression] v0.1.43 adaptive overlap reduces IQ3_S decode ~26% on RTX 5090
Hardware / setup
--adapt-every 1 --adapt-swaps 160 --adapt-decay 0.97Results
After upgrading from v0.1.42, typical decode fell from roughly 160–200 TPS to 100–130 TPS.
Controlled tests within v0.1.43, changing only
STRATA_ADAPT_OVERLAP:STRATA_ADAPT_OVERLAP=1STRATA_ADAPT_OVERLAP=0Protocol: four engine starts in on/off/off/on order; calibration’s three prompts prefixed with synthetic documents at 4K and 100K tokens; temperature 0; 512-token output cap; one warm-up round followed by two measured rounds. No competing agent workload.
Output-identical 512-token samples also showed 128 TPS enabled vs 189–195 TPS disabled, so differing answers do not explain the entire gap.
Disabling overlap restored live API code tests to 215–222 TPS at 100K, without recalibration or downgrade.
Could the new adaptive-overlap synchronization path regress on this hardware?
@oal commented on GitHub (Oct 11, 2026):
Follow-up: the evidence points to CUDA's lazily created callback worker inheriting the decoding host's single-CPU affinity.
ExpertPoolpins the host to CPU 0 on this machine.adapt()submits its firstcudaLaunchHostFunclater; the worker can inherit CPU 0.Standalone reproduction on CUDA 13.3.33, 200 unprofiled callback/spin handshakes:
Smaller proposed fix: warm up and synchronize one no-op CUDA host callback before constructing ExpertPool. Draft PR #1983 adds a 12-line Linux/CUDA opt-in (
STRATA_ADAPT_CALLBACK_WARMUP=1), the standalone reproducer and a benchmark report. Per-layer callbacks/waits, swap selection and residency updates remain unchanged; no default changes.New normal/warm-up/warm-up/normal inference tests, same binary/calibration, fixed
--pcie-frac 0.4, temperature 0, 512-token caps, no competing inference workload, warm-up rounds excluded:Adaptive-gate waiting fell from 4.357 ms/window to 0.000343 ms/window (including warm-up). These are a separate paired suite, not replacements for the original 126/170 TPS figures.
Limitations: inference A/B used an experimental binary with its GPU-signal alternative disabled in every arm; the minimal PR patch compiled separately. Some outputs matched, but full-suite bit-exactness is not claimed because cache capacities and existing-path outputs also varied. Clean minimal-PR inference validation, other GPUs/drivers and HIP/SYCL builds remain pending, hence the draft status. Production remains on the original overlap-off workaround.
@Niko1221 commented on GitHub (Oct 12, 2026):
Thank you for the report and for digging into it (including the callback timing), oal. It is the same cause as #1964: the host thread is pinned to one CPU, the CUDA callback thread is created later and inherits that CPU, and the adaptive overlap's per-layer callbacks then fight the host's spin-wait.
The fix is in 0.1.43.1 (out now), built on your PR: the callback thread is started before the host is pinned (on by default, STRATA_ADAPT_CALLBACK_WARMUP=0 turns it off), and the overlap's per-layer signal no longer needs a driver callback thread at all (a 4-byte stream-ordered copy into pinned memory; STRATA_ADAPT_SIGNAL=host brings the host functions back). Swaps, residency and answers do not change. On a 20-core RTX 3060 desktop the warm-up alone gave 36.5 -> 46.5 tok/s and the pinned-copy signal brought it to 56.5 = overlap off.
I am keeping #1975 open until you have confirmed the update on the 5090; #1964 carries the same fix.
One more change in 0.1.43.1: after more reports (#2010) the overlap is opt-in again on every machine (
STRATA_ADAPT_OVERLAP=1turns it on, PR #2011). With the fix above, turning it on is safe on desktops again; please measure it on yours.@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for the report. This is fixed in 0.2.0-beta (or an earlier release), and we're closing it as part of the tracker reset for 0.2.0-beta.
If it still happens on 0.2.0-beta, add the area prefix to the title ([Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]), put the Strata version and your hardware in the issue form fields, and comment
/reopen. A check runs and reopens it.