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
StableTTS_pytorch
Commits
077e7d11
Commit
077e7d11
authored
Sep 18, 2024
by
dcuai
Browse files
Update dtk24.04.1镜像
parent
eb0b443a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
README.md
README.md
+6
-10
No files found.
README.md
View file @
077e7d11
...
@@ -22,13 +22,12 @@ mv stabletts_pytorch StableTTS # 去框架名后缀
...
@@ -22,13 +22,12 @@ mv stabletts_pytorch StableTTS # 去框架名后缀
### Docker(方法一)
### Docker(方法一)
```
```
docker pull image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.1.0-
centos7.6-dtk23.10
-py3
8
docker pull image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.1.0-
ubuntu20.04-dtk24.04.1
-py3
.10
# <your IMAGE ID>为以上拉取的docker的镜像ID替换
,本镜像为:ffa1f63239fc
# <your IMAGE ID>为以上拉取的docker的镜像ID替换
docker run -it --shm-size=32G -v $PWD/StableTTS:/home/StableTTS -v /opt/hyhal:/opt/hyhal:ro --privileged=true --device=/dev/kfd --device=/dev/dri/ --group-add video --name stabletts <your IMAGE ID> bash
docker run -it --shm-size=32G -v $PWD/StableTTS:/home/StableTTS -v /opt/hyhal:/opt/hyhal:ro --privileged=true --device=/dev/kfd --device=/dev/dri/ --group-add video --name stabletts <your IMAGE ID> bash
cd /home/StableTTS
cd /home/StableTTS
pip install -r requirements.txt # requirements.txt
pip install -r requirements.txt # requirements.txt
# torchaudio可从whl.zip文件里获取安装:
pip install torchaudio-2.1.2+4b32183.abi0.dtk2310.torch2.1.0a0-cp38-cp38-linux_x86_64.whl
```
```
### Dockerfile(方法二)
### Dockerfile(方法二)
```
```
...
@@ -36,22 +35,19 @@ cd StableTTS/docker
...
@@ -36,22 +35,19 @@ cd StableTTS/docker
docker build --no-cache -t stabletts:latest .
docker build --no-cache -t stabletts:latest .
docker run --shm-size=32G --name stabletts -v /opt/hyhal:/opt/hyhal:ro --privileged=true --device=/dev/kfd --device=/dev/dri/ --group-add video -v $PWD/../../StableTTS:/home/StableTTS -it stabletts bash
docker run --shm-size=32G --name stabletts -v /opt/hyhal:/opt/hyhal:ro --privileged=true --device=/dev/kfd --device=/dev/dri/ --group-add video -v $PWD/../../StableTTS:/home/StableTTS -it stabletts bash
# 若遇到Dockerfile启动的方式安装环境需要长时间等待,可注释掉里面的pip安装,启动容器后再安装python库:pip install -r requirements.txt。
# 若遇到Dockerfile启动的方式安装环境需要长时间等待,可注释掉里面的pip安装,启动容器后再安装python库:pip install -r requirements.txt。
# torchaudio可从whl.zip文件里获取安装:
pip install torchaudio-2.1.2+4b32183.abi0.dtk2310.torch2.1.0a0-cp38-cp38-linux_x86_64.whl
```
```
### Anaconda(方法三)
### Anaconda(方法三)
1、关于本项目DCU显卡所需的特殊深度学习库可从光合开发者社区下载安装:
1、关于本项目DCU显卡所需的特殊深度学习库可从光合开发者社区下载安装:
-
https://developer.hpccube.com/tool/
-
https://developer.hpccube.com/tool/
```
```
DTK驱动:dtk2
3.10
DTK驱动:dtk2
4.04.1
python:python3.
8
python:python3.
10
torch:2.1.0
torch:2.1.0
torchvision:0.16.0
torchvision:0.16.0
torchaudio:2.1.2
torchaudio:2.1.2
```
```
```
```
# torchaudio可从whl.zip文件里获取安装:
pip install torchaudio-2.1.2+4b32183.abi0.dtk2310.torch2.1.0a0-cp38-cp38-linux_x86_64.whl
```
```
`Tips:以上dtk驱动、python、torch等DCU相关工具版本需要严格一一对应。`
`Tips:以上dtk驱动、python、torch等DCU相关工具版本需要严格一一对应。`
...
...
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