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
201bdae4
"src/hardware/vscode:/vscode.git/clone" did not exist on "708aae1237f6758a448558ae82fe0d442c195df2"
Commit
201bdae4
authored
Aug 16, 2024
by
yangql
Browse files
增加对dtk24.04.1的支持,以及对k100_AI的支持。
parent
8b8b69c2
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 @
201bdae4
...
...
@@ -18,12 +18,12 @@ GPT-2中使用了掩模自注意力(masked self-attention),通过屏蔽当前
### Docker(方法一)
拉取镜像:
```
docker pull image.sourcefind.cn:5000/dcu/admin/base/
custom:ort1.14.0_migraphx3.
0.0-dtk2
2.10.1
docker pull image.sourcefind.cn:5000/dcu/admin/base/
migraphx:4.3.0-ubuntu2
0.0
4
-dtk2
4.04.1-py3.10
```
创建并启动容器:
```
docker run --shm-size 16g --network=host --name=gpt2_o
rt
--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_o
nnxruntime -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
source /opt/dtk/env.sh
...
...
@@ -33,7 +33,7 @@ source /opt/dtk/env.sh
cd ./docker
docker build --no-cache -t gpt2_onnxruntime:2.0 .
docker run --shm-size 16g --network=host --name=gpt2_o
rt
--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_o
nnxruntime -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/
# 安装依赖
pip
install
-
r
requirements
.
txt
pip
uninstall
urllib3
pip
install
urllib3
==
1.23
-
i
https
:
//
pypi
.
tuna
.
tsinghua
.
edu
.
cn
/
simple
```
#### 运行示例
```
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