Repository navigation
Conversation
…the kernel contract ERNIE 5.5's DSA layers attend over each row's indexer picks and its 128-position sliding window, laid out by vLLM-ERNIE's merge_swa_topk as one list a row. tf_ernie55_window_merge (a new ernie5_5_index image) writes that list for the sparse MLA from topk_rows' out and picked: the row's picks up to picked, held to [0, k] and ending at the first -1, then positions seq - min(seq, 128) .. seq - 1, then -1, with the row's count. The count comes from picked rather than from the position, and the picks stop at their first -1, so an entry the MLA reads is never a -1, even where picked counts past the picks a row holds. window.zig is the host's list; its tests hold it to the vendor's rule where picked is the indexer's count, and to the stop where picked is past a row's valid picks. The contract (ernie5_5-index, also in kernel-contract) asks for the host's lists to the byte, and every row's entries to be rows below seq, ascending to seq - 1 with its picks below the window, from decode rows at the first position and deep in context, across seq = 128 and seq = k + 128, to prompt chunks and the 1M context's last rows. A negative picked and two oversized ones, past a row of k picks and past a shorter row, are planted. The two controls, every row taking all k picks and the window's oldest position dropped, go red. Nothing launches it yet. gradient-serving.tsv re-pins zig/src/cuda/kernels.zig.
Owner
Author
|
CI red on this tip (zig); the PRs land the usual way. |
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.
CI for a landing train: #5211 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.