Revert "Merge pull request #521 from bretello/main"
This reverts commit07f0f3a386
, reversing changes made tod8a3ddbb1c
.
This commit is contained in:
parent
07f0f3a386
commit
401309d11c
1 changed files with 1 additions and 4 deletions
|
@ -423,10 +423,7 @@ _lib.llama_backend_free.restype = None
|
||||||
def llama_load_model_from_file(
|
def llama_load_model_from_file(
|
||||||
path_model: bytes, params: llama_context_params
|
path_model: bytes, params: llama_context_params
|
||||||
) -> llama_model_p:
|
) -> llama_model_p:
|
||||||
result = _lib.llama_load_model_from_file(path_model, params)
|
return _lib.llama_load_model_from_file(path_model, params)
|
||||||
if result is None:
|
|
||||||
raise Exception(f"Failed to load model from {path_model}")
|
|
||||||
return result
|
|
||||||
|
|
||||||
|
|
||||||
_lib.llama_load_model_from_file.argtypes = [c_char_p, llama_context_params]
|
_lib.llama_load_model_from_file.argtypes = [c_char_p, llama_context_params]
|
||||||
|
|
Loading…
Add table
Reference in a new issue