From d431f3cf42e10e2e6fca560e7c4a402e0280b65e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 12 Jun 2026 05:07:24 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docker/fetch_llama_prebuilt.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/docker/fetch_llama_prebuilt.py b/docker/fetch_llama_prebuilt.py index ab8f084dd2..e359ba997f 100644 --- a/docker/fetch_llama_prebuilt.py +++ b/docker/fetch_llama_prebuilt.py @@ -126,13 +126,22 @@ def main() -> None: # backend is a dlopen'd plugin, so --version works anywhere). out = subprocess.run( [os.path.join(install_dir, "llama-server"), "--version"], - capture_output = True, text = True, timeout = 120, + capture_output = True, + text = True, + timeout = 120, ) banner = (out.stdout + out.stderr).strip() print(banner.splitlines()[0] if banner else "(no version banner)") if "version" not in banner: - raise SystemExit(f"FAIL: llama-server --version did not report a version: rc={out.returncode}") - for required in ("llama-quantize", "convert_hf_to_gguf.py", "gguf-py", "UNSLOTH_PREBUILT_INFO.json"): + raise SystemExit( + f"FAIL: llama-server --version did not report a version: rc={out.returncode}" + ) + for required in ( + "llama-quantize", + "convert_hf_to_gguf.py", + "gguf-py", + "UNSLOTH_PREBUILT_INFO.json", + ): if not os.path.exists(os.path.join(install_dir, required)): raise SystemExit(f"FAIL: {required} missing from {install_dir}") print(f"OK: llama.cpp {tag} ({bundle_name}) installed at {install_dir}")