Skip to content

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

feat: add cudagraph_capture_sizes to compilation configuration for MUSA devices

myhloli294105c1b0f4
diff --git a/mineru/backend/vlm/utils.py b/mineru/backend/vlm/utils.py
index e0a13cfd..03c16e90 100644
--- a/mineru/backend/vlm/utils.py
+++ b/mineru/backend/vlm/utils.py
@@ -111,6 +111,7 @@ def set_compilation_config() -> dict:
import torch
if torch.musa.is_available():
compilation_config = {
+ "cudagraph_capture_sizes": [1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 14, 16, 18, 20, 24, 28, 30],
"simple_cuda_graph": True
}
except Exception as e: