From f9aa818ca8b87fe3bc8f8e786faa2171ff6f67a4 Mon Sep 17 00:00:00 2001 From: Anas Khan Date: Wed, 15 Jul 2026 12:53:06 +0530 Subject: [PATCH] fix: name unsloth_vllm_standby parameter in vLLM standby error (#7089) * fix: name unsloth_vllm_standby parameter in vLLM standby error FastBaseModel.from_pretrained's vLLM-standby guard raised "UNSLOTH_VLLM_STANDBY is True, but UNSLOTH_VLLM_STANDBY is not set to 1", naming the environment variable in both clauses. The value that is True is the unsloth_vllm_standby parameter, not the env var, so the message was self-contradictory. Name the parameter in the first clause, matching the sibling guard in FastLlamaModel.from_pretrained. Signed-off-by: Anas Khan <83116240+anxkhn@users.noreply.github.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Remove vLLM standby error message test --------- Signed-off-by: Anas Khan <83116240+anxkhn@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: danielhanchen --- unsloth/models/vision.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsloth/models/vision.py b/unsloth/models/vision.py index 3b5af39e69..729c191e83 100644 --- a/unsloth/models/vision.py +++ b/unsloth/models/vision.py @@ -739,7 +739,7 @@ class FastBaseModel: if unsloth_vllm_standby and os.environ.get("UNSLOTH_VLLM_STANDBY", "0") != "1": raise RuntimeError( - "Unsloth: UNSLOTH_VLLM_STANDBY is True, but UNSLOTH_VLLM_STANDBY is not set to 1!" + "Unsloth: `unsloth_vllm_standby` is True, but environment variable `UNSLOTH_VLLM_STANDBY` is not set to 1!" ) if model_types is None: