Code Monkey home page Code Monkey logo

Comments (6)

Artrajz avatar Artrajz commented on August 22, 2024

Dockerfile是构建docker镜像时使用的,所以这里更改Dockerfile不会起作用。

之前我觉得使用docker的大部分都是部署在没有gpu的小型服务器上,所以在某次更新中设置为下载cpu版pytorch以减小docker镜像的体积。晚点可以添加一个安装gpu版pytorch的docker镜像。

from vits-simple-api.

RyaoChengfeng avatar RyaoChengfeng commented on August 22, 2024

Dockerfile是构建docker镜像时使用的,所以这里更改Dockerfile不会起作用。

之前我觉得使用docker的大部分都是部署在没有gpu的小型服务器上,所以在某次更新中设置为下载cpu版pytorch以减小docker镜像的体积。晚点可以添加一个安装gpu版pytorch的docker镜像。

我使用的是自己构建的镜像。

from vits-simple-api.

Artrajz avatar Artrajz commented on August 22, 2024

那在Dockerfile中安装pytorch的命令改成RUN pip install torch --index-url https://download.pytorch.org/whl/cu117然后重新构建试试,最后构建出的镜像应该是5GB左右

from vits-simple-api.

RyaoChengfeng avatar RyaoChengfeng commented on August 22, 2024

那在Dockerfile中安装pytorch的命令改成RUN pip install torch --index-url https://download.pytorch.org/whl/cu117然后重新构建试试,最后构建出的镜像应该是5GB左右

我修改了dockerfile并重新构建了,但是依旧不可用,我实在不知道出现了什么问题。
基本相同的配置在我的一个仿照moe-tts的项目中是可行的,你可以在这里看到它的代码https://huggingface.co/spaces/RyaoChengfeng/vits-moe

不过我也没有在gpu服务器上跑它的需求:)

from vits-simple-api.

Artrajz avatar Artrajz commented on August 22, 2024

我也尝试了改成RUN pip install torch --index-url https://download.pytorch.org/whl/cu117后,docker安装的pytorch版本确实变为了torch:2.0.1+cu117,再配置好gpu应该可以用才对。然而我也没有gpu服务器去测试和验证 😢

from vits-simple-api.

mdh67899 avatar mdh67899 commented on August 22, 2024

我也尝试了改成RUN pip install torch --index-url https://download.pytorch.org/whl/cu117后,docker安装的pytorch版本确实变为了torch:2.0.1+cu117,再配置好gpu应该可以用才对。然而我也没有gpu服务器去测试和验证 😢

此处当有广告位,赶紧来家云厂商或者GPU厂商赞助一台GPU机器

from vits-simple-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.