Skip to content

make flash attention optional#95

Merged
kleinhenz merged 9 commits intomainfrom
flash
Jun 2, 2025
Merged

make flash attention optional#95
kleinhenz merged 9 commits intomainfrom
flash

Conversation

@kleinhenz
Copy link
Collaborator

Makes flash attention an optional extra. Also fixes test comparing flash attention with no flash option. With the fix to make sure the same weights are being used the required tolerance is 1e-2 which seems a bit high still.

Copy link
Collaborator

@karinazad karinazad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me! can you please add a line to README about optional flash attn install?

@kleinhenz kleinhenz merged commit 4073d2c into main Jun 2, 2025
5 checks passed
@kleinhenz kleinhenz deleted the flash branch June 2, 2025 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants