Skip to content

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

fix: disable tokenizers parallelism to prevent potential issues

myhloli305e3a61e8a4
diff --git a/mineru/cli/common.py b/mineru/cli/common.py
index 86c25fcb..ed63c2ac 100644
--- a/mineru/cli/common.py
+++ b/mineru/cli/common.py
@@ -20,6 +20,7 @@ from mineru.backend.vlm.vlm_analyze import aio_doc_analyze as aio_vlm_doc_analyz
pdf_suffixes = ["pdf"]
image_suffixes = ["png", "jpeg", "jp2", "webp", "gif", "bmp", "jpg", "tiff"]
+os.environ["TOKENIZERS_PARALLELISM"] = "false"
def read_fn(path):
if not isinstance(path, Path):