Spaces:
Paused
Paused
Update start.sh
Browse files
start.sh
CHANGED
|
@@ -94,17 +94,17 @@ snapshot_download(
|
|
| 94 |
token=token,
|
| 95 |
)
|
| 96 |
mcache = Path(cache_dir) / ("models--" + repo_id.replace("/", "--"))
|
| 97 |
-
print("[cache] Estrutura em:", mcache)
|
| 98 |
-
print("[cache] refs:", list((mcache/"refs").glob("*")))
|
| 99 |
-
print("[cache] snapshots:", [p.name for p in (mcache/"snapshots").glob("*") if p.is_dir()])
|
| 100 |
PY
|
| 101 |
fi
|
| 102 |
|
| 103 |
-
echo "[diag] Cache model dir: $CACHE_MODEL_DIR"
|
| 104 |
-
ls -la "$CACHE_MODEL_DIR" || true
|
| 105 |
-
echo "[diag] refs:"; ls -la "$CACHE_MODEL_DIR/refs" || true
|
| 106 |
-
echo "[diag] snapshots:"; ls -la "$CACHE_MODEL_DIR/snapshots" || true
|
| 107 |
-
echo "[diag] CKPT_DIR: $CKPT_DIR"; ls -la "$CKPT_DIR" || true
|
| 108 |
|
| 109 |
# ---------------------- Builder Apex/Q8 ----------------------
|
| 110 |
if nvidia-smi >/dev/null 2>&1; then
|
|
@@ -121,8 +121,8 @@ fi
|
|
| 121 |
|
| 122 |
# ---------------------- Diagn贸stico ----------------------
|
| 123 |
/app/info.sh || true
|
| 124 |
-
ls -la /app || true
|
| 125 |
-
ls -R /app | head -n 2000 || true
|
| 126 |
|
| 127 |
# ---------------------- Subindo servi莽o ----------------------
|
| 128 |
echo "馃殌 Subindo servi莽os..."
|
|
|
|
| 94 |
token=token,
|
| 95 |
)
|
| 96 |
mcache = Path(cache_dir) / ("models--" + repo_id.replace("/", "--"))
|
| 97 |
+
#print("[cache] Estrutura em:", mcache)
|
| 98 |
+
#print("[cache] refs:", list((mcache/"refs").glob("*")))
|
| 99 |
+
#print("[cache] snapshots:", [p.name for p in (mcache/"snapshots").glob("*") if p.is_dir()])
|
| 100 |
PY
|
| 101 |
fi
|
| 102 |
|
| 103 |
+
#echo "[diag] Cache model dir: $CACHE_MODEL_DIR"
|
| 104 |
+
#ls -la "$CACHE_MODEL_DIR" || true
|
| 105 |
+
#echo "[diag] refs:"; ls -la "$CACHE_MODEL_DIR/refs" || true
|
| 106 |
+
#echo "[diag] snapshots:"; ls -la "$CACHE_MODEL_DIR/snapshots" || true
|
| 107 |
+
#echo "[diag] CKPT_DIR: $CKPT_DIR"; ls -la "$CKPT_DIR" || true
|
| 108 |
|
| 109 |
# ---------------------- Builder Apex/Q8 ----------------------
|
| 110 |
if nvidia-smi >/dev/null 2>&1; then
|
|
|
|
| 121 |
|
| 122 |
# ---------------------- Diagn贸stico ----------------------
|
| 123 |
/app/info.sh || true
|
| 124 |
+
#ls -la /app || true
|
| 125 |
+
#ls -R /app | head -n 2000 || true
|
| 126 |
|
| 127 |
# ---------------------- Subindo servi莽o ----------------------
|
| 128 |
echo "馃殌 Subindo servi莽os..."
|