Skip to content

The performance comparison between flash attn and ring flash attn #14

@GeneZC

Description

@GeneZC

https://github.com/cuda-mode/ring-attention/blob/65f904c812eae6e0c75185c49c8eab5717c25343/ring-llama/modeling_llama.py#L669

While it is acceptable that ring flash attn could lag behind flash attn in terms of speed, I am wondering whether the ring flash attn could outperform the flash attn in terms of memory use?

And it has been witnessed that in both aspects, ring flash attn can underperform flash attn (zhuzilin/ring-flash-attention#23), which is not that reasonable.

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