outlines icon indicating copy to clipboard operation
outlines copied to clipboard

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

Open ManilShrestha opened this issue 1 year ago • 1 comments

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.

ManilShrestha avatar May 20 '24 23:05 ManilShrestha

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

rlouf avatar May 22 '24 08:05 rlouf

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

rlouf avatar May 30 '24 13:05 rlouf