Skip to content

Extracting attention maps and using attention masking #2

Description

@roeehendel

It seems that since the model is using scaled_dot_product_attention, passing output_attentions=True to the forward is not supported.
Also, attention masking using attention_mask is not supported (this fails silently, there is no assertion to warn the user).
Is there a workaround to enable using these features?
Perhaps there should be an option to use a regular implementation of attention instead of scaled_dot_product_attention.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions