docker部署如何增加并发? #4439
Unanswered
promise-hash
asked this question in
Q&A
docker部署如何增加并发?
#4439
Replies: 2 comments 10 replies
-
|
910B + 64G显存的Docker部署环境下,MinerU提升并发/多文件处理能力的核心做法如下:
services:
mineru-api:
image: mineru:latest
environment:
MINERU_MODEL_SOURCE: local
MINERU_MIN_BATCH_INFERENCE_SIZE: '256'
MINERU_API_MAX_CONCURRENT_REQUESTS: '10'
MINERU_VIRTUAL_VRAM_SIZE: '16'
command:
- mineru-api
- --host
- 0.0.0.0
- --port
- '8000'
- --max_concurrency
- '10'
# - --data-parallel-size
# - '2'
shm_size: 32g
ipc: host
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['0'] # 多卡可写 ['0','1']
capabilities: [gpu]
ports:
- '8000:8000'
详细原理和更多配置细节可参考官方并发与部署讨论和多进程安全说明。 To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
可以起一个openai-server,然后通过多个http-client来做并发 |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
环境:910b,64G显存,docker部署
目前存在的问题:
单文件差不多6-7s左右,但是如果同时有10个文件上传,就会出现某个文件得2分钟左右才能识别,通过什么参数可以实现多并发,多线程处理文档呢
Beta Was this translation helpful? Give feedback.
All reactions