From 40719c4a6f754d633bd3c2712af6e458629e7adf Mon Sep 17 00:00:00 2001 From: Roland Tannous Date: Wed, 25 Feb 2026 11:06:22 +0000 Subject: [PATCH] fix: correct vision.py patch path to unsloth/models/vision.py + add VLM processor diagnostic --- setup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.sh b/setup.sh index 13b8f42326..3e6b41db9f 100755 --- a/setup.sh +++ b/setup.sh @@ -173,6 +173,10 @@ install_python_stack() { LLAMA_CPP_DST="$(pip show unsloth-zoo | grep -i '^Location:' | awk '{print $2}')/unsloth_zoo/llama_cpp.py" curl -sSL "https://raw.githubusercontent.com/unslothai/unsloth-zoo/refs/heads/main/unsloth_zoo/llama_cpp.py" \ -o "$LLAMA_CPP_DST" + # Patch: override vision.py with fix from unsloth PR: https://github.com/unslothai/unsloth/pull/4091 until next pypi release + VISION_DST="$(pip show unsloth | grep -i '^Location:' | awk '{print $2}')/unsloth/models/vision.py" + curl -sSL "https://raw.githubusercontent.com/unslothai/unsloth/80e0108a684c882965a02a8ed851e3473c1145ab/unsloth/models/vision.py" \ + -o "$VISION_DST" echo " Installing studio dependencies..." run_quiet "pip install studio" pip install --no-cache-dir -c "$SINGLE_ENV_CONSTRAINTS" -r "$REQ_ROOT/studio.txt" echo " Installing data-designer dependencies..."