Skip to content

Would FlexAttention be useful over SDPA for masked language modeling? #129

@abdulfatir

Description

@abdulfatir

Thank you for the examples in this repo. I am wondering if FlexAttention would bring any value over SDPA in the case of masked language modeling? In masked language modeling, random input positions are masked and their contribution is ignored during softmax. However, since the masking is random, there's no structure to potentially exploit. Does FlexAttention make sense in this case?

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