Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Python ai4sciencedocument-analysisdocxextract-datalayout-analysisocrparserpdfpdf-converterpdf-extractor-llmpdf-extractor-pretrainpdf-extractor-ragpdf-parserpptxpythonxlsx
feat: update compilation configuration format to JSON string in vlm_analyze for MUSA devices
myhlolid39c4b5d64de
diff --git a/mineru/backend/vlm/vlm_analyze.py b/mineru/backend/vlm/vlm_analyze.pyindex 584d7fe1..2e7a2cc4 100644--- a/mineru/backend/vlm/vlm_analyze.py+++ b/mineru/backend/vlm/vlm_analyze.py@@ -139,10 +139,7 @@ class ModelSingleton:if device.startswith("musa"):import torchif 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- }+ 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}'block_size = 32kwargs["compilation_config"] = compilation_configkwargs["block_size"] = block_size