-
Notifications
You must be signed in to change notification settings - Fork 12.2k
Add Granite Vision Support #11794
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
Add Granite Vision Support #11794
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
7db1c51
Add super wip scripts for multimodal granite gguf
alex-jw-brooks f6fbfc2
Add example for converting mmgranite to gguf
alex-jw-brooks 8b60107
remove hardcoded path
alex-jw-brooks 72c53dd
Add vision feature layer to gguf params
alex-jw-brooks 4212f37
Clean up llava surgery and remove name substitution hacks
alex-jw-brooks 77ce6f2
Add transformers llava next tensor name mapping
alex-jw-brooks 3fc67a9
Make siglip / openclip mutuall exclusive
alex-jw-brooks e3c791c
Fix projector linear substitution
alex-jw-brooks 2d45e0d
Fix linear 2 substitution index
alex-jw-brooks 3e3eebc
Increase max flattened gridpoints to 64
alex-jw-brooks 1ceef1a
Fix hardcoded concat for multiple feature layers
alex-jw-brooks c788a45
Pull vision feature layers out of gguf keys
alex-jw-brooks 6725d6c
fix num gridpoints and use all layers
alex-jw-brooks 403575c
Avoid dropping last image encoder layer in llava models
alex-jw-brooks 095b836
Use 10 for max number of patches
alex-jw-brooks ff00515
Standardize vision feature layers
alex-jw-brooks eceee7f
Cleanup logs
alex-jw-brooks be204f0
Update comment for vision feature layer init
alex-jw-brooks 4588b90
Update notes for alternative to legacy llm conversion script
alex-jw-brooks 264c2ca
Fix notes rendering
alex-jw-brooks 86b43da
Add v prefix to vision feature layer log
alex-jw-brooks eb54540
Use current defaults for feature layer
alex-jw-brooks 243a899
Use constant for max gridpoints / feat layers, style fixes
alex-jw-brooks ee2cf62
clarify non-negative feature layers
alex-jw-brooks b5735ba
Remove CLIP_API from func signature
alex-jw-brooks 3670d0e
USE MAX_IMAGE_FEATURE_LAYERS const in layer calc
alex-jw-brooks b973f37
Clarify feature layers are non negative ints and not uint
alex-jw-brooks 82e8852
Fix condition for reading feature layers
alex-jw-brooks ee6fb4d
pop last llava layer when feature layers are unset
alex-jw-brooks 07e7716
Fix unset vision layer 0
alex-jw-brooks 5f69fdb
Update examples/llava/clip.cpp
alex-jw-brooks ab522d7
Reenable assertion for out of bounds get_rows
alex-jw-brooks bb3e03a
Use std vector for gridpoints and feature layers
alex-jw-brooks 7bab305
Caculate max feature layer at load time
alex-jw-brooks 6557523
Include base patch for granite vision allocation
alex-jw-brooks cce01b8
Fix trailing whitespace
alex-jw-brooks 188bfb0
Add max num patches = 10 back for minicpmv
alex-jw-brooks 8676316
Use unordered set to store feature layers
alex-jw-brooks 49c0863
Use max feature layer for postnorm
alex-jw-brooks bec9ef1
Apply suggestions from code review
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
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.
Uh oh!
There was an error while loading. Please reload this page.