Repository navigation
test(compile): cover stateful MoE and shared attention replay - #10
Open
yu-chen-code wants to merge 1 commit into
Open
yu-chen-code wants to merge 1 commit into
yu-chen-code wants to merge 1 commit into
Conversation
yu-chen-code
force-pushed
the
feat-graph-model-state
branch
from
November 9, 2026 11:24
4136aa7 to
0c367cb
Compare
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.
What type of PR is this?
/kind feature
What does this PR do / why do we need it:
Refreshed on 2026-11-09 against fork/upstream master
a6be99d3. PR1421 is now merged upstream, so its duplicate prerequisite has been removed. Current head:0c367cb0d1c730fc186e038664c7c4bee6b3b803; retained feature/dependency commits:0c367cb0. Git range-diff confirms unchanged feature patches. Focused CPU regression on this exact head: 106 JUnit records, 0 failures, 0 errors. The isolated refresh environments now include master-required PEFT 0.21.2 and accelerate 1.13.0; pip check passes. All numerical runs and older source hashes below are pre-refresh evidence. NPU precision training and formal upstream CI were not rerun for this rebase.Add focused joint-graph regression coverage for state that changes across training steps. The tests use the existing V4.1 router and shared compressed-attention state carrier. They check routing auxiliary loss, backward token counters, optimizer-step bias updates, gradient accumulation, and one shared-bank producer with multiple differentiable consumers.
Run the same cases with activation checkpointing disabled, full, and selective. The tests ensure recomputation does not count routed tokens twice and that replay consumes current model buffers. The incremental commit after the shared prerequisite is test-only coverage; it changes no eager or compiler production behavior and adds no new state-management abstraction.
The shared-state fixture covers the carrier's producer/consumer gradient contract. It does not establish complete DeepSeek-V4.1 Full/Reindex/Reuse attention, mHC, LI, or end-to-end DSA support.
Validation:
Exact source manifests, commands, before/after tensor receipts and raw failures are retained under T020 runs/20261106-graph-capability-spikes. No formal upstream gate is requested or claimed.
Which issue(s) this PR fixes:
None.
Code review checklist [illustration]: