nikdevs commited on
Commit
934ffa4
·
verified ·
1 Parent(s): b7d4604

minimax: install into /opt/venv python (comfy runtime env)

Browse files
Files changed (1) hide show
  1. worker/minimax_start.sh +8 -1
worker/minimax_start.sh CHANGED
@@ -11,7 +11,13 @@ VARIANT="${MODEL_VARIANT:-fl2va}"
11
  REPO="nikdevs/minimax-h3-${VARIANT}"
12
  TARGET="${COMFY_VERSION:-v0.31.0}"
13
  COMFY=/comfyui
14
- PY="$(command -v python3 || command -v python)"
 
 
 
 
 
 
15
 
16
  echo "[minimax] variant=${VARIANT} comfy_target=${TARGET}"
17
 
@@ -27,6 +33,7 @@ if [ "${UPGRADE_TORCH_CU130:-1}" = "1" ]; then
27
  "$PY" -m pip install -q -U torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu130
28
  ;;
29
  esac
 
30
  fi
31
 
32
  # --- 1. ComfyUI version ---------------------------------------------------
 
11
  REPO="nikdevs/minimax-h3-${VARIANT}"
12
  TARGET="${COMFY_VERSION:-v0.31.0}"
13
  COMFY=/comfyui
14
+ # ComfyUI runs under /opt/venv in worker-comfyui images — install into THAT
15
+ # python, not the system one, or upgrades silently land in the wrong env.
16
+ if [ -x /opt/venv/bin/python ]; then
17
+ PY=/opt/venv/bin/python
18
+ else
19
+ PY="$(command -v python3 || command -v python)"
20
+ fi
21
 
22
  echo "[minimax] variant=${VARIANT} comfy_target=${TARGET}"
23
 
 
33
  "$PY" -m pip install -q -U torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu130
34
  ;;
35
  esac
36
+ "$PY" -c 'import torch; assert (torch.version.cuda or "").startswith("13"), torch.version.cuda; print("[minimax] torch", torch.__version__, "cuda", torch.version.cuda)'
37
  fi
38
 
39
  # --- 1. ComfyUI version ---------------------------------------------------