Skip to content

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

fix: adjust default top_p and top_k parameters for improved model performance

myhlolia3e2e7bd8681
diff --git a/mineru/backend/vlm/base_predictor.py b/mineru/backend/vlm/base_predictor.py
index 3a38ea97..f65b4a48 100644
--- a/mineru/backend/vlm/base_predictor.py
+++ b/mineru/backend/vlm/base_predictor.py
@@ -7,8 +7,8 @@ DEFAULT_SYSTEM_PROMPT = (
)
DEFAULT_USER_PROMPT = "Document Parsing:"
DEFAULT_TEMPERATURE = 0.0
-DEFAULT_TOP_P = 0.01
-DEFAULT_TOP_K = 1
+DEFAULT_TOP_P = 0.8
+DEFAULT_TOP_K = 20
DEFAULT_REPETITION_PENALTY = 1.0
DEFAULT_PRESENCE_PENALTY = 0.0
DEFAULT_NO_REPEAT_NGRAM_SIZE = 100