If you want quick access look at google images for "transformer attention formula" there are some interesting depictions