-
Notifications
You must be signed in to change notification settings - Fork 14.1k
model: support GLM4V vision encoder #18042
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
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
b24d366
convert ok
ngxson 7b13c8e
no deepstack
ngxson f3f8fb4
less new tensors
ngxson 4e81ab4
cgraph ok
ngxson 306f342
add mrope for text model
ngxson 6a6e301
faster patch merger
ngxson c78c2e3
add GGML_ROPE_TYPE_MRNORM
ngxson 037e76e
add support for metal
ngxson b4e65dc
move glm4v do dedicated graph
ngxson 7d6a1e0
convert: add norm_embd
ngxson 5047d8e
clip: add debugging fn
ngxson ad85426
working correctly
ngxson f00127e
fix style
ngxson 1514734
use bicubic
ngxson cadaedb
fix mrope metal
ngxson 4a0b89a
improve cpu
ngxson d00d11e
convert to neox ordering on conversion
ngxson f8aad31
revert backend changes
ngxson 8700158
force stop if using old weight
ngxson 33fb59a
support moe variant
ngxson c8fd94f
fix conversion
ngxson 785ccf4
fix convert (2)
ngxson 7d53c0f
Update tools/mtmd/clip-graph.h
ngxson b81c03c
Merge branch 'master' into xsn/glm4v
ngxson dd66aba
process mrope_section on TextModel base class
ngxson 35ad5a5
Merge branch 'master' into xsn/glm4v
ngxson f969d4f
resolve conflict merge
ngxson 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
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.
Because the 2 models (vision and non-vision) are mostly the same, except for the rope mode, so I was quite lazy not to duplicate it into a new arch (which adds involves quite a lot of copy-paste code)
I hope that we can somewhat allow de-duplicating some code via #18051
In the meantime, lmk if you're OK with keeping this hack, or a new arch is still preferable @ggerganov @CISC