-
Notifications
You must be signed in to change notification settings - Fork 241
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
[demo] error encountered running Mini Demo code in https://github.com/Luodian/Otter/blob/main/docs/demo.md. #147
Comments
hi I seems the error with xformers, you could try to uninstall xformers and run it again?
And make sure you are using the latest main branch code. |
File "miniconda3/envs/otter_py39/lib/python3.9/site-packages/transformers/models/clip/modeling_clip.py", line 195, in forward not work, similar error ,using the latest main branch code |
should i downgrade the torch version from 2.0.0 to 1.x |
I dont think so, we use torch 2.0 as well. Could you paste your accelerate package version? It's weird to see this error. |
@zhuwenzhen Please help to it, thanks! |
I am not really sure if downgrading torch suite is a working solution chenfei-wu/TaskMatrix#283 But you can give it a shot for a quick possible fix : ) |
Great project! But Im stuck at this issue too. I've tried downgraded torch or uninstalled xformers. Couldn't work as well. Has this been resolved for @laserwave ? |
@Nntsyeo Do you have the same issue, can you post it so we can see what's the possible reason could be. |
@Luodian Pardon me, here's my encounter. Error:
Can I also check if this code (in main) remains correct for the demo?
My packages are:
|
Compare cuda version returned by nvidia-smi and nvcc --version. They need to match. Or at least, the version get by nvcc --version should be <= the version get by nvidia-smi. I think probably your GPU can not support cuda 11.7 and above. But torch 2.0.0 can only be installed with cuda 11.7 and above. |
NVIDIA-SMI 515.76 Driver Version: 515.76 CUDA Version: 11.7 nvcc: NVIDIA (R) Cuda compiler driver |
Ok. Can you run smoothly for this code?
|
Hi it seems that another related issue has been addressed. #165 |
File "Otter/Otter/xformers_model/clip.py", line 77, in forward
patch_embeds = self.patch_embedding(
File "python3.9/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "lib/python3.9/site-packages/accelerate/hooks.py", line 165, in new_forward
output = old_forward(*args, **kwargs)
File "lib/python3.9/site-packages/torch/nn/modules/conv.py", line 463, in forward
return self._conv_forward(input, self.weight, self.bias)
File "lib/python3.9/site-packages/torch/nn/modules/conv.py", line 459, in _conv_forward
return F.conv2d(input, weight, bias, self.stride,
RuntimeError: GET was unable to find an engine to execute this computation
Environment:
torch 2.0.0, python 3.9, cuda11.7,
The text was updated successfully, but these errors were encountered: