Skip to content

when try to use flash_attention_v2, not find _prepare_4d_causal_attention_mask_for_sdpa #40

@dongdk

Description

@dongdk

after installing the flash_attn and run the scorer.py script, meet the problem:

NameError: name '_prepare_4d_causal_attention_mask_for_sdpa' is not defined. Did you mean: '_prepare_4d_causal_attention_mask'?

any idea to solve it?

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