ERROR IN def alpaca_model of C4W2

Could someone help me debug the code …i can’t find any problem in this but I’m still getting the error below:

{mentor edit: code removed}

You’re using the wrong type of pooling. Notice the instructions say “global”.

Please don’t post your code on the Forum. That’s not allowed by the Community Standards.