-
Notifications
You must be signed in to change notification settings - Fork 12k
server : vision support via libmtmd #12898
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 13 commits
Commits
Show all changes
79 commits
Select commit
Hold shift + click to select a range
466c6cd
server : (experimental) vision support via libmtmd
ngxson 2317e61
mtmd : add more api around mtmd_image_tokens
ngxson a46b6db
mtmd : add more api around mtmd_image_tokens
ngxson 7ac0b7b
mtmd : ability to calc image hash
ngxson 58c4767
shared_ptr for mtmd_image_tokens
ngxson d3c3e20
move hash to user-define ID (fixed)
ngxson a44029a
Merge branch 'xsn/mtmd_image_api' into xsn/server_mtmd
ngxson 5e6c7ba
abstract out the batch management
ngxson 78a76de
Merge branch 'master' into xsn/server_mtmd
ngxson c734b53
Merge branch 'master' into xsn/server_mtmd
ngxson a6a3653
small fix
ngxson f8bc466
refactor logic adding tokens to batch
ngxson f5420e1
implement hashing image
ngxson aae2e69
Merge branch 'master' into xsn/server_mtmd
ngxson cd11585
use FNV hash, now hash bitmap instead of file data
ngxson 8afa952
allow decoding image embedding to be split into batches
ngxson 989730c
rm whitespace
ngxson 19b9fe1
Merge branch 'master' into xsn/server_mtmd
ngxson 2df8c1a
disable some features when mtmd is on
ngxson b9ef895
fix --no-mmproj-offload
ngxson add9e21
mtmd_context_params no timings
ngxson 0f39770
Merge branch 'master' into xsn/server_mtmd
ngxson 58100b3
refactor server_inp to server_tokens
ngxson e82fea8
fix the failing test case
ngxson 4a4f35c
init
ngxson f6b6517
wip
ngxson e0806c2
Merge branch 'master' into xsn/mtmd_c_api
ngxson 82f4246
working version
ngxson f8c27b9
add mtmd::bitmaps
ngxson 3357961
add test target
ngxson 92d2404
rm redundant define
ngxson 111d5af
test: mtmd_input_chunks_free
ngxson 08d0f9c
rm outdated comment
ngxson a230804
Merge branch 'master' into xsn/mtmd_c_api
ngxson 863db31
fix merging issue
ngxson a0fb701
explicitly create mtmd::input_chunks
ngxson 6bc7a30
mtmd_input_chunk_copy
ngxson 4d842eb
add clone()
ngxson f91fb97
Merge branch 'master' into xsn/server_mtmd
ngxson 2cedd18
improve server_input struct
ngxson 3ee071c
clip : fix confused naming ffn_up and ffn_down
ngxson 3fbf0bd
rm ffn_i/o/g naming
ngxson f3870a6
rename n_embd, n_ff
ngxson ae83229
small fix
ngxson 0009f76
Merge branch 'master' into xsn/clip_ffn_up_down_fix
ngxson 246a4e0
no check n_ff
ngxson 57b288f
Merge branch 'xsn/clip_ffn_up_down_fix' into xsn/server_mtmd
ngxson 5f1fe1b
fix detokenize
ngxson 06cb595
Merge branch 'master' into xsn/mtmd_c_api
ngxson e9f7ff9
add const to various places
ngxson 049ae24
add warning about breaking changes
ngxson 91613c0
Merge branch 'xsn/mtmd_c_api' into xsn/server_mtmd
ngxson d3fece5
add c api
ngxson 076e3b9
helper: use mtmd_image_tokens_get_n_pos
ngxson 574d403
Merge branch 'xsn/mtmd_c_api' into xsn/server_mtmd
ngxson 036f682
Merge branch 'master' into xsn/server_mtmd
ngxson 01c623e
fix ctx_shift
ngxson a0f2562
fix name shadowing
ngxson 9149f39
Merge branch 'master' into xsn/server_mtmd
ngxson b353038
Merge branch 'master' into xsn/server_mtmd
ngxson 3304b44
more strict condition
ngxson 88461f2
support remote image_url
ngxson 4adce86
Merge branch 'master' into xsn/server_mtmd
ngxson a9b21f4
remote image_url log
ngxson 2f30530
add CI test
ngxson 5ffde38
do not log base64
ngxson aaebc33
add "has_multimodal" to /props
ngxson eeda075
remove dangling image
ngxson bef122e
speculative: use slot.cache_tokens.insert
ngxson 7282456
Merge branch 'master' into xsn/server_mtmd
ngxson 51afc0a
Apply suggestions from code review
ngxson f10fc56
rm can_be_detokenized
ngxson 689035c
on prmpt processing done, assert cache_tokens.size
ngxson b2906a9
handle_completions_impl returns void
ngxson abfd821
Merge branch 'master' into xsn/server_mtmd
ngxson f5fbc03
adapt the new web ui
ngxson 5fe8d72
update docs and hot topics
ngxson b8000fd
rm assert
ngxson 9ed430c
small fix (2)
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
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.