local-llm-server/other/vllm/Docker/start-container.sh

29 lines
806 B
Bash
Raw Normal View History

2023-09-27 14:59:33 -06:00
#!/bin/bash
2023-10-15 10:43:35 -06:00
echo "LAUNCHING CONTAINER..."
2023-10-15 12:12:01 -06:00
# Update the container repository and make sure pip dependancies are up to date.
2023-09-29 22:28:38 -06:00
cd /local-llm-server || exit
git fetch
git reset --hard origin/master
/venv/bin/pip install -r requirements.txt
2023-09-27 14:59:33 -06:00
mkdir -p /storage/vllm/
chown -R apiserver:apiserver /storage/vllm
touch /storage/vllm/cmd.txt
touch /storage/vllm/rathole-client.toml
2023-09-27 14:59:33 -06:00
if [ -f /storage/vllm/ssh ]; then
cp -r /storage/vllm/ssh /root/.ssh
echo "Copied ssh from /storage"
fi
if [ ! -f /storage/vllm/cmd.txt ]; then
echo "--max-num-batched-tokens 4098 --quantization awq --model /storage/vllm/models/model-path" >/storage/vllm/cmd.txt
fi
cp /local-llm-server/other/vllm/Docker/idle.ipynb /notebooks/idle.ipynb
# Start the services
2023-10-15 12:12:01 -06:00
/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf