mirror of
https://github.com/abetlen/llama-cpp-python.git
synced 2023-09-07 17:34:22 +03:00
Update type signature to allow for null pointer to be passed.
This commit is contained in:
@@ -184,7 +184,7 @@ _lib.llama_model_quantize.restype = c_int
|
|||||||
# will be applied on top of the previous one
|
# will be applied on top of the previous one
|
||||||
# Returns 0 on success
|
# Returns 0 on success
|
||||||
def llama_apply_lora_from_file(
|
def llama_apply_lora_from_file(
|
||||||
ctx: llama_context_p, path_lora: bytes, path_base_model: bytes, n_threads: c_int
|
ctx: llama_context_p, path_lora: ctypes.c_char_p, path_base_model: ctypes.c_char_p, n_threads: c_int
|
||||||
) -> c_int:
|
) -> c_int:
|
||||||
return _lib.llama_apply_lora_from_file(ctx, path_lora, path_base_model, n_threads)
|
return _lib.llama_apply_lora_from_file(ctx, path_lora, path_base_model, n_threads)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user