Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
xiao-ming-code opened this issue Jun 19, 2022 · 13 comments
Closed

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

xiao-ming-code opened this issue Jun 19, 2022 · 13 comments

Comments

@xiao-ming-code
Copy link

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

@Jiaxin-Wen
Copy link
Member

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

@xiao-ming-code
Copy link
Author

#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
Copy link
Author

#24 it is caused by your own environment. You can use the docker we provide.
服务器显卡是RTX3090,是不是docker cuda版本不兼容呢?
有什么办法可以解决么?

@t1101675
Copy link
Member

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

@xiao-ming-code
Copy link
Author

xiao-ming-code commented Jun 20, 2022

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

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

@t1101675
Copy link
Member

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

@Sylarair
Copy link

Sylarair commented Jul 7, 2022

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

@t1101675
Copy link
Member

t1101675 commented Jul 7, 2022

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

@xiao-ming-code
Copy link
Author

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

@t1101675
Copy link
Member

t1101675 commented Jul 7, 2022

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

@aaa123git
Copy link

aaa123git commented Jul 9, 2022

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

@xxf09th
Copy link

xxf09th commented Jul 20, 2022

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

@Decem-Y
Copy link

Decem-Y commented Aug 16, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants