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

Bug: Tensor device error when using multiple gpu #22

Open
zinccat opened this issue Jan 4, 2025 · 0 comments
Open

Bug: Tensor device error when using multiple gpu #22

zinccat opened this issue Jan 4, 2025 · 0 comments

Comments

@zinccat
Copy link

zinccat commented Jan 4, 2025

When running examples/hard_constraints.py using two gpus, has following error:

hfppl/hfppl/llms.py", line 244, in past_padded
    return torch.cat(
           ^^^^^^^^^^
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:1 and cuda:0! (when checking argument for argument tensors in method wrapper_CUDA_cat)
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

1 participant