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

mac studio can't generate token #35

Open
arthasyou opened this issue Nov 1, 2023 · 2 comments
Open

mac studio can't generate token #35

arthasyou opened this issue Nov 1, 2023 · 2 comments

Comments

@arthasyou
Copy link

the gpt.py code well run at cuda. but when I can devices with mps. this model can be trained. but can not generate token.
when run the code at generating can't finish. keeping running forever. thx for reply.

@arthasyou
Copy link
Author

but when I change mps as cpu generating can work well but too slow

@fasterinnerlooper
Copy link

Does it run forever or does it just take a really long time? I ask because the most efficient way of training and running inference on a model like this is to use a CUDA-based GPU. Even the MPS chips in Macs are still not as efficient as a CUDA-based GPU, though they are more efficient than a CPU.
The other side of things is that the MPS support in PyTorch is changing everyday, so make sure you're using the most up-to-date version of PyTorch when you're training and running inference on your model.
My knowledge of debugging LLMs is lacking so I can't provide any way to find out if the model you produce is having computational issues or if it's just taking a really long time, but this could be an avenue you could go down if you're certain that you're code is working as intended.
I'd be interesting in seeing how things go for you as my workplace provides us with MacBooks, and I have yet to try training a model on this specific hardware.

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

2 participants