ЯRаСлав
commited on
Commit
·
928763a
1
Parent(s):
f25432c
Start script added.
Browse files
start.sh
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
|
3 |
+
echo "[start.sh] Starting MongoDB..." 😎
|
4 |
+
mkdir -p /data/db
|
5 |
+
find /data/db -name "*.lock" -type f -exec rm -f {} \;
|
6 |
+
mongod &
|
7 |
+
|
8 |
+
echo "[start.sh] Starting text-generation-inference..." 🚀
|
9 |
+
text-generation-launcher --model-id ${MODEL_NAME} --num-shard 1 --port 8080 --trust-remote-code &
|
10 |
+
|
11 |
+
echo "[start.sh] Waiting for model to become healthy..." ⏳
|
12 |
+
curl --retry 60 --retry-delay 10 --retry-connrefused http://127.0.0.1:8080/health
|
13 |
+
|
14 |
+
echo "[start.sh] Launching WebUI..." 🌐
|
15 |
+
dotenv -e /app/.env -c -- node /app/build/index.js -- --host 0.0.0.0 --port 3000
|