From 45900d2d18ec2103b4e97a044eac3230012ea709 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 08:33:35 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/backend/core/inference/llama_cpp.py | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/studio/backend/core/inference/llama_cpp.py b/studio/backend/core/inference/llama_cpp.py index d72f261e7d..a52fbdd91d 100644 --- a/studio/backend/core/inference/llama_cpp.py +++ b/studio/backend/core/inference/llama_cpp.py @@ -6486,13 +6486,18 @@ class LlamaCppBackend: # mmproj fallback is ruled out, so a VLM that recovers text-only is not # blocked by the fail-fast guard on its next load. Wider slice as the # GGML_ASSERT line can scroll past the [New LWP] dump. - _was_sched_abort = not self._cancel_event.is_set() and ( - # A scheduler abort captured before the no-spec fallback reset stdout, - _pre_fallback_sched_abort - # or one still visible in the current tail. - or ( - (self._is_signal_crash(_crash_rc) or self._is_abort_exit(_crash_rc)) - and self._is_sched_reserve_abort("\n".join(self._stdout_lines[-200:])) + _was_sched_abort = ( + not self._cancel_event.is_set() + and ( + # A scheduler abort captured before the no-spec fallback reset stdout, + _pre_fallback_sched_abort + # or one still visible in the current tail. + or ( + (self._is_signal_crash(_crash_rc) or self._is_abort_exit(_crash_rc)) + and self._is_sched_reserve_abort( + "\n".join(self._stdout_lines[-200:]) + ) + ) ) ) self._kill_process()