Skip to content

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

fix: improve help text for device mode option in client.py

myhlolie5dba060356f
diff --git a/mineru/cli/client.py b/mineru/cli/client.py
index 58ae9396..d74e8438 100644
--- a/mineru/cli/client.py
+++ b/mineru/cli/client.py
@@ -126,7 +126,8 @@ if is_mac_os_version_supported():
'--device',
'device_mode',
type=str,
- help='Device mode for model inference, e.g., "cpu", "cuda", "cuda:0", "npu", "npu:0", "mps". Adapted only for the case where the backend is set to "pipeline". ',
+ help="""Device mode for model inference, e.g., "cpu", "cuda", "cuda:0", "npu", "npu:0", "mps".
+ Adapted only for the case where the backend is set to "pipeline" and "vlm-transformers". """,
default=None,
)
@click.option(