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

RuntimeError: expected mat1 and mat2 to have the same dtype, but got: c10::Half != float #8

Open
A-smarneh opened this issue Mar 27, 2024 · 3 comments

Comments

@A-smarneh
Copy link

Hi,

Thanks a lot for this notebook. I have followed the notebook and when I get to the

"trainer.train()"

I get the following run time error:

RuntimeError: expected mat1 and mat2 to have the same dtype, but got: c10::Half != float

I am working on AWS SageMaker, with ml.p3.2xlagre instance. I would appreciate any help you can provide.

@Batwho
Copy link

Batwho commented Aug 11, 2024

same issue, are you able to figure this out?

@A-smarneh
Copy link
Author

@Batwho the problem was in the dataset. The dataset contained question and answer field and the model expected 3 question, context and answer

@Batwho
Copy link

Batwho commented Aug 12, 2024

got it thanks!

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