-
Notifications
You must be signed in to change notification settings - Fork 480
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
RuntimeError: Input type (c10::Half) and bias type (float) should be the same #10
Comments
FYI you can work around this bug by either:
|
Huh, it happens in the middle of the steps..... |
Thanks for the issue! Ive merged @timh 's branch so have a look if its still the case! |
@timh @cloneofsimo Thanks! |
I ran into the same error at inference time earlier this morning while running in Colab GPU (it was running fine in the past two days) since I started using a PyTorch Generator to specify the seed: I didn't see this open issue until now and supposed it was a side effect of my code change (I have used only random seeds for generation before), so I solved it doing autocasting:
|
First of all, congrats on the great work!
I got this error in the middle of training on T4 in a colab:
Works fine with fewer steps. Not sure why this is happening.
The text was updated successfully, but these errors were encountered: