-
Notifications
You must be signed in to change notification settings - Fork 995
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b00c61
commit 6a9d556
Showing
15 changed files
with
186 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
comments: true | ||
--- | ||
|
||
# Enflame GCU PaddlePaddle Installation Tutorial | ||
|
||
Currently, PaddleX supports the Enflame S60 chip. Considering environmental differences, we recommend using the <b>Enflame development image provided by PaddlePaddle</b> to complete the environment preparation. | ||
|
||
## 1. Docker Environment Preparation | ||
* Pull the image. This image is only for the development environment and does not contain a pre-compiled PaddlePaddle installation package. The image has TopsRider, the Enflame basic runtime environment library, installed by default. | ||
```bash | ||
# For X86 architecture | ||
docker pull ccr-2vdh3abv-pub.cnc.bj.baidubce.com/device/paddle-gcu:topsrider3.2.109-ubuntu20-x86_64-gcc84 | ||
``` | ||
* Start the container with the following command. | ||
```bash | ||
docker run --name paddle-gcu-dev -v /home:/home \ | ||
--network=host --ipc=host -it --privileged \ | ||
ccr-2vdh3abv-pub.cnc.bj.baidubce.com/device/paddle-gcu:topsrider3.2.109-ubuntu20-x86_64-gcc84 /bin/bash | ||
``` | ||
* Install the driver **outside of docker**. Please refer to the environment preparation section of [PaddlePaddle Custom Device Implementation for Enflame GCU](https://github.com/PaddlePaddle/PaddleCustomDevice/blob/develop/backends/gcu/README.md). | ||
```bash | ||
bash TopsRider_i3x_*_deb_amd64.run --driver --no-auto-load | ||
``` | ||
## 2. Install Paddle Package | ||
Download and install the wheel package released by PaddlePaddle within the docker container. Currently, Python 3.10 wheel installation packages are provided. If you require other Python versions, refer to the [PaddlePaddle official documentation](https://www.paddlepaddle.org.cn/en/install/quick) for compilation and installation. | ||
|
||
* Download and install the wheel package. | ||
```bash | ||
# Note: You need to install the CPU version of PaddlePaddle first | ||
python -m pip install paddlepaddle==3.0.0.dev20241127 -i https://www.paddlepaddle.org.cn/packages/nightly/cpu/ | ||
python -m pip install paddle_custom_gcu==3.0.0.dev20241127 -i https://www.paddlepaddle.org.cn/packages/nightly/gcu/ | ||
``` | ||
* Verify the installation package. After installation, run the following command: | ||
```bash | ||
python -c "import paddle; paddle.utils.run_check()" | ||
``` | ||
* Expect to get output like this: | ||
```bash | ||
Running verify PaddlePaddle program ... | ||
PaddlePaddle works well on 1 gcu. | ||
PaddlePaddle is installed successfully! Let's start deep learning with PaddlePaddle now. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
comments: true | ||
--- | ||
|
||
# 燧原 GCU 飞桨安装教程 | ||
|
||
当前 PaddleX 支持燧原 S60 芯片。考虑到环境差异性,我们推荐使用<b>飞桨官方提供的燧原 GCU 开发镜像</b>完成环境准备。 | ||
|
||
## 1、docker环境准备 | ||
* 拉取镜像,此镜像仅为开发环境,镜像中不包含预编译的飞桨安装包,镜像中已经默认安装了燧原软件栈 TopsRider。 | ||
```bash | ||
# 适用于 X86 架构 | ||
docker pull ccr-2vdh3abv-pub.cnc.bj.baidubce.com/device/paddle-gcu:topsrider3.2.109-ubuntu20-x86_64-gcc84 | ||
``` | ||
* 参考如下命令启动容器 | ||
```bash | ||
docker run --name paddle-gcu-dev -v /home:/home \ | ||
--network=host --ipc=host -it --privileged \ | ||
ccr-2vdh3abv-pub.cnc.bj.baidubce.com/device/paddle-gcu:topsrider3.2.109-ubuntu20-x86_64-gcc84 /bin/bash | ||
``` | ||
* **容器外**安装驱动程序。可以参考[飞桨自定义接入硬件后端(GCU)](https://github.com/PaddlePaddle/PaddleCustomDevice/blob/develop/backends/gcu/README_cn.md)环境准备章节。 | ||
```bash | ||
bash TopsRider_i3x_*_deb_amd64.run --driver --no-auto-load | ||
``` | ||
## 2、安装paddle包 | ||
在启动的 docker 容器中,下载并安装飞桨官网发布的 wheel 包。当前提供 Python3.10 的 wheel 安装包。如有其他 Python 版本需求,可以参考[飞桨官方文档](https://www.paddlepaddle.org.cn/install/quick)自行编译安装。 | ||
|
||
* 下载并安装 wheel 包。 | ||
```bash | ||
# 注意需要先安装飞桨 cpu 版本 | ||
python -m pip install paddlepaddle==3.0.0.dev20241127 -i https://www.paddlepaddle.org.cn/packages/nightly/cpu/ | ||
python -m pip install paddle_custom_gcu==3.0.0.dev20241127 -i https://www.paddlepaddle.org.cn/packages/nightly/gcu/ | ||
``` | ||
* 验证安装包:安装完成之后,运行如下命令: | ||
```bash | ||
python -c "import paddle; paddle.utils.run_check()" | ||
``` | ||
预期得到类似如下输出结果: | ||
|
||
```bash | ||
Running verify PaddlePaddle program ... | ||
PaddlePaddle works well on 1 gcu. | ||
PaddlePaddle is installed successfully! Let's start deep learning with PaddlePaddle now. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
comments: true | ||
--- | ||
|
||
# PaddleX Model List (Enflame GCU) | ||
|
||
PaddleX incorporates multiple pipelines, each containing several modules, and each module encompasses various models. You can select the appropriate models based on the benchmark data below. If you prioritize model accuracy, choose models with higher accuracy. If you prioritize model size, select models with smaller storage requirements. | ||
|
||
## Image Classification Module | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Model Name</th> | ||
<th>Top-1 Accuracy (%)</th> | ||
<th>Model Size (M)</th> | ||
<th>Model Download Link</th></tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>ResNet50</td> | ||
<td>76.96</td> | ||
<td>90.8 M</td> | ||
<td><a href="https://paddle-model-ecology.bj.bcebos.com/paddlex/official_inference_model/paddle3.0b2/ResNet50_infer.tar">Inference Model</a>/<a href="https://paddle-model-ecology.bj.bcebos.com/paddlex/official_pretrained_model/ResNet50_pretrained.pdparams">Trained Model</a></td></tr> | ||
</tbody> | ||
</table> | ||
<b>Note: The above accuracy metrics refer to Top-1 Accuracy on the [ImageNet-1k](https://www.image-net.org/index.php) validation set.</b> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
comments: true | ||
--- | ||
|
||
# PaddleX模型列表(燧原 GCU) | ||
|
||
PaddleX 内置了多条产线,每条产线都包含了若干模块,每个模块包含若干模型,具体使用哪些模型,您可以根据下边的 benchmark 数据来选择。如您更考虑模型精度,请选择精度较高的模型,如您更考虑模型存储大小,请选择存储大小较小的模型。 | ||
|
||
## 图像分类模块 | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>模型名称</th> | ||
<th>Top1 Acc(%)</th> | ||
<th>模型存储大小(M)</th> | ||
<th>模型下载链接</th></tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>ResNet50</td> | ||
<td>76.96</td> | ||
<td>90.8 M</td> | ||
<td><a href="https://paddle-model-ecology.bj.bcebos.com/paddlex/official_inference_model/paddle3.0b2/ResNet50_infer.tar">推理模型</a>/<a href="https://paddle-model-ecology.bj.bcebos.com/paddlex/official_pretrained_model/ResNet50_pretrained.pdparams">训练模型</a></td></tr> | ||
</tbody> | ||
</table> | ||
<b>注:以上精度指标为</b>[ImageNet-1k](https://www.image-net.org/index.php)<b>验证集 Top1 Acc。</b> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters