flash-attn-4-4.0.0b9


توضیحات

Flash Attention CUTE (CUDA Template Engine) implementation
ویژگی مقدار
سیستم عامل -
نام فایل flash-attn-4-4.0.0b9
نام flash-attn-4
نسخه کتابخانه 4.0.0b9
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Tri Dao
ایمیل نویسنده -
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/flash-attn-4/
مجوز BSD 3-Clause License
# FlashAttention-4 (CuTeDSL) FlashAttention-4 is a CuTeDSL-based implementation of FlashAttention for Hopper and Blackwell GPUs. ## Installation ```sh pip install flash-attn-4 ``` If you're on CUDA 13, install with the `cu13` extra for best performance: ```sh pip install "flash-attn-4[cu13]" ``` ## Usage ```python from flash_attn.cute import flash_attn_func, flash_attn_varlen_func out = flash_attn_func(q, k, v, causal=True) ``` ## Development ```sh git clone https://github.com/Dao-AILab/flash-attention.git cd flash-attention pip install -e "flash_attn/cute[dev]" # CUDA 12.x pip install -e "flash_attn/cute[dev,cu13]" # CUDA 13.x (e.g. B200) pytest tests/cute/ ```


نیازمندی

مقدار نام
- nvidia-cutlass-dsl>=4.4.2
- torch
- einops
- typing_extensions
- apache-tvm-ffi<0.2,>=0.1.5
- torch-c-dlpack-ext
- quack-kernels>=0.4.0
xtr nvidia-cutlass-dsl[cu13]>=4.4.2;
xtr pytest;
xtr pytest-xdist;
xtr ruff;


زبان مورد نیاز

مقدار نام
>=3.10 Python


نحوه نصب


نصب پکیج whl flash-attn-4-4.0.0b9:

    pip install flash-attn-4-4.0.0b9.whl


نصب پکیج tar.gz flash-attn-4-4.0.0b9:

    pip install flash-attn-4-4.0.0b9.tar.gz