8000 Update type signature to allow for null pointer to be passed. · jm12138/llama-cpp-python@95c0dc1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 95c0dc1

Browse files
committed
Update type signature to allow for null pointer to be passed.
1 parent 453e517 commit 95c0dc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama_cpp/llama_cpp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def llama_model_quantize(fname_inp: bytes, fname_out: bytes, itype: c_int) -> c_
184184
# will be applied on top of the previous one
185185
# Returns 0 on success
186186
def llama_apply_lora_from_file(
187-
ctx: llama_context_p, path_lora: bytes, path_base_model: bytes, n_threads: c_int
187+
ctx: llama_context_p, path_lora: ctypes.c_char_p, path_base_model: ctypes.c_char_p, n_threads: c_int
188188
) -> c_int:
189189
return _lib.llama_apply_lora_from_file(ctx, path_lora, path_base_model, n_threads)
190190

0 commit comments

Comments
 (0)
0