项目介绍

MaxLSB/flash-attn2 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 14 个 Star、1 次 Fork。

仓库全名
MaxLSB/flash-attn2

README 摘要

FlashAttention for Sliding Window Attention in Triton This repository provides an implementation of FlashAttention-2 Forward and Backward Pass for self-attention in Triton. FlashAttention-2 is a memory-efficient algorithm for computing attention that significantly reduces memory bandwidth requirements and improves performance on GPU hardware. This implementation supports several configurations for both Forward and…

完整内容见 GitHub 原始 README 或本页 。

常见问题

flash-attn2 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 14 个 Star。

flash-attn2 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 flash-attn2 的源码?

可以直接克隆仓库:git clone https://github.com/MaxLSB/flash-attn2.git,默认分支为 main;安装与运行步骤见仓库 README。

flash-attn2 最近还在维护吗?

仓库最近一次更新为 2025年6月26日,当前没有未关闭的 Issue;Star 数为 14,可作为社区活跃度的参考。

关于

FlashAttention for sliding window attention in Triton (fwd + bwd pass)

描述来自项目方在 GitHub 上的公开说明,中文内容由 GitRead 中文社区 整理。

简要分析

热度分
17
价值分
8
活跃状态
活跃

语言占比

Python

贡献者