-
Notifications
You must be signed in to change notification settings - Fork 276
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
how to run the model on mps device? #25
Comments
Hi @vinbrule, can you try something like this: from galai import gal
model = gal.load_model("base", num_gpus=0)
model.model.to("mps")
model.generate("The Transformer architecture [START_REF]") ? |
Good suggestion, but unfortunately does not work. Due pytorch bug pytorch/pytorch#77764 |
Thanks @cerkut for testing it and for the stack trace. It seems that |
Also, did you try the |
Thanks, almost working now.
At this point, when I run the model on CPU, I get the perfect answer:
But on MPS |
how to run the model on mps device?
The text was updated successfully, but these errors were encountered: