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

RuntimeError: CUDA error: no kernel image is available for execution on the device #79

Open
MingyuYang-Yale opened this issue Jun 13, 2024 · 2 comments

Comments

@MingyuYang-Yale
Copy link

MingyuYang-Yale commented Jun 13, 2024

Hi,

I followed the instructions on the GitHub README page to install xFuse. However, when I ran the command:

xfuse run my-config.toml --save-path my-run

I encountered the following error:

Screenshot 2024-06-13 at 2 08 32 PM

To resolve this, I attempted to upgrade Torch by running:

pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121

After the upgrade, I encountered a different error:

Screenshot 2024-06-13 at 3 11 28 PM

Additionally, when I ran nvidia-smi, here is the GPU information:

Screenshot 2024-06-13 at 2 30 07 PM

Could you please provide guidance on how to resolve this issue?

Thank you!

Best,
Mingyu

@younng367
Copy link

I have solve it. First, you should check the whole erro issue. You might be met the version issue of pytorch. Because previous pytorch vesion not support your GPU, so you need to find the best version for your GPU. It usually pop up in you erro like"NVIDIA RTX A4500 with CUDA capability sm_86 is not compatible with the current PyTorch installation."(It is my erro, and my pytorch version is 2.3.1. I find it is a higher version for my GPU, so i downgraded it . Moverover, you need to download the corresponding version for torchaudio and torchvision).

@younng367
Copy link

My mail [email protected], if i can help.

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