From ff97c2bf00e86a9160b029810d4a62d1b5696b71 Mon Sep 17 00:00:00 2001 From: myhloli Date: Fri, 23 Jan 2026 21:12:30 +0800 Subject: [PATCH 1/5] =?UTF-8?q?feat:=20update=20Enflame.md=20driver=20form?= =?UTF-8?q?atting=20and=20enhance=20README=5Fzh-CN.md=20with=20additional?= =?UTF-8?q?=E5=9B=BD=E4=BA=A7=E7=AE=97=E5=8A=9B=E5=B9=B3=E5=8F=B0=E9=80=82?= =?UTF-8?q?=E9=85=8D=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README_zh-CN.md | 5 ++++- docs/zh/usage/acceleration_cards/Enflame.md | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README_zh-CN.md b/README_zh-CN.md index a20dd04a..bc0f51ec 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -46,7 +46,10 @@ # 更新记录 - 2026/01/23 2.7.2 发布 - - 新增国产算力平台适配: + - 新增国产算力平台海光、燧原、摩尔线程的适配支持,目前已由官方适配并支持的国产算力平台包括: + - [昇腾 Ascend](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/Ascend.md) + - [平头哥 T-Head](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/THead.md) + - [沐曦 METAX](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/METAX.md) - [海光 DCU](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/Hygon/) - [燧原 GCU](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/Enflame/) - [摩尔线程 MUSA](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/MooreThreads/) diff --git a/docs/zh/usage/acceleration_cards/Enflame.md b/docs/zh/usage/acceleration_cards/Enflame.md index ef1f850a..c92e1e16 100644 --- a/docs/zh/usage/acceleration_cards/Enflame.md +++ b/docs/zh/usage/acceleration_cards/Enflame.md @@ -4,7 +4,7 @@ os: Ubuntu 22.04.4 LTS cpu: Intel x86-64 gcu: Enflame S60 -driver: 1.7.0.9 +driver: 1.7.0.9 docker: 28.0.1 ``` From 2e0b8365393e28166d44e3946495040a1cbee95c Mon Sep 17 00:00:00 2001 From: myhloli Date: Fri, 23 Jan 2026 21:16:15 +0800 Subject: [PATCH 2/5] feat: enhance bf16 support checks for gcu, musa, and npu devices --- mineru/utils/block_sort.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/mineru/utils/block_sort.py b/mineru/utils/block_sort.py index ab6e5f62..c00d2634 100644 --- a/mineru/utils/block_sort.py +++ b/mineru/utils/block_sort.py @@ -187,14 +187,17 @@ def model_init(model_name: str): elif device_name.startswith("mps"): bf_16_support = True elif device_name.startswith("gcu"): - if torch.gcu.is_bf16_supported(): - bf_16_support = True + if hasattr(torch, 'gcu') and torch.gcu.is_available(): + if torch.gcu.is_bf16_supported(): + bf_16_support = True elif device_name.startswith("musa"): - if torch.musa.is_bf16_supported(): - bf_16_support = True + if hasattr(torch, 'musa') and torch.musa.is_available(): + if torch.musa.is_bf16_supported(): + bf_16_support = True elif device_name.startswith("npu"): - if torch.npu.is_bf16_supported(): - bf_16_support = True + if hasattr(torch, 'npu') and torch.npu.is_available(): + if torch.npu.is_bf16_supported(): + bf_16_support = True if model_name == 'layoutreader': # 检测modelscope的缓存目录是否存在 From 3e6aa26c5a7a74f0c955975d1f15c5a28e435e80 Mon Sep 17 00:00:00 2001 From: myhloli Date: Fri, 23 Jan 2026 21:17:45 +0800 Subject: [PATCH 3/5] refactor: clean up unused lines in table_merge.py --- mineru/utils/table_merge.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mineru/utils/table_merge.py b/mineru/utils/table_merge.py index df243bf5..c445d039 100644 --- a/mineru/utils/table_merge.py +++ b/mineru/utils/table_merge.py @@ -586,9 +586,3 @@ def merge_table(page_info_list): for block in current_table_block["blocks"]: block['lines'] = [] block[SplitFlag.LINES_DELETED] = True - - - - - - From 26bc197599f9ff8a815e54b4413d64fee3448d7d Mon Sep 17 00:00:00 2001 From: myhloli Date: Fri, 23 Jan 2026 21:21:06 +0800 Subject: [PATCH 4/5] feat: add compatibility note for domestic hardware platforms in README_zh-CN.md --- README_zh-CN.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README_zh-CN.md b/README_zh-CN.md index bc0f51ec..c4ce8e8d 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -53,6 +53,7 @@ - [海光 DCU](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/Hygon/) - [燧原 GCU](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/Enflame/) - [摩尔线程 MUSA](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/MooreThreads/) + - MinerU 持续兼容国产硬件平台,支持主流芯片架构。以安全可靠的技术,助力科研、政企用户迈向文档数字化新高度! - 跨页表合并优化,提升合并成功率与合并效果 - 2026/01/06 2.7.1 发布 From cab3fad4d52dd2f35b0185b794f99b11d53b04d3 Mon Sep 17 00:00:00 2001 From: myhloli Date: Fri, 23 Jan 2026 21:25:09 +0800 Subject: [PATCH 5/5] feat: add support for domestic computing platforms in README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index f3cbf322..2592b8a4 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,14 @@ # Changelog - 2026/01/23 2.7.2 Release + - Added support for domestic computing platforms Hygon, Enflame, and Moore Threads. Currently, the officially supported domestic computing platforms include: + - [Ascend](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/Ascend.md) + - [T-Head](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/THead.md) + - [METAX](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/METAX.md) + - [Hygon](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/Hygon/) + - [Enflame](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/Enflame/) + - [MooreThreads](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/MooreThreads/) + - MinerU continues to ensure compatibility with domestic hardware platforms, supporting mainstream chip architectures. With secure and reliable technology, we empower researchers, government, and enterprises to reach new heights in document digitization! - Cross-page table merging optimization, improving merge success rate and merge quality - 2026/01/06 2.7.1 Release