Repository navigation
Add Qwen4-Exp EngramGate and NGramHashMapping support - #32285
Merged
kunal-vaishnavi merged 39 commits intoSep 15, 2026
Merged
Conversation
Co-authored-by: kunal-vaishnavi <115581922+kunal-vaishnavi@users.noreply.github.com>
Co-authored-by: kunal-vaishnavi <115581922+kunal-vaishnavi@users.noreply.github.com>
Co-authored-by: kunal-vaishnavi <115581922+kunal-vaishnavi@users.noreply.github.com>
Co-authored-by: kunal-vaishnavi <115581922+kunal-vaishnavi@users.noreply.github.com>
Co-authored-by: kunal-vaishnavi <115581922+kunal-vaishnavi@users.noreply.github.com>
Co-authored-by: kunal-vaishnavi <115581922+kunal-vaishnavi@users.noreply.github.com>
Co-authored-by: kunal-vaishnavi <115581922+kunal-vaishnavi@users.noreply.github.com>
Co-authored-by: kunal-vaishnavi <115581922+kunal-vaishnavi@users.noreply.github.com>
Co-authored-by: kunal-vaishnavi <115581922+kunal-vaishnavi@users.noreply.github.com>
Co-authored-by: kunal-vaishnavi <115581922+kunal-vaishnavi@users.noreply.github.com>
Co-authored-by: kunal-vaishnavi <115581922+kunal-vaishnavi@users.noreply.github.com>
β¦eek-engram' into copilot/add-op-support-for-qwen-3-8-flash-next Co-authored-by: kunal-vaishnavi <115581922+kunal-vaishnavi@users.noreply.github.com>
Co-authored-by: kunal-vaishnavi <115581922+kunal-vaishnavi@users.noreply.github.com>
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
kunal-vaishnavi
changed the base branch from
main
to
copilot/add-op-support-for-deepseek-engram
August 26, 2026 22:15
β¦ids, head_offsets Co-authored-by: kunal-vaishnavi <115581922+kunal-vaishnavi@users.noreply.github.com>
This was referenced Nov 2, 2026
Open
This was referenced Nov 9, 2026
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.
Description
This PR expands
com.microsoftcontrib-op support needed by the Qwen4-Exp / Qwen3.8-Flash-Next text architecture, focused on Engram gating and n-gram hash mapping. TheGatedRMSNormactivation-mode changes were removed from this PR and are now covered separately by #32512.Changes include:
EngramGate: add optionalconv_norm_scaleinput and optionalgated_value_normedoutput for the normalized gated-value path.NGramHashMapping: add autoregressive decode and packed-sequence support with optionalpast_ids,present_ids,head_offsets,eos_token_id,segment_ids, andreset_on_eosbehavior.Motivation and Context
Qwen4-Exp requires n-gram embeddings and Engram-style gating variants that were not fully covered by the existing contrib operators. This PR extends the relevant operators incrementally while preserving prior behavior by default.
GatedRMSNormsigmoid/activation support is intentionally excluded here so that it can be reviewed and merged via #32512.