微信扫码
添加专属顾问
我要投稿
快速掌握在Ubuntu上部署MinerU进行高效文档解析的完整指南。 核心内容: 1. 系统环境配置:CUDA检查与虚拟环境创建 2. MinerU安装流程:包管理工具与核心组件安装 3. PyTorch GPU版本适配:版本选择与兼容性解决方案
nvcc --version
sudo apt install nvidia-cuda-toolkit
nvidia-smi
python --version
conda create -n mineru python=3.12.4conda activate mineru
pip install uv
uv pip install -U "mineru[core]" -i https://mirrors.aliyun.com/pypi/simple
查看Ubuntu CUDA版本的方法
nvcc -V
CUDA 12.1 向下兼容 12.0)。以下是适配的安装命令:pip install torch==2.5.0 torchvision==0.20.0 torchaudio==2.5.0 --index-url https://download.pytorch.org/whl/cu121
pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu126
We’d prefer you install the latest version, but old binaries and installation instructions are provided below for your convenience.
# ROCM 6.4 (Linux only)
pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/rocm6.4
# CUDA 12.6
pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu126
# CUDA 12.8
pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu128
# CUDA 12.9
pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu129
# CPU only
pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cpumineru-models-download --model_type all
输入modelscope
4.功能测试
pdf输入地址:/home/mac/wendang/pdfs
解析输出地址:/home/mac/wendang/test_output
(1)pipeline模式(速度快)
测试单个pdf文件解析(n卡可GPU加速)通过表格,公式,排版等小模型分开识别
cd /home/mac/wendang/mineru -p ./pdfs/demo1.pdf -o test_output/ --backend pipeline device cuda
(2)vlm模式(精度高,速度慢)
mineru -p ./pdfs/demo1.pdf -o test_output/ --backend vlm-transformers --device cuda
mineru -p ./pdfs -o test_output/ --backend pipeline batch-size 8
conda activate mineru
# 启动web服务界面mineru-gradio --server-name 0.0.0.0 --server-port 7860
https://aicarrier.feishu.cn/wiki/TzBcwXurRiuQZkk17licytSTnBc
53AI,企业落地大模型首选服务商
产品:场景落地咨询+大模型应用平台+行业解决方案
承诺:免费POC验证,效果达标后再合作。零风险落地应用大模型,已交付160+中大型企业
2025-10-27
AI浏览器的正确使用姿势是什么?我从Dia的这90+个Skills里找到了一些好场景
2025-10-27
魔笔 AI Chat Builder:让 AI 对话秒变可交互界面
2025-10-20
天猫行业中后台前端研发Agent设计
2025-10-20
告别错别字和退格键!这款AI语音输入法,让你的打字效率倍增(含实测体验)
2025-10-19
AI自动生成工作流,n8n官方出品
2025-10-14
从人工到AI驱动:天猫测试全流程自动化变革实践
2025-10-13
a16z实测 AI 办公工具:谁是能帮你干活的队友
2025-10-10
所有AI的馈赠,早已在暗中标好了价格|北大最新论文解读
2025-08-06
2025-09-17
2025-09-04
2025-09-02
2025-09-15
2025-09-05
2025-08-22
2025-09-18
2025-08-20
2025-10-10