From 9f0a2f3538ff0b5dbc6e2bf5d38311cdb9a32701 Mon Sep 17 00:00:00 2001 From: weibo <805407646@qq.com> Date: Fri, 6 Sep 2024 15:17:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/docker-compose.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/base/docker-compose.yml b/base/docker-compose.yml index 3fbf354..2c456ea 100644 --- a/base/docker-compose.yml +++ b/base/docker-compose.yml @@ -1,22 +1,20 @@ services: # 向量数据库做检索使用 xinference: - image: xprobe/xinference:v0.14.0 # 使用的Docker镜像 + image: xprobe/xinference:latest-cpu # 使用的Docker镜像 container_name: xinference # 容器名称 volumes: - ./cache/.xinference:/root/.xinference # 绑定主机和容器的目录 - ./cache/huggingface:/root/.cache/huggingface - ./cache/modelscope:/root/.cache/modelscope - environment: - XINFERENCE_MODEL_SRC: modelscope ports: - "9997:9997" # 映射端口 restart: always # 容器重启策略 - deploy: - resources: - reservations: - devices: - - capabilities: [ "gpu" ] +# deploy: +# resources: +# reservations: +# devices: +# - capabilities: [ "gpu" ] command: xinference-local -H 0.0.0.0 # 容器启动时运行的命令 pgvector: