Spaces:
Paused
Paused
Update start.sh
Browse files
start.sh
CHANGED
|
@@ -133,7 +133,7 @@ ln -sfn /app/ckpt/VINCIE-3B /app/VINCIE/ckpt/VINCIE-3B
|
|
| 133 |
|
| 134 |
# ---------------------- Builder Apex/Q8 ----------------------
|
| 135 |
if nvidia-smi >/dev/null 2>&1; then
|
| 136 |
-
if [ "${DISABLE_BUILDER:-
|
| 137 |
echo "Executando builder Apex/Q8..."
|
| 138 |
chmod +x /app/builder.sh || true
|
| 139 |
timeout "${BUILDER_TIMEOUT_SEC:-7200}" bash -lc /app/builder.sh || echo "Builder excedeu tempo/erro, prosseguindo."
|
|
@@ -144,6 +144,11 @@ else
|
|
| 144 |
echo "GPU não visível, pulando builder Apex/Q8."
|
| 145 |
fi
|
| 146 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
# ---------------------- Diagnóstico ----------------------
|
| 148 |
/app/info.sh || true
|
| 149 |
#ls -la /app || true
|
|
@@ -152,4 +157,4 @@ fi
|
|
| 152 |
# ---------------------- Subindo serviço ----------------------
|
| 153 |
echo "🚀 Subindo serviços..."
|
| 154 |
# Dica: pode-se exportar VINCIE_DIRECT_TO_CKPT=1 para fallback interno
|
| 155 |
-
python /app/
|
|
|
|
| 133 |
|
| 134 |
# ---------------------- Builder Apex/Q8 ----------------------
|
| 135 |
if nvidia-smi >/dev/null 2>&1; then
|
| 136 |
+
if [ "${DISABLE_BUILDER:-1}" -eq 0 ]; then
|
| 137 |
echo "Executando builder Apex/Q8..."
|
| 138 |
chmod +x /app/builder.sh || true
|
| 139 |
timeout "${BUILDER_TIMEOUT_SEC:-7200}" bash -lc /app/builder.sh || echo "Builder excedeu tempo/erro, prosseguindo."
|
|
|
|
| 144 |
echo "GPU não visível, pulando builder Apex/Q8."
|
| 145 |
fi
|
| 146 |
|
| 147 |
+
|
| 148 |
+
chmod +x /app/build_apex.sh
|
| 149 |
+
|
| 150 |
+
/app/build_apex.sh
|
| 151 |
+
|
| 152 |
# ---------------------- Diagnóstico ----------------------
|
| 153 |
/app/info.sh || true
|
| 154 |
#ls -la /app || true
|
|
|
|
| 157 |
# ---------------------- Subindo serviço ----------------------
|
| 158 |
echo "🚀 Subindo serviços..."
|
| 159 |
# Dica: pode-se exportar VINCIE_DIRECT_TO_CKPT=1 para fallback interno
|
| 160 |
+
python /app/app.py
|