Open nkkbr opened 1 month ago
https://github.com/allenai/OLMo/blob/5789cfe32390a0e80417e98285647cb8b41029ae/olmo/model.py#L598-L605
should the line 604 be is_causal=attention_bias is not None ?
Python 3.10.14
Hey @nkkbr, when attention_bias is not None, the attention_bias includes a causal mask, so we don't to set is_causal to True since that would be redundant.
attention_bias
None
is_causal
True
🐛 Describe the bug
https://github.com/allenai/OLMo/blob/5789cfe32390a0e80417e98285647cb8b41029ae/olmo/model.py#L598-L605
should the line 604 be is_causal=attention_bias is not None ?
Versions
Python 3.10.14