refactor: update batch ratio documentation for clarity and adjust memory thresholds

This commit is contained in:
myhloli
2025-12-23 17:59:58 +08:00
parent 914770d651
commit 361f949d4a

View File

@@ -326,13 +326,13 @@ def get_batch_ratio(device):
# 1. 优先尝试从环境变量获取
"""
c/s架构分离部署时建议通过设置环境变量 MINERU_HYBRID_BATCH_RATIO 来指定 batch ratio
建议的设置值如下:
建议的设置值如如下以下配置值已考虑一定的冗余单卡多终端部署时为了保证稳定性可以额外保留一个client端的显存作为整体冗余
单个client端显存大小 | MINERU_HYBRID_BATCH_RATIO
------------------|------------------------
<=4.5GB | 8
<=4GB | 4
<=3.5GB | 2
<=2.5GB | 1
<= 6 GB | 8
<= 4.5 GB | 4
<= 3 GB | 2
<= 2.5 GB | 1
例如:
export MINERU_HYBRID_BATCH_RATIO=4
"""