Skip to content

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

Update vllm version and increase default GPU memory utilization

myhloli0758de6d24b6
diff --git a/mineru/backend/vlm/vlm_analyze.py b/mineru/backend/vlm/vlm_analyze.py
index b1b202b8..34e89b37 100644
--- a/mineru/backend/vlm/vlm_analyze.py
+++ b/mineru/backend/vlm/vlm_analyze.py
@@ -96,7 +96,7 @@ class ModelSingleton:
except ImportError:
raise ImportError("Please install vllm to use the vllm-engine backend.")
if "gpu_memory_utilization" not in kwargs:
- kwargs["gpu_memory_utilization"] = 0.5
+ kwargs["gpu_memory_utilization"] = 0.7
if "model" not in kwargs:
kwargs["model"] = model_path
if enable_custom_logits_processors() and ("logits_processors" not in kwargs):
@@ -111,7 +111,7 @@ class ModelSingleton:
except ImportError:
raise ImportError("Please install vllm to use the vllm-async-engine backend.")
if "gpu_memory_utilization" not in kwargs:
- kwargs["gpu_memory_utilization"] = 0.5
+ kwargs["gpu_memory_utilization"] = 0.7
if "model" not in kwargs:
kwargs["model"] = model_path
if enable_custom_logits_processors() and ("logits_processors" not in kwargs):
diff --git a/mineru/model/vlm_vllm_model/server.py b/mineru/model/vlm_vllm_model/server.py
index c4e51ae4..3a4cc586 100644
--- a/mineru/model/vlm_vllm_model/server.py
+++ b/mineru/model/vlm_vllm_model/server.py
@@ -43,7 +43,7 @@ def main():
if not has_port_arg:
args.extend(["--port", "30000"])
if not has_gpu_memory_utilization_arg:
- args.extend(["--gpu-memory-utilization", "0.5"])
+ args.extend(["--gpu-memory-utilization", "0.7"])
if not model_path:
model_path = auto_download_and_get_model_root_path("/", "vlm")
if (not has_logits_processors_arg) and custom_logits_processors:
diff --git a/pyproject.toml b/pyproject.toml
index 8208981a..3dd29908 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -56,7 +56,7 @@ vlm = [
"accelerate>=1.5.1",
]
vllm = [
- "vllm>=0.10.1.1,<0.11",
+ "vllm>=0.10.1.1,<0.12",
]
pipeline = [
"matplotlib>=3.10,<4",