We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
model.to(device)
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
I have noticed a small thing in the code in the "Introduction to PyTorch" section:
LLMs-from-scratch/appendix-A/01_main-chapter-code/code-part2.ipynb
Line 334 in 08040f0
Code reference in the print/ebook on p. 281
The assignment is actually not needed as for models (different for tensors), the assignment will be performed in-place and should be slightly faster:
Idk if this was done here on purpose because at some other code sections of the book this is correctly pointed out, for instance:
LLMs-from-scratch/appendix-E/01_main-chapter-code/appendix-E.ipynb
Line 557 in c278745
None
The text was updated successfully, but these errors were encountered:
rasbt
No branches or pull requests
Bug description
I have noticed a small thing in the code in the "Introduction to PyTorch" section:
LLMs-from-scratch/appendix-A/01_main-chapter-code/code-part2.ipynb
Line 334 in 08040f0
Code reference in the print/ebook on p. 281
The assignment is actually not needed as for models (different for tensors), the assignment will be performed in-place and should be slightly faster:
Idk if this was done here on purpose because at some other code sections of the book this is correctly pointed out, for instance:
LLMs-from-scratch/appendix-E/01_main-chapter-code/appendix-E.ipynb
Line 557 in c278745
What operating system are you using?
None
Where do you run your code?
None
Environment
The text was updated successfully, but these errors were encountered: