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
9a6a11a4
Commit
9a6a11a4
authored
Sep 26, 2023
by
liucong
Browse files
修改readme文档
parent
7c882143
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
Python/requirements.txt
Python/requirements.txt
+0
-1
README.md
README.md
+5
-1
docker/Dockerfile
docker/Dockerfile
+2
-1
No files found.
Python/requirements.txt
View file @
9a6a11a4
os
numpy
numpy
transformers
transformers
README.md
View file @
9a6a11a4
...
@@ -30,6 +30,10 @@ docker pull sugonhub/migraphx:3.2.1-centos7.6-dtk-23.04.1-py38
...
@@ -30,6 +30,10 @@ docker pull sugonhub/migraphx:3.2.1-centos7.6-dtk-23.04.1-py38
```
```
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 -it <Your Image ID> /bin/bash
# 安装依赖
pip uninstall urllib3
pip install urllib3==1.23 -i https://pypi.tuna.tsinghua.edu.cn/simple
```
```
### Dockerfile(方法二)
### Dockerfile(方法二)
...
@@ -63,7 +67,7 @@ cd <path_to_gpt2_migraphx>
...
@@ -63,7 +67,7 @@ cd <path_to_gpt2_migraphx>
cd Python/
cd Python/
# 安装依赖
# 安装依赖
pip install -r requirements.txt
pip install -r requirements.txt
-i https://pypi.tuna.tsinghua.edu.cn/simple
# 运行示例
# 运行示例
python gpt2.py
python gpt2.py
...
...
docker/Dockerfile
View file @
9a6a11a4
FROM
sugonhub/migraphx:3.2.1-centos7.6-dtk-23.04.1-py38
FROM
sugonhub/migraphx:3.2.1-centos7.6-dtk-23.04.1-py38
RUN
source
/opt/dtk/env.sh
RUN
source
/opt/dtk/env.sh
RUN
pip uninstall urllib3
RUN
pip
install
urllib3
==
1.23
-i
https://pypi.tuna.tsinghua.edu.cn/simple
\ 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