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

fix move model to device before calculating loss #157

Merged
merged 1 commit into from
May 16, 2024
Merged

Conversation

DrCesar
Copy link

@DrCesar DrCesar commented May 15, 2024

In the Appendix D notebook if you are using a GPU the gradient clipping loss calculation fails due to the model not being in the device.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@rasbt
Copy link
Owner

rasbt commented May 16, 2024

Oops, I must have only run the final version of this on the CPU to get the "worst case" time estimate for the book. Thanks for adding this back in. I will also fix that in the manuscript. Thanks!

@rasbt rasbt merged commit 738ec44 into rasbt:main May 16, 2024
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants