We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Attention
1 parent 4f65004 commit 23c89a6Copy full SHA for 23c89a6
src/transformers/configuration_utils.py
@@ -338,7 +338,7 @@ def output_attentions(self):
338
339
@output_attentions.setter
340
def output_attentions(self, value):
341
- if self._attn_implementation != "eager":
+ if value is True and self._attn_implementation != "eager":
342
raise ValueError(
343
"The `output_attentions` attribute is not supported when using the `attn_implementation` set to "
344
f"{self._attn_implementation}. Please set it to 'eager' instead."
0 commit comments