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

Make sure that logits are always on the device where the model weights are #910

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ManilShrestha
Copy link

The issue was due to the logits always being in device=0, I made it such that the logits generated by the model should always be in the model's device.

@rlouf rlouf changed the title Fixed issue #909 where the RuntimeError was occurring due to tensors … Make sure that logits are always on the device where the model weights are May 22, 2024
@rlouf
Copy link
Member

rlouf commented May 22, 2024

What happens when the model is loaded on several GPUs? I think that was the rationale behind pinning the logits to device 0.

@rlouf rlouf added the bug label May 30, 2024
@rlouf
Copy link
Member

rlouf commented May 30, 2024

Note that this is going to become irrelevant once #926 is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants