Commit 201bdae4 authored by yangql's avatar yangql
Browse files

增加对dtk24.04.1的支持,以及对k100_AI的支持。

parent 8b8b69c2
...@@ -18,12 +18,12 @@ GPT-2中使用了掩模自注意力(masked self-attention),通过屏蔽当前 ...@@ -18,12 +18,12 @@ GPT-2中使用了掩模自注意力(masked self-attention),通过屏蔽当前
### Docker(方法一) ### Docker(方法一)
拉取镜像: 拉取镜像:
``` ```
docker pull image.sourcefind.cn:5000/dcu/admin/base/custom:ort1.14.0_migraphx3.0.0-dtk22.10.1 docker pull image.sourcefind.cn:5000/dcu/admin/base/migraphx:4.3.0-ubuntu20.04-dtk24.04.1-py3.10
``` ```
创建并启动容器: 创建并启动容器:
``` ```
docker run --shm-size 16g --network=host --name=gpt2_ort --privileged --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $PWD/gpt2_onnxruntime:/home/gpt2_onnxruntime -it <Your Image ID> /bin/bash docker run --shm-size 16g --network=host --name=gpt2_onnxruntime -v /opt/hyhal:/opt/hyhal:ro --privileged --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $PWD/gpt2_onnxruntime:/home/gpt2_onnxruntime -it <Your Image ID> /bin/bash
# 激活dtk # 激活dtk
source /opt/dtk/env.sh source /opt/dtk/env.sh
...@@ -33,7 +33,7 @@ source /opt/dtk/env.sh ...@@ -33,7 +33,7 @@ source /opt/dtk/env.sh
cd ./docker cd ./docker
docker build --no-cache -t gpt2_onnxruntime:2.0 . docker build --no-cache -t gpt2_onnxruntime:2.0 .
docker run --shm-size 16g --network=host --name=gpt2_ort --privileged --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $PWD/gpt2_onnxruntime:/home/gpt2_onnxruntime -it <Your Image ID> /bin/bash docker run --shm-size 16g --network=host --name=gpt2_onnxruntime -v /opt/hyhal:/opt/hyhal:ro --privileged --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $PWD/gpt2_onnxruntime:/home/gpt2_onnxruntime -it <Your Image ID> /bin/bash
``` ```
## 数据集 ## 数据集
...@@ -56,8 +56,6 @@ cd Python/ ...@@ -56,8 +56,6 @@ cd Python/
# 安装依赖 # 安装依赖
pip install -r requirements.txt pip install -r requirements.txt
pip uninstall urllib3
pip install urllib3==1.23 -i https://pypi.tuna.tsinghua.edu.cn/simple
``` ```
#### 运行示例 #### 运行示例
```python ```python
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment