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
b70ee016
Commit
b70ee016
authored
Oct 11, 2023
by
yangql
Browse files
修改格式
parent
f3d70e0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
README.md
README.md
+3
-5
No files found.
README.md
View file @
b70ee016
...
@@ -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
...
...
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