0.题目说明
想要让RAGFLOW使用GPU资源跑起来,可以选择docker-compose-gpu.yml启动。(但是官网启动案例是×86平台的不是NVIDIA GPU的,docker-compose-gpu.yml又是第三方维护,所以稍有题目)
1.题目
docker使用docker-compose-gpu.yml启动RAGFLOW,文档解析出错
报错:
18:10:23 [ERROR][Exception]: NCCL Error 2: unhandled system error (run with NCCL_DEBUG=INFO for details)
2.办理方案
(1)修改docker-compose-gpu.yml文件(稍作改动)

下面是修改后的完备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: [gpu]
复制代码 (2)通过docker-compose-gpu.yml重新启动RAGFLOW
- docker compose -f docker-compose-gpu.yml up -d
复制代码 (3)运行ragflow-server服务器
- docker logs -f ragflow-server
复制代码 (4)查抄是否乐成进行文档解析
乐成解析如下结果:
到此,题目办理!
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。 |