mirror of
https://github.com/opendatalab/MinerU.git
synced 2026-11-23 13:37:19 +08:00
Separate shared Tasks contracts and single-file execution from HTTP and local adapters. Extract Doclib content reads and cache access, defer configuration loading, and apply SQLite runtime settings to every connection. Track application, document and initialization leases across model caches. Use explicit VLM resource handles and separate WebUI conversion work from component updates while preserving existing HTTP contracts. Validation: 4080 non-Torch unit tests passed with 3 skips; API and Router OpenAPI unchanged. Installed-wheel PDF/render/API/WebUI/CLI smoke passed. Metal inference verified sharing, cancellation drain, final-owner cleanup and recreation. Unrelated local PDF-style test changes and examples are excluded.