You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I ran this code, the model got 6.6Gb on GPU. But I've got the exception: You are calling .generate() with the input_ids being on a device type different than your model's device. input_ids is on cuda, whereas the model is on cpu. when ran generate method.
Does anyone know the way to fix it?
The text was updated successfully, but these errors were encountered:
I load the model to GPU like this:
and generate code like this:
when I ran this code, the model got 6.6Gb on GPU. But I've got the exception: You are calling .generate() with the
input_ids
being on a device type different than your model's device.input_ids
is on cuda, whereas the model is on cpu. when ran generate method.Does anyone know the way to fix it?
The text was updated successfully, but these errors were encountered: