Repository navigation
Conversation
vuuihc
force-pushed
the
codex/hicache-buffer-idle
branch
from
September 17, 2026 03:08
4116278 to
1d3ed5e
Compare
vuuihc
marked this pull request as ready for review
September 17, 2026 05:05
vuuihc
requested review from
Ying1123,
hnyls2002,
merrymercy and
xiezhq-hermann
as code owners
September 17, 2026 05:05
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Buffer-only HiCache must not report the scheduler as fully idle while D2H or H2D pipeline work is still in flight. Otherwise,
flush_cache()can reset cache state before transfer acknowledgements and staging ownership have drained.The production predicate was completed on
mainby #37567 and #37883 while this PR was in draft. This PR now focuses on preserving that behavior with registered regression coverage and documenting the full idle contract.Modifications
No transfer, allocator, or cache implementation is changed.
Tests
Unit tests
Result:
The old predicate reproduces the regression for both missing states:
Formatting, Ruff, isort, codespell, registered-test validation, and
git diff --checkpass.Ascend A3 lifecycle validation
Configuration: Qwen3-0.6B, Ascend backend, buffer-only HiCache, file storage.
Observed real transfer activity:
Results:
Both flush calls waited for the corresponding pipeline state to drain before succeeding. Temporary tracing was removed after validation.
Checklist
main