Git Product home page Git Product logo

Comments (5)

abse4411 avatar abse4411 commented on June 18, 2024

你好,你可以在项目的Python环境下尝试运行下面的脚本:

import torch
print(torch.cuda.is_available())

a = torch.randn((1000,1000)).to('cuda')
for i in range(10000):
    a = a * a

在运行前可以先打开任务管理器查看显卡的性能面板,如果运行该脚本后输出为True,且显卡有段时间利用率不为0,说明你的环境已经正确装好了。鉴于你可以跑 SD模型,那应该是从本地加载模型到内存需要一定的时间,是否在开始翻译过程中没有显存占用?

from projz_renpy_translation.

AIHardCore avatar AIHardCore commented on June 18, 2024

你好,你可以在项目的Python环境下尝试运行下面的脚本:

import torch
print(torch.cuda.is_available())

a = torch.randn((1000,1000)).to('cuda')
for i in range(10000):
    a = a * a

在运行前可以先打开任务管理器查看显卡的性能面板,如果运行该脚本后输出为True,且显卡有段时间利用率不为0,说明你的环境已经正确装好了。鉴于你可以跑 SD模型,那应该是从本地加载模型到内存需要一定的时间,是否在开始翻译过程中没有显存占用?

你好,我运行你给的代码,报了个异常:AssertionError: Torch not compiled with CUDA enabled

from projz_renpy_translation.

abse4411 avatar abse4411 commented on June 18, 2024

你好,你可以在项目的Python环境下尝试运行下面的脚本:

import torch
print(torch.cuda.is_available())

a = torch.randn((1000,1000)).to('cuda')
for i in range(10000):
    a = a * a

在运行前可以先打开任务管理器查看显卡的性能面板,如果运行该脚本后输出为True,且显卡有段时间利用率不为0,说明你的环境已经正确装好了。鉴于你可以跑 SD模型,那应该是从本地加载模型到内存需要一定的时间,是否在开始翻译过程中没有显存占用?

你好,我运行你给的代码,报了个异常:AssertionError: Torch not compiled with CUDA enabled

应该是pytorch和cuda版本不对应,可以把环境中pytorch重新卸载在安装对应显卡版本的pytorch:https://github.com/abse4411/projz_renpy_translation#3%E5%AE%89%E8%A3%85cuda%E6%94%AF%E6%8C%81%E7%9A%84pytorch

from projz_renpy_translation.

AIHardCore avatar AIHardCore commented on June 18, 2024

你好,你可以在项目的Python环境下尝试运行下面的脚本:

import torch
print(torch.cuda.is_available())

a = torch.randn((1000,1000)).to('cuda')
for i in range(10000):
    a = a * a

在运行前可以先打开任务管理器查看显卡的性能面板,如果运行该脚本后输出为True,且显卡有段时间利用率不为0,说明你的环境已经正确装好了。鉴于你可以跑 SD模型,那应该是从本地加载模型到内存需要一定的时间,是否在开始翻译过程中没有显存占用?

你好,我运行你给的代码,报了个异常:AssertionError: Torch not compiled with CUDA enabled

应该是pytorch和cuda版本不对应,可以把环境中pytorch重新卸载在安装对应显卡版本的pytorch:https://github.com/abse4411/projz_renpy_translation#3%E5%AE%89%E8%A3%85cuda%E6%94%AF%E6%8C%81%E7%9A%84pytorch

我的CUDA版本是12.2,pytorch好像没有对应版本。所以可以安装了12.1版本的:pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu121。不知道是不是这个问题

from projz_renpy_translation.

abse4411 avatar abse4411 commented on June 18, 2024

你好,你可以在项目的Python环境下尝试运行下面的脚本:

import torch
print(torch.cuda.is_available())

a = torch.randn((1000,1000)).to('cuda')
for i in range(10000):
    a = a * a

在运行前可以先打开任务管理器查看显卡的性能面板,如果运行该脚本后输出为True,且显卡有段时间利用率不为0,说明你的环境已经正确装好了。鉴于你可以跑 SD模型,那应该是从本地加载模型到内存需要一定的时间,是否在开始翻译过程中没有显存占用?

你好,我运行你给的代码,报了个异常:AssertionError: Torch not compiled with CUDA enabled

应该是pytorch和cuda版本不对应,可以把环境中pytorch重新卸载在安装对应显卡版本的pytorch:https://github.com/abse4411/projz_renpy_translation#3%E5%AE%89%E8%A3%85cuda%E6%94%AF%E6%8C%81%E7%9A%84pytorch

我的CUDA版本是12.2,pytorch好像没有对应版本。所以可以安装了12.1版本的:pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu121。不知道是不是这个问题

建议使用你当时可以跑SD环境来安装pytorch。

from projz_renpy_translation.

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.