Update: python version set 3.10

This commit is contained in:
csunny 2023-05-15 15:25:26 +08:00
parent 69b34f176a
commit e0b72867cb
4 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ RUN pip install -r requirements.txt
EXPOSE 3306
EXPOSE 8000
CMD ["python", "pilot/server/vicuna_server.py"]
CMD ["python", "pilot/server/llmserver.py"]
CMD ["python", "pilot/server/webserver.py"]

View File

@ -1,4 +1,4 @@
version: '3.9'
version: '3.10'
services:
db-gpt:

View File

@ -4,7 +4,7 @@ channels:
- defaults
- anaconda
dependencies:
- python=3.9
- python=3.10
- cudatoolkit
- pip
- pytorch-mutex=1.0=cuda

2
run.sh
View File

@ -15,7 +15,7 @@ function find_python_command() {
PYTHONCMD=$(find_python_command)
nohup PYTHONCMD pilot/server/vicuna_server.py >> /root/server.log 2>&1 &
nohup PYTHONCMD pilot/server/llmserver.py >> /root/server.log 2>&1 &
while [ `grep -c "Uvicorn running on" /root/server.log` -eq '0' ];do
sleep 1s;
echo "wait server running"