[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
05184ad15a
commit
7c8f1eb40d
1 changed files with 1 additions and 3 deletions
|
|
@ -80,9 +80,7 @@ def _load_model_source() -> str:
|
|||
two load entry points, not the entire module).
|
||||
"""
|
||||
parts = [inspect.getsource(llama_cpp_module.LlamaCppBackend.load_model)]
|
||||
impl = getattr(
|
||||
llama_cpp_module.LlamaCppBackend, "_load_model_impl_locked", None
|
||||
)
|
||||
impl = getattr(llama_cpp_module.LlamaCppBackend, "_load_model_impl_locked", None)
|
||||
if impl is not None:
|
||||
parts.append(inspect.getsource(impl))
|
||||
return "\n".join(parts)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue