-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
[BUG] RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! #181
Comments
Hello there, thank you for opening an Issue ! 🙏🏻 The team was notified and they will get back to you asap. |
The same bug: |
add .to(x.device); but I think it is inefficient |
Replace the following code at line 202 in zeta/nn/modules/simple_mamba.py with:
|
Stale issue message |
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument mat2 in method wrapper_CUDA_mm
import torch
from zeta.nn import MambaBlock
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
block = MambaBlock(dim=64, depth=1)
x = torch.randn(1, 10, 64).to(device)
y = block(x).to(device)
print(y.shape)
The text was updated successfully, but these errors were encountered: