thu-coai / EVA

EVA: Large-scale Pre-trained Chit-Chat Models
MIT License
305 stars 51 forks source link

import /home/xx/.cache/torch_extensions/ #50

Closed xiao-ming-code closed 2 years ago

xiao-ming-code commented 2 years ago

我在进行 bash eva_fineturn.sh 时出现下面这个错误?我尝试了很久还是没有解决,麻烦你看一下 @HUTR%FL{3OUMEH 3BMQ`UJ

Jiaxin-Wen commented 2 years ago

24

it is caused by your own environment. You can use the docker we provide.

xiao-ming-code commented 2 years ago

24 it is caused by your own environment. You can use the docker we provide.

你好,我使用docker ,但是torch.cuda.is_available==False,cuda就不可用了,这可以怎么解决呢? image

xiao-ming-code commented 2 years ago

24 it is caused by your own environment. You can use the docker we provide.

服务器显卡是RTX3090,是不是docker cuda版本不兼容呢? 有什么办法可以解决么?

t1101675 commented 2 years ago

可以尝试在 docker 中安装更高版本的 cuda,同时也需要重新安装对应版本的 pytorch 和 apex

xiao-ming-code commented 2 years ago

可以尝试在 docker 中安装更高版本的 cuda,同时也需要重新安装对应版本的 pytorch 和 apex

您好,我安装了cuda11.3,和对应的pytorch,但是cuda还是不可用的,请问下还有什么可能的办法么?

t1101675 commented 2 years ago

什么叫 cuda 不可用呢?如果 python 环境下 torch.cuda.is_available() 输出是 False 的话,说明 pytorch 和 cuda 仍然没有对应。可以看下 python 环境中 torch.version.cuda 的输出和命令行环境中 nvcc --version 的输出是否能对应。

Sylarair commented 2 years ago

我这边torch.version.cuda和nvcc --version一致,但是还是出现了与@xiao-ming-code相同的问题

t1101675 commented 2 years ago

是什么问题?是 "cuda不可用" 还是 import /home/xx/.cache/torch_extensions

xiao-ming-code commented 2 years ago

torch.version.cuda和nvcc --version一致,但是torch.cuda.is_available()输出还是False

t1101675 commented 2 years ago

这是你环境配置的问题了,可以看看环境变量是否设置正确

aaa123git commented 2 years ago

你是否安装了nvidia-docker?如果没装nvidia-docker,docker环境是不能用gpu的

xxf09th commented 2 years ago

can you paste the dockerfile to build image: yxthu17/eva:1.5?

Decem-Y commented 2 years ago

我找到了解决办法,在/root/.cache/torch_extensions/ 目录下执行ninja即可生成util.so