Skip to content

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

fix: disable unnecessary CUDA IPC collection in model_utils for improved performance

myhloli64bf776936f5
diff --git a/mineru/utils/model_utils.py b/mineru/utils/model_utils.py
index 471f70f6..6c1f486a 100644
--- a/mineru/utils/model_utils.py
+++ b/mineru/utils/model_utils.py
@@ -184,7 +184,7 @@ def clean_memory(device='cuda'):
if str(device).startswith("cuda"):
if torch.cuda.is_available():
torch.cuda.empty_cache()
- torch.cuda.ipc_collect()
+ # torch.cuda.ipc_collect()
elif str(device).startswith("npu"):
if torch_npu.npu.is_available():
torch_npu.npu.empty_cache()