Model13 / entrypoint.sh
sonuramashishnpmai's picture
Update entrypoint.sh
82c1d09 verified
Raw
History Blame Contribute Delete
502 Bytes
#!/bin/bash
set -e
export OLLAMA_HOST="127.0.0.1:11436"
taskset -c 0 ollama serve &
sleep 5
export OLLAMA_HOST="127.0.0.1:11435"
taskset -c 1 ollama serve &
sleep 5
ollama serve &
echo "Waiting for Ollama..."
while ! nc -z localhost 11436 || ! nc -z localhost 11435; do
sleep 1
done
OLLAMA_HOST="127.0.0.1:11436" ollama pull stablelm2
OLLAMA_HOST="127.0.0.1:11435" ollama run cniongolo/biomistral
echo "Starting FastAPI..."
exec python3 -m uvicorn main:app --host 0.0.0.0 --port ${PORT:-7860}