Sebastian Raschka
Read post

Correction for Listing 6.5 in Build a Reasoning Model From Scratch

A correction notice for Listing 6.5 (page 198) in the book 'Build a Reasoning Model From Scratch'. The random seed in the code should be `torch.manual_seed(5)` instead of `torch.manual_seed(0)`. While the code still runs correctly with seed 0, the numeric outputs will differ from those shown in the book, potentially causing confusion when following along with Chapter 6 examples. The fix will be included in the next printing.

    #llm#deep-learning#pytorch
Jul 25•2m read time•From sebastianraschka.com
Post cover image
207 Impressions
Sebastian Raschka's image
Sebastian Raschka

Sebastian Raschka's Blog offers insights, tutorials, and research updates on machine learning, deep ...

176 Followers

•

1.3K Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard