Skip to content

Questions about bf16 support and correctness check #12

@xiabingquan

Description

@xiabingquan

Dear Alex.
Thanks for this great repo. The flash attention community really needs this feature.
I'm trying to integrate this repo in my own project, but encounter two issues:

  • torch.bfloat16 is not supported. It seems that this repo only support torch.fp32, torch.fp16 and fp8. I'm wondering how should I modify the code to support bfloat16.
  • How to ensure the results are correct. The benchmark scripts only provides speed comparsions, but not numerical check with the ground truth implementation. How can I make sure that the forward and backward results are correct?

Thanks for your reply!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions