W4_Ex-4 | (Encoder) - Stuck with no clue what to do next! Please help!

Hi @TMosh
I got this error and I am stuck here for a long time. I read a blog suggests to use mask in the attention layer but I don’t know how, Could u please help me?