feat(model): Support vLLM

This commit is contained in:
FangYin Cheng
2023-10-09 20:01:29 +08:00
parent 1cdaaeb820
commit d5a52f79f1
32 changed files with 957 additions and 155 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
docker run --gpus all -d \
docker run --ipc host --gpus all -d \
-p 5000:5000 \
-e LOCAL_DB_TYPE=sqlite \
-e LOCAL_DB_PATH=data/default_sqlite.db \

View File

@@ -4,7 +4,7 @@
PROXY_API_KEY="$PROXY_API_KEY"
PROXY_SERVER_URL="${PROXY_SERVER_URL-'https://api.openai.com/v1/chat/completions'}"
docker run --gpus all -d \
docker run --ipc host --gpus all -d \
-p 5000:5000 \
-e LOCAL_DB_TYPE=sqlite \
-e LOCAL_DB_PATH=data/default_sqlite.db \

View File

@@ -21,6 +21,7 @@ services:
restart: unless-stopped
networks:
- dbgptnet
ipc: host
deploy:
resources:
reservations: