docker使用docker-compose-gpu.yml启动RAGFLOW,文档解析出错【亲测已办理
0.题目说明想要让RAGFLOW使用GPU资源跑起来,可以选择docker-compose-gpu.yml启动。(但是官网启动案例是×86平台的不是NVIDIA GPU的,docker-compose-gpu.yml又是第三方维护,所以稍有题目)
1.题目
docker使用docker-compose-gpu.yml启动RAGFLOW,文档解析出错
报错:
18:10:23 : NCCL Error 2: unhandled system error (run with NCCL_DEBUG=INFO for details)
https://i-blog.csdnimg.cn/direct/c5139e4ffc4f4bc1a483daa04f50b20b.png
2.办理方案
(1)修改docker-compose-gpu.yml文件(稍作改动)
https://i-blog.csdnimg.cn/direct/5473b40f5b164434851a2a4964dc0109.png
下面是修改后的完备docker-compose-gpu.yml文件,可以直接复制。
# The RAGFlow team do not actively maintain docker-compose-gpu.yml, so use them at your own risk.
# However, you are welcome to file a pull request to improve it.
include:
- ./docker-compose-base.yml
services:
ragflow:
depends_on:
mysql:
condition: service_healthy
image: ${RAGFLOW_IMAGE}
container_name: ragflow-server
ports:
- ${SVR_HTTP_PORT}:9380
- 80:80
- 443:443
volumes:
- ./ragflow-logs:/ragflow/logs
- ./nginx/ragflow.conf:/etc/nginx/conf.d/ragflow.conf
- ./nginx/proxy.conf:/etc/nginx/proxy.conf
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
env_file: .env
environment:
- TZ=${TIMEZONE}
- HF_ENDPOINT=${HF_ENDPOINT}
- MACOS=${MACOS}
- NCCL_DEBUG=INFO
networks:
- ragflow
restart: on-failure
# https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
# If you're using Docker Desktop, the --add-host flag is optional. This flag makes sure that the host's internal IP gets exposed to the Prometheus container.
extra_hosts:
- "host.docker.internal:host-gateway"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities:
(2)通过docker-compose-gpu.yml重新启动RAGFLOW
docker compose -f docker-compose-gpu.yml up -d
(3)运行ragflow-server服务器
docker logs -f ragflow-server
(4)查抄是否乐成进行文档解析
乐成解析如下结果:
https://i-blog.csdnimg.cn/direct/027c971a809f40c2a95689b55de2b93f.png
到此,题目办理!
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页:
[1]