2/23
Learn

One wrong reshape keeps every shape and wrecks the text

Four of the tasks, split_heads, merge_heads, hide_future and append_greedy, put your function inside a small GPT trained on Shakespeare and show you what it writes. With all four right, it writes this:

ROMEO:
I will not some sorrow to the season.

LEONTES:
What should I will be so so sound the strength,
And then with the strong of the world that they shall

Put one classic bug in split_heads, a reshape where a transpose belongs, and the same model writes this:

ROMEO:
TI sthoustin madetharonorarinenininerarede tatiedes thenetinonanenenenen

Both runs have the same shapes, and nothing fails. By the end of Part 3 you'll see why, and how to catch it.