Repository navigation
[Fix] kimi-k3: Preserve pipeline graph bank inputs and bound chunk profiling - #43604
Merged
Merged
Conversation
ch-wan
force-pushed
the
cheng/hot-fix/kimi-k3-pipeline-graphs
branch
from
October 11, 2026 09:51
6be9152 to
c6c7ec9
Compare
ch-wan
force-pushed
the
cheng/hot-fix/kimi-k3-pipeline-graphs
branch
from
October 14, 2026 19:27
c6c7ec9 to
e207db2
Compare
This was referenced Oct 14, 2026
ch-wan
marked this pull request as ready for review
October 14, 2026 19:47
ch-wan
requested review from
Ying1123,
hnyls2002,
merrymercy and
xiezhq-hermann
as code owners
October 14, 2026 19:47
ch-wan
force-pushed
the
cheng/hot-fix/kimi-k3-pipeline-graphs
branch
from
October 15, 2026 09:03
e207db2 to
160ec2c
Compare
Closed
4 tasks done
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.
This PR was part of the following stack (oldest at bottom; all merged):
Motivation
The text-only Kimi K3 wrapper does not expose its pipeline layer range to the model runner. A receiving stage consequently captures an empty inherited attention-residual bank: block-aligned cuts produce incorrect decode results, and cuts inside a block fail graph capture. Dynamic chunk profiling can also allocate requests longer than the request-to-token mapping, leaving KV slots unreachable during release.
Changes
Expose the text model's actual start/end layers. Bound complete profiling requests by model context and request mapping capacity, preserve the existing 1.25x chunk probe range when capacity allows, and release each prepared profiling request even if its forward fails. The prefill budget continues to constrain predicted chunks.
Validation
GPU results are from the prior revision. Removing the prefill-budget cap leaves profiling lengths unchanged for those configurations: their 8,192-token context or 1.25x chunk limit is tighter. GPU comparisons were not rerun for this profiler-only revision.
The two fixes are rebased onto main
72730d6360with unchanged patch IDs. The adapter PRs above this one build on these fixes. CPU regressions were rerun on the resulting stack; prior B200 comparisons were not rerun.Current Stack Validation
All three updated adapter commits passed pre-commit independently; the two K3 commits are unchanged. The final stack CPU suite passed 481 tests and 7,409 subtests, with 21 hardware-specific skips. Independent common-layer and Inkling boundary suites passed 372 tests / 7,315 subtests and 386 tests / 7,329 subtests, respectively.
Four new regressions fail on the prior implementation and pass with the fixes. They cover terminal export releasing state retained by an old output handle (including a failing final norm), terminal reader binding for written/pending/fused output with two contexts, rejection and cleanup when binding changes read capabilities, and rejection of bindable update results on both immediate and deferred exit paths. Existing tests cover the converted containers, short-convolution positions and stateless V4 terminal reads.
The earlier callback-selection, transformed-reader and row-transport context regressions remain covered. No GPU tests or formal performance benchmarks were rerun for these fixes; prior GPU evidence retains its stated limitations.
Landing
Rebased onto main
71a17dbc24for merge. Validation above predates this rebase; no tests or benchmarks were rerun as part of landing.CI States
Latest PR Test (Base): 🚫 Run #38710132047
Latest PR Test (Extra): 🚫 Run #38710132022
Latest PR Test (AMD ROCm 10): ❌ Run #38710131970