Skip to content

Attention test seems uncompatible with latest xformers #12284

@Jovp

Description

@Jovp

_ = xops.memory_efficient_attention(q, q, q)

It seems that the latest xformers has the memory_efficient_attention function under xops.ops and not xops in this case.

xops.version
'0.0.32.post2'

Maybe "import xformers as xops" should be "import xformers.ops as xops" ?

For reference:
https://github.com/facebookresearch/xformers/blob/c159edc05ae5a0192ab0558e834b946155790371/xformers/ops/fmha/__init__.py#L186

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