|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
mkdir -p /data/db |
|
|
|
|
|
|
|
|
find /data/db -name "*.lock" -type f -exec rm -f {} \; |
|
|
|
|
|
|
|
|
mongod & |
|
|
|
|
|
|
|
|
for model in "$MODEL_NAME_1" "$MODEL_NAME_2" "$MODEL_NAME_3" "$MODEL_NAME_4" "$MODEL_NAME_5"; do |
|
|
echo "Starting text-generation-inference for model: $model" |
|
|
text-generation-launcher --model-id "$model" --num-shard 1 --port 8080 --trust-remote-code & |
|
|
done |
|
|
|
|
|
|
|
|
curl --retry 60 --retry-delay 10 --retry-connrefused http://127.0.0.1:8080/health |
|
|
|
|
|
|
|
|
dotenv -e /app/.env -c -- node /app/build/index.js -- --host 0.0.0.0 --port 3000 |
|
|
|
|
|
|
|
|
wait -n |
|
|
|
|
|
|
|
|
exit $? |