Commit b70ee016 authored by yangql's avatar yangql
Browse files

修改格式

parent f3d70e0a
...@@ -21,14 +21,10 @@ GPT-2中使用了掩模自注意力(masked self-attention),通过屏蔽当前 ...@@ -21,14 +21,10 @@ GPT-2中使用了掩模自注意力(masked self-attention),通过屏蔽当前
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/custom:ort1.14.0_migraphx3.0.0-dtk22.10.1
``` ```
创建并启动容器,安装相关依赖 创建并启动容器:
``` ```
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_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
# 安装依赖
pip uninstall urllib3
pip install urllib3==1.23 -i https://pypi.tuna.tsinghua.edu.cn/simple
# 激活dtk # 激活dtk
source /opt/dtk/env.sh source /opt/dtk/env.sh
``` ```
...@@ -53,6 +49,8 @@ cd Python/ ...@@ -53,6 +49,8 @@ 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