Skip to content

Attn Mask for Non-causal Models #5

@roshansh-cmu

Description

@roshansh-cmu

We are examining non-NLP applications of the cosformer self-attention, and would need to use attention masking for the padded tokens in the batch.
Is there a way to incorporate this ?
Because the code does not explicitly compute the attention weights on which masking is traditionally applied.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions