Skip to content

Numerical issues when comparing the results of qk_sparse_attention and F.scaled_dot_product_attention #5

Description

@ThisisBillhe

Hi! Thanks for your great work! I notice that there can be some numerical issues in your implementation, like this:
image
image
Any idea how this will happen and how to avoid this?

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