Skip to content

Commit b4f2d96

Browse files
committed
Update Submodule vendor/llama.cpp f3e1828..db52540
Signed-off-by: JamePeng <jame_peng@sina.com>
1 parent 491ef59 commit b4f2d96

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

llama_cpp/mtmd_cpp.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -489,13 +489,13 @@ def mtmd_bitmap_set_id(
489489
# void * user_data,
490490
# mtmd_bitmap_lazy_callback callback);
491491
@ctypes_function_mtmd(
492-
"mtmd_input_chunks_get", [
492+
"mtmd_bitmap_init_lazy", [
493493
mtmd_context_p_ctypes,
494494
c_char_p,
495495
c_void_p,
496496
mtmd_bitmap_lazy_callback,
497497
], mtmd_bitmap_p_ctypes)
498-
def mtmd_input_chunks_get(
498+
def mtmd_bitmap_init_lazy(
499499
ctx: mtmd_context_p,
500500
id: c_char_p,
501501
user_data: c_void_p,
@@ -529,11 +529,11 @@ def mtmd_input_chunks_size(chunks: mtmd_input_chunks_p) -> c_size_t:
529529
@ctypes_function_mtmd(
530530
"mtmd_input_chunks_get", [
531531
mtmd_input_chunks_p_ctypes,
532-
c_int32,
532+
c_size_t,
533533
], mtmd_input_chunk_p_ctypes)
534534
def mtmd_input_chunks_get(
535535
chunks: mtmd_input_chunks_p,
536-
idx: c_int32,
536+
idx: c_size_t,
537537
/,
538538
) -> mtmd_input_chunk_p:
539539
...
@@ -726,7 +726,7 @@ def mtmd_image_tokens_get_decoder_pos(image_tokens: mtmd_image_tokens_p, pos_0:
726726
mtmd_input_chunks_p_ctypes,
727727
mtmd_input_text_p_ctypes,
728728
POINTER(mtmd_bitmap_p_ctypes),
729-
c_uint,
729+
c_size_t,
730730
],
731731
c_int32,
732732
)
@@ -735,7 +735,7 @@ def mtmd_tokenize(
735735
output: mtmd_input_chunks_p,
736736
text: mtmd_input_text_p,
737737
bitmaps: POINTER(mtmd_bitmap_p), # type: ignore
738-
n_bitmaps: c_uint,
738+
n_bitmaps: c_size_t,
739739
/,
740740
) -> c_int32:
741741
"""

vendor/llama.cpp

Submodule llama.cpp updated 82 files

0 commit comments

Comments
 (0)