Repository navigation
qwen: opt-in static YaRN for extended context (--qwen-yarn-factor; ported from Enntity f465aaf6e/9b25f5759) - #274
Merged
Merged
Conversation
…b-test deny(warnings))
…he gate-weight doc, no field moves); revert the allow-list entry
This was referenced Oct 30, 2026
Contributor
Author
|
Heads-up: this added |
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.
Summary
4x512k,4x1m, which pass--qwen-yarn-factor) can run on main.spark-shared, credited in each message:f465aaf6efeat(qwen): add opt-in static YaRN for extended context9b25f5759fix(qwen): register YaRN MRoPE in the PDL launch policytypes_layer.rs; it's still 500 LoC, with no change to the cap allow-list.configure_qwen_yarnreturns early unlessmodel_type == "qwen4_exp" && yarn_factor != 0(qwen3_attention/yarn.rs:18).--qwen-yarn-factorunset leaves the factor at 0, so the rope path is unchanged.index_qk_projnow loads throughdense_auto. FP4-Local ships it as MXFP8, and the indexer reads BF16. The output-identity check below covers it.Test plan (pair: reiner + spark2, TP=EP=2; receipts in reiner's
~/code/night1027/out/yarn-4d871a3d9/)--qwen-yarn-factor=2), SparkQwen 0.4.0 spark config: this branch vs SparkQwen 0.4.0's engine (Enntity9b25f575, where the feature comes from).lp_dumpper-token prompt logprobs identical at 1.5K / 6K / 20K (26,912 tokens, max |Δ| 0.0000), and the greedy continuation matches.#[ignore](they need GB10 + PTX). clippy and fmt are clean.Part of #220. If data-angel opens his own PR for these commits, this one closes in favour of it.
Generated with Devin