The rest of the lesson names every shape with five letters.
C = 512 and H = 8. What's d, the head size?
B = 8, T = 128, C = 512 and H = 8 give d = 512 / 8 = 64.
The paper calls CCC by the name dmodeld_{\text{model}}dmodel.
In self-attention every token is both a query and a key. So one length, TTT, serves both.