Sebastian Raschka 7/25/2026

Correction for Listing 6.5 in Build a Reasoning Model From Scratch

Read Original

Thanks everyone for all the kind words and feedback. Super happy that you are enjoying Build a Reasoning Model (From Scratch)! Unfortunately, there’s a small typo in Listing 6.5 on page 198 (see the video below). The line torch.manual_seed(0) should be torch.manual_seed(5). This is a tiny change, but it’s needed to reproduce the generated response in Listing 6.5 and the corresponding log-probabili

0 comments
Correction for Listing 6.5 in Build a Reasoning Model From Scratch

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser