Skip to content

Commit ceb544c

Browse files
committed
fix(types): correct llama_adapter_get_alora_invocation_tokens ctypes signature and use pointer for llama_token
Signed-off-by: JamePeng <jame_peng@sina.com>
1 parent 65f0d82 commit ceb544c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

llama_cpp/llama_cpp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2045,7 +2045,7 @@ def llama_adapter_get_alora_n_invocation_tokens(adapter: llama_adapter_lora_p, /
20452045
@ctypes_function(
20462046
"llama_adapter_get_alora_invocation_tokens",
20472047
[llama_adapter_lora_p_ctypes],
2048-
ctypes.c_uint64,
2048+
ctypes.POINTER(llama_token),
20492049
)
20502050
def llama_adapter_get_alora_invocation_tokens(adapter: llama_adapter_lora_p, /) -> CtypesPointer[llama_token]:
20512051
...

0 commit comments

Comments
 (0)