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
BERT_migraphx
Commits
9e5f0e72
Commit
9e5f0e72
authored
Aug 14, 2024
by
dcuai
Browse files
Update README.md
parent
3c36c06b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
README.md
README.md
+4
-4
No files found.
README.md
View file @
9e5f0e72
...
@@ -23,13 +23,13 @@ BERT的全称为Bidirectional Encoder Representation from Transformers,是一
...
@@ -23,13 +23,13 @@ BERT的全称为Bidirectional Encoder Representation from Transformers,是一
拉取镜像:
拉取镜像:
```
plaintext
```
plaintext
docker pull image.sourcefind.cn:5000/dcu/admin/base/migraphx:4.
0
.0-
centos7.6
-dtk2
3
.04.1-py38
-latest
docker pull image.sourcefind.cn:5000/dcu/admin/base/migraphx:4.
3
.0-
ubuntu20.04
-dtk2
4
.04.1-py3
.
8
```
```
创建并启动容器:
创建并启动容器:
```
plaintext
```
plaintext
docker run --shm-size 16g --network=host --name=bert_migraphx --privileged --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $PWD/bert_migraphx:/home/bert_migraphx -it <Your Image ID> /bin/bash
docker run --shm-size 16g --network=host --name=bert_migraphx
-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/bert_migraphx:/home/bert_migraphx -it <Your Image ID> /bin/bash
# 激活dtk
# 激活dtk
source /opt/dtk/env.sh
source /opt/dtk/env.sh
...
@@ -41,7 +41,7 @@ source /opt/dtk/env.sh
...
@@ -41,7 +41,7 @@ source /opt/dtk/env.sh
cd ./docker
cd ./docker
docker build --no-cache -t bert_migraphx:2.0 .
docker build --no-cache -t bert_migraphx:2.0 .
docker run --shm-size 16g --network=host --name=bert_migraphx --privileged --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $PWD/bert_migraphx:/home/bert_migraphx -it <Your Image ID> /bin/bash
docker run --shm-size 16g --network=host --name=bert_migraphx
-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/bert_migraphx:/home/bert_migraphx -it <Your Image ID> /bin/bash
# 激活dtk
# 激活dtk
source /opt/dtk/env.sh
source /opt/dtk/env.sh
...
@@ -169,4 +169,4 @@ https://developer.hpccube.com/codes/modelzoo/bert_migraphx
...
@@ -169,4 +169,4 @@ https://developer.hpccube.com/codes/modelzoo/bert_migraphx
## 参考资料
## 参考资料
https://github.com/ROCmSoftwarePlatform/AMDMIGraphX/tree/develop/examples/nlp/python_bert_squad
https://github.com/ROCmSoftwarePlatform/AMDMIGraphX/tree/develop/examples/nlp/python_bert_squad
\ No newline at end of file
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