-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
llm.generate issue on CPU machines #1715
Labels
bug
Something isn't working
Comments
This issue seems to only occur on MacBooks. It works fine on Studio CPUs. |
I pinpointed it a bit more. Something in the model forward path. After the ~7th block the inputs turn nan: Line 98 in 3d36b6b
|
Ok found it! It’s just that the default precision for CPU on MacBooks is float 16. If you change it to 32, it works fine |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description
Another issue with the llm.generate function that was somehow introduced in recent commits (I am surprised that CI didn't catch this):
results in:
Works fine in previous versions like 0.4.9.
What operating system are you using?
macOS
LitGPT Version
The text was updated successfully, but these errors were encountered: