Build a Large Language Model (From Scratch) · Chapter 5 · Video 11 of 14 · 8:56
How do you score a guess about the next word?
At the word "big," trained GPT-2 gave the right token 32% and the untrained model 0.0018%. Neither was certain; one was far closer. Training needs one number that says how far off a guess was, even when it was partly right. What is it, why is it a logarithm, and on which text do you measure it?
Based on Build a Large Language Model (From Scratch) by Sebastian Raschka.