From 26f5964f325615f3f1c9fc40afba857d408fa627 Mon Sep 17 00:00:00 2001 From: zhousha <736730048@qq.com> Date: Wed, 26 Nov 2025 18:39:06 +0800 Subject: [PATCH] update --- README.md | 13 ++++++++++++- enginex/DeepSeek-OCR.md | 9 +++++++++ enginex/PaddleOCR-VL.md | 13 +++++++++++++ enginex/Qwen2-VL-2B-Instruct.md | 12 ++++++++++++ enginex/Qwen2.5-7B-Instruct.md | 12 ++++++++++++ 5 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 enginex/DeepSeek-OCR.md create mode 100644 enginex/PaddleOCR-VL.md create mode 100644 enginex/Qwen2-VL-2B-Instruct.md create mode 100644 enginex/Qwen2.5-7B-Instruct.md diff --git a/README.md b/README.md index 11e426c..f3e61b8 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,14 @@ # enginex-hygon-vl -运行于【海光 DCU】系列算力卡的【视觉多模态理解】引擎,基于 transformer 架构,支持 MiniCPM-V、Gemma 3 等最新流行模型 \ No newline at end of file +运行于【海光 DCU】系列算力卡的【视觉多模态理解】引擎,基于 transformer 架构,支持 MiniCPM-V、Gemma 3 等最新流行模型 + +因具体模型之间的启动方式和具体镜像会有略微差别,请详细查看 `/enginex` 目录下各个支持模型的启动测试方式。 + +## 可支持模型列表 +可在项目文件夹 `/enginex` 下查看具体可支持模型文件的运行方式。 + +支持模型列表: +- PaddlePaddle/PaddleOCR-VL +- deepseek-ai/DeepSeek-OCR +- Qwen/Qwen2.5-7B-instruct +- Qwen/Qwen2-VL-2B-Instruct \ No newline at end of file diff --git a/enginex/DeepSeek-OCR.md b/enginex/DeepSeek-OCR.md new file mode 100644 index 0000000..fb6de17 --- /dev/null +++ b/enginex/DeepSeek-OCR.md @@ -0,0 +1,9 @@ +# 运行方式 + +```python +docker pull git.modelhub.org.cn:9443/enginex-hygon/vllm:0.8.5-ubuntu22.04-dtk25.04.1-rc5-das1.6-py3.10-20250724 +docker run -it --shm-size 200g --network=host --name {docker_name} --privileged --device=/dev/kfd --device=/dev/dri --device=/dev/mkfd --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -u root -v /path/your_code_data/:/path/your_code_data/ -v /opt/hyhal/:/opt/hyhal/:ro {imageID} bash + +cd /your_code_path/deepseek-ocr_pytorch + +``` diff --git a/enginex/PaddleOCR-VL.md b/enginex/PaddleOCR-VL.md new file mode 100644 index 0000000..531b495 --- /dev/null +++ b/enginex/PaddleOCR-VL.md @@ -0,0 +1,13 @@ +# 运行方式 + +```python +docker pull git.modelhub.org.cn:9443/enginex-hygon/vllm:0.9.2-ubuntu22.04-dtk25.04.2-py3.10 +docker run -it --shm-size 200g --network=host --name {docker_name} --privileged --device=/dev/kfd --device=/dev/dri --device=/dev/mkfd --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -u root -v /path/your_code_data/:/path/your_code_data/ -v /opt/hyhal/:/opt/hyhal/:ro image.sourcefind.cn:5000/dcu/admin/base/vllm:0.9.2-ubuntu22.04-dtk25.04.2-py3.10 bash + +cd /your_code_path/paddleocr-vl_paddle +python -m pip install paddlepaddle-dcu==3.2.1 -i https://www.paddlepaddle.org.cn/packages/stable/dcu/ +python -m pip install -U "paddleocr[doc-parser]" +python -m pip install https://paddle-whl.bj.bcebos.com/nightly/cu126/safetensors/safetensors-0.6.2.dev0-cp38-abi3-linux_x86_64.whl +pip install paddlex==3.3.9 + +``` diff --git a/enginex/Qwen2-VL-2B-Instruct.md b/enginex/Qwen2-VL-2B-Instruct.md new file mode 100644 index 0000000..efad1cc --- /dev/null +++ b/enginex/Qwen2-VL-2B-Instruct.md @@ -0,0 +1,12 @@ +# 运行方式 + +```python +docker pull git.modelhub.org.cn:9443/enginex-hygon/pytorch:2.3.0-py3.10-dtk24.04.3-ubuntu20.04-vllm0.6 +docker run -it --shm-size=1024G -v /path/your_code_data/:/path/your_code_data/ -v /opt/hyhal:/opt/hyhal --privileged=true --device=/dev/kfd --device=/dev/dri/ --group-add video --name qwen2_vl_pytorch bash +cd /path/your_code_data/ +pip install qwen-vl-utils[decord] +git clone git.modelhub.org.cn:9443/enginex-hygon/llama-factory.git +cd llama-factory +pip install -e ".[torch,metrics]" +pip install timm +``` diff --git a/enginex/Qwen2.5-7B-Instruct.md b/enginex/Qwen2.5-7B-Instruct.md new file mode 100644 index 0000000..94c465d --- /dev/null +++ b/enginex/Qwen2.5-7B-Instruct.md @@ -0,0 +1,12 @@ +# 运行方式 + +```python +docker pull git.modelhub.org.cn:9443/enginex-hygon/git.modelhub.org.cn:9443/enginex-hygon/pytorch:2.1.0-ubuntu20.04-dtk24.04.2-py3.10 +docker run -it --shm-size=1024G -v /path/your_code_data/:/path/your_code_data/ -v /opt/hyhal:/opt/hyhal --privileged=true --device=/dev/kfd --device=/dev/dri/ --group-add video --name qwen2.5_72B_pytorch bash +cd /path/your_code_data/ +cd LLaMA-Factory +pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com +pip install e . -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com +pip install deepspeed-0.12.3+gita724046.abi1.dtk2404.torch2.1.0-cp310-cp310-manylinux_2_31_x86_64.whl + +```