Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Mac torch floor upgrade run: find the uv install.sh kept under the St…
…udio home

[skip ci]
  • Loading branch information
danielhanchen committed Nov 27, 2026
commit acbff670afa3b8754099b600c378beb2222e6e1a
7 changes: 6 additions & 1 deletion .github/scripts/mac-torch-floor-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ PY
}

_seed() {
_uv=$(command -v uv || echo "$HOME/.local/bin/uv")
# install.sh keeps its uv under the Studio home when UNSLOTH_STUDIO_HOME is set, so look there first.
_uv=""
for _c in "$UNSLOTH_STUDIO_HOME/uv/uv" "$(command -v uv || true)" "$HOME/.local/bin/uv"; do
if [ -n "$_c" ] && [ -x "$_c" ]; then _uv="$_c"; break; fi
done
[ -n "$_uv" ] || { echo "no uv found under $UNSLOTH_STUDIO_HOME/uv, PATH or ~/.local/bin" >&2; exit 1; }
"$_uv" pip install --python "$VPY" "torch==$1" "torchvision==$2" "torchaudio==$3" \
--default-index https://download.pytorch.org/whl/cpu
_probe
Expand Down