Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

feat: optimize dynamic batch size calculation for MFR processing

myhloli9b686453528d
diff --git a/mineru/model/mfr/utils.py b/mineru/model/mfr/utils.py
index f41e3704..c2116b07 100644
--- a/mineru/model/mfr/utils.py
+++ b/mineru/model/mfr/utils.py
@@ -353,7 +353,7 @@ def get_mfr_effective_batch_size(num_items: int, requested_batch_size: int) -> i
def get_mfr_min_dynamic_batch_size(requested_batch_size: int) -> int:
- return max(1, requested_batch_size // 8)
+ return max(1, requested_batch_size // 4)
def finalize_mfr_batch_groups(