Question about mask in CausalAttention chapter 3 #1016
Closed
lehoanglong95
started this conversation in
General
Replies: 1 comment
|
Sorry my bad. Author use self.mask.bool(). Everything is correct. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
First of all, thank you for wonderful book!
For section 3.5 - hiding future words with causal attention, I understand that the mask should be lower triangular matrix. So the code for mask should be:
ATM, the code for mask is:
Do I understand it correctly?
Thanks so much
All reactions