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

Two devices bug. #208

Open
seblessa opened this issue Nov 21, 2024 · 1 comment
Open

Two devices bug. #208

seblessa opened this issue Nov 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@seblessa
Copy link

I kept getting this error:

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 boundaries in method wrapper_CUDA_Tensor_bucketize)

So I modified the source code, and after a few errors like the above I got it to work.

@seblessa seblessa added the bug Something isn't working label Nov 21, 2024
@lostella
Copy link
Contributor

@seblessa could you share a minimal reproducible example for the issue?

I think you will run into the above issue if the context data you pass to chronos is allocated to the GPU. Is that what you're doing? If so, just ensuring that the input batches you pass to the model live on CPU should make it work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants