Commit c0950e59 authored by yangql's avatar yangql
Browse files

增加方法二

parent 163b141c
......@@ -15,7 +15,7 @@ GPT-2中使用了掩模自注意力(masked self-attention),通过屏蔽当前
<img src="./Doc/Images/GPT_04.png" style="zoom:70%;" align=middle>
## 环境配置
### Docker
### Docker(方法一)
拉取镜像:
```
docker pull image.sourcefind.cn:5000/dcu/admin/base/custom:ort1.14.0_migraphx3.0.0-dtk22.10.1
......@@ -28,6 +28,13 @@ docker run --shm-size 16g --network=host --name=gpt2_ort --privileged --device=/
# 激活dtk
source /opt/dtk/env.sh
```
### Dockerfile(方法二)
```
cd ./docker
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
```
## 数据集
采用交互式界面,通过输入开头诗词,GPT2模型可以推理出后续的诗句。
......
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