[Iiluvatar] fix ci error and update readme (#7453)

This commit is contained in:
yzwu
2026-04-17 20:42:56 +08:00
committed by GitHub
parent a729e0f729
commit 3b9d6c60d3
4 changed files with 35 additions and 11 deletions
@@ -34,17 +34,24 @@ docker exec -it paddle_infer bash
### 3.2 安装paddle
```bash
pip3 install paddlepaddle-iluvatar==3.4.0.dev20260326 -i https://www.paddlepaddle.org.cn/packages/nightly/ixuca/
pip3 install paddlepaddle-iluvatar==3.4.0.dev20260326 -i https://www.paddlepaddle.org.cn/packages/nightly/ixuca/ --extra-index-url https://mirrors.aliyun.com/pypi/simple/
```
### 3.3 安装fastdeploy
以下两种方式安装均可以:
- pip安装
```bash
pip3 install fastdeploy_iluvatar_gpu==2.5.0.dev0 -i https://www.paddlepaddle.org.cn/packages/stable/ixuca/ --extra-index-url https://mirrors.aliyun.com/pypi/simple/
```
可以按如下步骤编译FastDeploy,,得到```最新版本```。
- 源码编译
可以按如下步骤编译FastDeploy得到```最新版本```。
```bash
git clone https://github.com/PaddlePaddle/FastDeploy
git clone --recursive https://github.com/PaddlePaddle/FastDeploy.git
cd FastDeploy
pip3 install -r requirements_iluvatar.txt -i https://mirrors.aliyun.com/pypi/simple/
bash build.sh
```
@@ -451,9 +458,9 @@ curl -X POST "http://0.0.0.0:8180/v1/chat/completions" \
### 4.3 PaddleOCR-VL系列
#### 4.3.1 PaddleOCR-VL-0.9B
- (可选) 安装 paddleocr
- (可选) 源码编译安装 paddleocr
如果想要安装最新的`paddleocr`,可以源码编译。镜像里是基于`39128c2c7fd40be44d8f33498cabd4ec10f1bfcd`源码编译安装的
如果想要安装最新的`paddleocr`,可以源码编译。镜像里的版本是`3.3.2`
```bash
git clone -b main https://github.com/PaddlePaddle/PaddleOCR.git
@@ -512,7 +519,7 @@ import os
from paddleocr import PaddleOCRVL
input_path = "./images"
pipeline = PaddleOCRVL(vl_rec_backend="fastdeploy-server", vl_rec_server_url="http://127.0.0.1:8180/v1")
pipeline = PaddleOCRVL(vl_rec_backend="fastdeploy-server", vl_rec_server_url="http://127.0.0.1:8180/v1", device="iluvatar_gpu")
file_list = os.listdir(input_path)
for file_name in file_list:
file_path = os.path.join(input_path, file_name)