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_migraphx
Commits
99a94034
Commit
99a94034
authored
Aug 22, 2024
by
liucong
Browse files
修改readme
parent
131ba284
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
11 deletions
+5
-11
CMakeLists.txt
CMakeLists.txt
+1
-7
README.md
README.md
+3
-3
docker/Dockerfile
docker/Dockerfile
+1
-1
No files found.
CMakeLists.txt
View file @
99a94034
...
@@ -12,15 +12,9 @@ set(CMAKE_BUILD_TYPE release)
...
@@ -12,15 +12,9 @@ set(CMAKE_BUILD_TYPE release)
# 添加头文件路径
# 添加头文件路径
set
(
INCLUDE_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/Src/
set
(
INCLUDE_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/Src/
${
CMAKE_CURRENT_SOURCE_DIR
}
/Src/Utility/
${
CMAKE_CURRENT_SOURCE_DIR
}
/Src/Utility/
$ENV{DTKROOT}/include/
$ENV{DTKROOT}/include/
)
${
CMAKE_CURRENT_SOURCE_DIR
}
/depend/include/
)
include_directories
(
${
INCLUDE_PATH
}
)
include_directories
(
${
INCLUDE_PATH
}
)
# 添加依赖库路径
set
(
LIBRARY_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/depend/lib64/
$ENV{DTKROOT}/lib/
)
link_directories
(
${
LIBRARY_PATH
}
)
# 添加依赖库
# 添加依赖库
set
(
LIBRARY migraphx
set
(
LIBRARY migraphx
migraphx_gpu
migraphx_gpu
...
...
README.md
View file @
99a94034
...
@@ -23,13 +23,13 @@ GPT-2中使用了掩模自注意力(masked self-attention),通过屏蔽当前
...
@@ -23,13 +23,13 @@ GPT-2中使用了掩模自注意力(masked self-attention),通过屏蔽当前
拉取镜像:
拉取镜像:
```
```
docker pull image.sourcefind.cn:5000/dcu/admin/base/migraphx:4.
0
.0-
centos7.6
-dtk2
3
.04.1-py3
8-latest
docker pull image.sourcefind.cn:5000/dcu/admin/base/migraphx:4.
3
.0-
ubuntu20.04
-dtk2
4
.04.1-py3
.10
```
```
创建并启动容器,安装相关依赖:
创建并启动容器,安装相关依赖:
```
```
docker run --shm-size 16g --network=host --name=gpt2_migraphx --privileged --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $PWD/gpt2_migraphx:/home/gpt2_migraphx -it <Your Image ID> /bin/bash
docker run --shm-size 16g --network=host --name=gpt2_migraphx --privileged --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $PWD/gpt2_migraphx:/home/gpt2_migraphx
-v /opt/hyhal:/opt/hyhal:ro
-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 gpt2_migraphx:2.0 .
docker build --no-cache -t gpt2_migraphx:2.0 .
docker run --shm-size 16g --network=host --name=gpt2_migraphx --privileged --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $PWD/gpt2_migraphx:/home/gpt2_migraphx -it <Your Image ID> /bin/bash
docker run --shm-size 16g --network=host --name=gpt2_migraphx --privileged --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $PWD/gpt2_migraphx:/home/gpt2_migraphx
-v /opt/hyhal:/opt/hyhal:ro
-it <Your Image ID> /bin/bash
# 激活dtk
# 激活dtk
source /opt/dtk/env.sh
source /opt/dtk/env.sh
...
...
docker/Dockerfile
View file @
99a94034
FROM
image.sourcefind.cn:5000/dcu/admin/base/migraphx:4.0.0-centos7.6-dtk23.04.1-py38-latest
FROM
image.sourcefind.cn:5000/dcu/admin/base/migraphx:4.3.0-ubuntu20.04-dtk24.04.1-py3.10
\ No newline at end of file
\ 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