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

No CUDA GPUs are available #56

Open
Eleven955 opened this issue Apr 18, 2024 · 1 comment
Open

No CUDA GPUs are available #56

Eleven955 opened this issue Apr 18, 2024 · 1 comment

Comments

@Eleven955
Copy link

Eleven955 commented Apr 18, 2024

您好,我在git clone这个repo,并用pip install -e .安装库以后,运行代码出现No CUDA GPUs are available的问题,但实际上我是在服务器上运行代码的,在命令行运行nvidia-smi也是正常的
问题出现在OmniEvent/examples/ED/token_classification.py的第88行model.cuda()

@Eleven955
Copy link
Author

我查找网上的资料,卸载torch后重新安装
pip uninstall torch
pip cache purge
conda install -c pytorch torchvision cudatoolkit=11.3 pytorch
运行到import torch时出现No module named 'torch'的问题

@h-peng17 h-peng17 reopened this Nov 20, 2024
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

2 participants