Dao-AILab / Dao-AILab/flash-attention

What code format should I use?

Open
#1,663 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
25k
Forks
3.1k
Avg merge
3d 19h
Merged PRs (30d)
10

Description

clang-format -style=Google csrc/flash_attn/src/block_info.h > test.h
vimdiff test.h csrc/flash_attn/src/block_info.h

Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with csrc/flash_attn/src/block_info.h and compare its formatting using clang-format with the Google style, as shown in the issue. Review the attached comparison and clarify or document the expected code format; done means the repository’s formatting guidance answers the question.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.