From fc6110d491148308285e63b582d113442d8efd3e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 14:15:24 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../core/inference/llama_cpp_builder.py | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/studio/backend/core/inference/llama_cpp_builder.py b/studio/backend/core/inference/llama_cpp_builder.py index 5f57329003..c2c95fbd3b 100644 --- a/studio/backend/core/inference/llama_cpp_builder.py +++ b/studio/backend/core/inference/llama_cpp_builder.py @@ -123,21 +123,23 @@ class LlamaCppBuilder: # Build configuration: static binary, only needed targets, max parallelism cmake_args = [ - "-DBUILD_SHARED_LIBS=OFF", # Self-contained binary, no LD_LIBRARY_PATH needed - "-DGGML_NATIVE=ON", # Native CPU optimizations - "-DLLAMA_BUILD_TESTS=OFF", # Skip tests + "-DBUILD_SHARED_LIBS=OFF", # Self-contained binary, no LD_LIBRARY_PATH needed + "-DGGML_NATIVE=ON", # Native CPU optimizations + "-DLLAMA_BUILD_TESTS=OFF", # Skip tests "-DLLAMA_BUILD_EXAMPLES=OFF", # Skip examples (we build server explicitly) - "-DLLAMA_BUILD_SERVER=ON", # Ensure server target is available + "-DLLAMA_BUILD_SERVER=ON", # Ensure server target is available ] # Use ccache if available (27x faster rebuilds) ccache = shutil.which("ccache") if ccache: - cmake_args.extend([ - f"-DCMAKE_C_COMPILER_LAUNCHER={ccache}", - f"-DCMAKE_CXX_COMPILER_LAUNCHER={ccache}", - f"-DCMAKE_CUDA_COMPILER_LAUNCHER={ccache}", - ]) + cmake_args.extend( + [ + f"-DCMAKE_C_COMPILER_LAUNCHER={ccache}", + f"-DCMAKE_CXX_COMPILER_LAUNCHER={ccache}", + f"-DCMAKE_CUDA_COMPILER_LAUNCHER={ccache}", + ] + ) logger.info("Using ccache for faster compilation") # Detect CUDA