Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
GPT2_onnxruntime
Commits
c0950e59
Commit
c0950e59
authored
Oct 16, 2023
by
yangql
Browse files
增加方法二
parent
163b141c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
README.md
README.md
+8
-1
No files found.
README.md
View file @
c0950e59
...
@@ -15,7 +15,7 @@ GPT-2中使用了掩模自注意力(masked self-attention),通过屏蔽当前
...
@@ -15,7 +15,7 @@ GPT-2中使用了掩模自注意力(masked self-attention),通过屏蔽当前
<img
src=
"./Doc/Images/GPT_04.png"
style=
"zoom:70%;"
align=
middle
>
<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
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=/
...
@@ -28,6 +28,13 @@ docker run --shm-size 16g --network=host --name=gpt2_ort --privileged --device=/
# 激活dtk
# 激活dtk
source /opt/dtk/env.sh
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模型可以推理出后续的诗句。
采用交互式界面,通过输入开头诗词,GPT2模型可以推理出后续的诗句。
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment