minimax: pin huggingface_hub<1.0 (transformers compat)
Browse files- worker/minimax_start.sh +4 -3
worker/minimax_start.sh
CHANGED
|
@@ -15,7 +15,7 @@ exec > >(tee -a "$LOG") 2>&1
|
|
| 15 |
|
| 16 |
ship_log() {
|
| 17 |
local py="${PY:-$(command -v python3)}"
|
| 18 |
-
"$py" -m pip show huggingface_hub >/dev/null 2>&1 || "$py" -m pip install -q huggingface_hub || true
|
| 19 |
"$py" - <<'PYEOF' || true
|
| 20 |
import os
|
| 21 |
from huggingface_hub import HfApi
|
|
@@ -78,7 +78,8 @@ CACHE_BASE="/runpod-volume/huggingface-cache/hub/models--nikdevs--minimax-h3-${V
|
|
| 78 |
SNAP="$(ls -d "$CACHE_BASE"/*/ 2>/dev/null | head -1 || true)"
|
| 79 |
if [ -z "$SNAP" ]; then
|
| 80 |
echo "[minimax] no runpod model cache — downloading ${REPO} (~54GB) via hf_transfer"
|
| 81 |
-
|
|
|
|
| 82 |
SNAP="$(HF_HUB_ENABLE_HF_TRANSFER=1 "$PY" - <<PYEOF
|
| 83 |
import os
|
| 84 |
from huggingface_hub import snapshot_download
|
|
@@ -112,7 +113,7 @@ echo "[minimax] comfy smoke test OK"
|
|
| 112 |
|
| 113 |
# Background log shipper: uploads the boot log a few times so the tail of a
|
| 114 |
# crashed ComfyUI startup is visible from outside.
|
| 115 |
-
"$PY" -m pip
|
| 116 |
( for i in 1 2 3 4; do sleep 300; ship_log; done ) &
|
| 117 |
|
| 118 |
exec /start.sh
|
|
|
|
| 15 |
|
| 16 |
ship_log() {
|
| 17 |
local py="${PY:-$(command -v python3)}"
|
| 18 |
+
"$py" -m pip show huggingface_hub >/dev/null 2>&1 || "$py" -m pip install -q "huggingface_hub<1.0" || true
|
| 19 |
"$py" - <<'PYEOF' || true
|
| 20 |
import os
|
| 21 |
from huggingface_hub import HfApi
|
|
|
|
| 78 |
SNAP="$(ls -d "$CACHE_BASE"/*/ 2>/dev/null | head -1 || true)"
|
| 79 |
if [ -z "$SNAP" ]; then
|
| 80 |
echo "[minimax] no runpod model cache — downloading ${REPO} (~54GB) via hf_transfer"
|
| 81 |
+
# transformers (comfy dep) requires huggingface-hub<1.0 — never pull 1.x here
|
| 82 |
+
"$PY" -m pip install -q "huggingface_hub[hf_transfer]>=0.34,<1.0"
|
| 83 |
SNAP="$(HF_HUB_ENABLE_HF_TRANSFER=1 "$PY" - <<PYEOF
|
| 84 |
import os
|
| 85 |
from huggingface_hub import snapshot_download
|
|
|
|
| 113 |
|
| 114 |
# Background log shipper: uploads the boot log a few times so the tail of a
|
| 115 |
# crashed ComfyUI startup is visible from outside.
|
| 116 |
+
"$PY" -m pip install -q "huggingface_hub[hf_transfer]>=0.34,<1.0"
|
| 117 |
( for i in 1 2 3 4; do sleep 300; ship_log; done ) &
|
| 118 |
|
| 119 |
exec /start.sh
|