Hi there,
I am trying to recreate the decoder attention mask and I am a bit puzzled by how it is created here
|
decoder_attention_mask = (decoder_input_ids == decoder_input_ids).float() |
This creates a dense matrix with 1s everywhere. Shouldn't this be a lower triangular matrix (which is what T5Model does internally by default)?
Thanks a lot for your help!
Hi there,
I am trying to recreate the decoder attention mask and I am a bit puzzled by how it is created here
t-few/src/models/EncoderDecoder.py
Line 53 in 114dece
This creates a dense matrix with 1s everywhere. Shouldn't this be a lower triangular matrix (which is what T5Model does internally by default)?
Thanks a lot for your help!