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_onnxruntime
Commits
e200772b
Commit
e200772b
authored
Oct 11, 2023
by
yangql
Browse files
修改格式
parent
2e29f386
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
README.md
README.md
+7
-7
No files found.
README.md
View file @
e200772b
...
@@ -29,7 +29,7 @@ docker pull image.sourcefind.cn:5000/dcu/admin/base/custom:ort1.14.0_migraphx3.0
...
@@ -29,7 +29,7 @@ docker pull image.sourcefind.cn:5000/dcu/admin/base/custom:ort1.14.0_migraphx3.0
创建并启动容器,安装相关依赖:
创建并启动容器,安装相关依赖:
```
```
docker run --shm-size 16g --network=host --name=bert_ort --privileged --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $PWD/bert_o
rt
:/home/bert_o
rt
-it <Your Image ID> /bin/bash
docker run --shm-size 16g --network=host --name=bert_ort --privileged --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $PWD/bert_o
nnxruntime
:/home/bert_o
nnxruntime
-it <Your Image ID> /bin/bash
# 激活dtk
# 激活dtk
source /opt/dtk/env.sh
source /opt/dtk/env.sh
...
@@ -46,8 +46,8 @@ export PYTHONPATH=/opt/dtk/lib:$PYTHONPATH
...
@@ -46,8 +46,8 @@ export PYTHONPATH=/opt/dtk/lib:$PYTHONPATH
```
```
#### 运行示例
#### 运行示例
```
python
```
python
# 进入bert o
rt
工程根目录
# 进入bert o
nnxruntime
工程根目录
cd
<
path_to_bert_o
rt
>
cd
<
path_to_bert_o
nnxruntime
>
# 进入示例程序目录
# 进入示例程序目录
cd
Python
/
cd
Python
/
...
@@ -69,7 +69,7 @@ rbuild build -d depend
...
@@ -69,7 +69,7 @@ rbuild build -d depend
#### 设置环境变量
#### 设置环境变量
将依赖库依赖加入环境变量LD_LIBRARY_PATH,在~/.bashrc中添加如下语句:
将依赖库依赖加入环境变量LD_LIBRARY_PATH,在~/.bashrc中添加如下语句:
```
```
export LD_LIBRARY_PATH=<path_to_bert_o
rt
>/depend/lib64/:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=<path_to_bert_o
nnxruntime
>/depend/lib64/:$LD_LIBRARY_PATH
```
```
然后执行:
然后执行:
```
```
...
@@ -77,9 +77,9 @@ source ~/.bashrc
...
@@ -77,9 +77,9 @@ source ~/.bashrc
source /opt/dtk/env.sh
source /opt/dtk/env.sh
```
```
#### 运行示例
#### 运行示例
```
c++
```
# 进入bert o
rt
工程根目录
# 进入bert o
nnxruntime
工程根目录
cd
<
path_to_bert_o
rt
>
cd <path_to_bert_o
nnxruntime
>
# 进入build目录
# 进入build目录
cd build/
cd build/
...
...
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