Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Model Management Tier Scope Design
历史归档:保留原设计或验收时的记录,不作为当前版本的安装、接口或实现指引。 当前入口见 开发文档;当时的版本、测试结论和未完成事项不追溯改写。
Status: Approved Date: 2026-07-21
Goal
Keep the four public parsing tiers (flash, basic, standard, and advanced) while reducing model installation and management to the two distinct model sets that actually exist: Basic and Standard.
Packaging
历史说明:本节按 tier 划分 extras 的方案已被当前按后端安装的方案替代,下文保留设计历史,不作为安装指引。当前基础包提供 ONNX/llama.cpp,Torch 使用
mineru[torch],Linux vLLM / Windows LMDeploy 使用mineru[full],显式 MLX 单独安装mlx-vlm>=0.7.0,<0.8.0。basic、standard和advanced均不是当前安装 extra;测试依赖使用独立的testextra。详见 当前档位说明。
The project exposes only basic and standard model-runtime extras. The advanced extra is removed because Advanced uses the same dependencies as Standard. Test dependencies use mineru[standard].
Users preparing Advanced parsing install mineru[standard]; no separate Advanced compatibility extra is retained.
Model Registry
REPOS_FOR_TIER and model_repos_for_tier() cover only:
basic:PDF-Extract-Kit-1.0standard:PDF-Extract-Kit-1.0andMinerU2.5-Pro-2605-1.2B
Flash never enters model lookup because it does not use models. Advanced callers explicitly reuse the Standard model set before calling the registry. Passing flash, advanced, or an unrelated value directly to model_repos_for_tier() is an error.
mineru-kit models
The download, verify, and show subcommands handle only Basic and Standard model tiers.
download --tieraccepts onlybasicandstandard.verify --tieraccepts onlybasicandstandard.showlists only the Basic and Standard model sets.- Passing Flash or Advanced returns an
invalid_requesterror whose supported values arebasic, standard.
Direct model repository arguments remain supported and unchanged.
Managed Parse Server
Managed parse server model readiness remains available for Basic, Standard, and Advanced parsing tiers:
- Basic checks the Basic model set.
- Standard checks the Standard model set.
- Advanced explicitly checks the Standard model set.
When Advanced is missing model files, remediation points to:
mineru-kit models download --tier standard
Flash does not use the managed quality-tier model readiness path.
Documentation
Model installation and management documentation describes only the Basic and Standard model sets. Advanced documentation explains that it reuses the Standard extra and model preparation commands. Parsing examples continue to expose all four public parsing tiers.
Verification
Tests cover:
- The absence of the
advancedextra and use ofmineru[standard]by test dependencies. - Basic and Standard model registry mappings.
- Registry rejection of Flash and Advanced.
models downloadandmodels verifyrejection of Flash and Advanced.models showoutput containing only Basic and Standard tier rows.- Advanced managed-server readiness checking the Standard model set and recommending the Standard download command.
- Documentation and tracked-file residue scans for removed commands and extras.