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

Error no kernel image is available for execution on the device #75

Open
consensual-hallucination opened this issue May 21, 2023 · 2 comments

Comments

@consensual-hallucination

Hi, when I try to train, it throws an error:

C:\Users\PC\anaconda3\envs\DLAS\lib\site-packages\torch\optim\lr_scheduler.py:138: 
UserWarning: Detected call of `lr_scheduler.step()` before `optimizer.step()`. 
In PyTorch 1.1.0 and later, you should call them in the opposite order: 
`optimizer.step()` before `lr_scheduler.step()`.  
Failure to do this will result in PyTorch skipping the first value of the learning rate schedule. 
See more details at https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate
  warnings.warn("Detected call of `lr_scheduler.step()` before `optimizer.step()`. "
Error no kernel image is available for execution on the device at line 167 in file 
D:\ai\tool\bitsandbytes\csrc\ops.cu
Press any key to continue

I thought this may be wrong CUDA version installed but I checked and my 1070 seem to be compatible with with CUDA 8+.

Anyone encountered this error and found a way to fix it?
Thanks.

@mementos94
Copy link

I have the same issue with 1070ti

@consensual-hallucination
Copy link
Author

I have the same issue with 1070ti

The issue seem to be bitsandbytes / cuda version related.
I didn't have much time to investigate it yet so for now I'm using DLAS without it and it works ok. It would be nice to have it working tho. I'll look into this once I have some spare time.

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