-
Notifications
You must be signed in to change notification settings - Fork 22.8k
qwen4exp: follow up fixes #27941
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ggerganov
merged 8 commits into
ggml-org:master
from
danielhanchen:qwen4exp/followup-fixes-squashed
Sep 1, 2026
Merged
qwen4exp: follow up fixes #27941
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
3dd5505
qwen4exp: follow up fixes
danielhanchen 4cbf055
-kvu NaN collapse fix
danielhanchen 9bfa91c
indexer cache ext.x/ext.y restore fix
danielhanchen c76ea01
kv-cells: rename seq_set to seq_get_all
danielhanchen 4ebbc37
memory-hybrid-idx: implement set_input_qsa on the memory class
danielhanchen 52bc9ff
tests: check that a sequence state survives a save/restore round-trip
danielhanchen 21c13c4
tests: give the synthetic qwen4exp a PLE so the state test bites
danielhanchen c961cd3
llama: disable -sm tensor for qwen4exp
danielhanchen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we can extend the
tests-save-load-statewith a test that would demonstrate this issue onmaster. Though from the description in unslothai#143, it might be difficult to figure out such a test. Low prio, but mentioning just in case you can think of something simple.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, 02eb201 is a good idea.
However, even without this patch, the test still succeeds. So it's missing something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@danielhanchen In case you missed this comment. The problem seems to be that the generated qwen4 dummy model by
test-llama-archsdoes not have PLE. This makeshas_cell_ext()return false:llama.cpp/src/llama-kv-cache.cpp
Lines 1824 to 1827 in 02eb201
So the added test is not effective. I think we have to extend the dummy model to have valid PLE data.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change the test to actually invoke PLE if that helps