16/30
Part 4 of 6 · Positions, targets, shapes and twinsLearn and do
Read one real batch as text
Here a token is one character:
| input | to be or not t |
| target | o be or not to |
Then decode one real batch back to text, and read each input above its target. Karpathy's recipe says the one place to look at your data is right before it goes into the model. Ten seconds of reading settles what a page of reasoning about slices can't.
In the editor is the practice's get_batch, with targets that copy the inputs. Fix the line that builds y, so that each target is the token after its input, the last one included.