FlashAttention that just works. No compilation. Any GPU. AMD ROCm, NVIDIA CUDA, Intel, Apple via Vulkan.
Project description
aule-attention
Hardware-agnostic FlashAttention implementation. No compilation required. Works on any GPU.
Version: 0.2.0
Installation
pip install aule-attention
Quick Start
from aule import flash_attention
import torch
q = torch.randn(1, 8, 512, 64, device='cuda')
k = torch.randn(1, 8, 512, 64, device='cuda')
v = torch.randn(1, 8, 512, 64, device='cuda')
output = flash_attention(q, k, v, causal=True)
Features
- No compilation at install time
- Works on AMD, NVIDIA, Intel, and Apple GPUs
- Training support with backward pass (Triton backend)
- Grouped Query Attention (GQA) and Multi-Query Attention (MQA) support
- O(N) memory complexity
Backends
| Backend | Hardware | Features |
|---|---|---|
| Triton | AMD ROCm, NVIDIA CUDA | Training and Inference |
| Vulkan | Any Vulkan 1.2+ GPU | Inference |
| CPU | NumPy | Fallback |
API
from aule import flash_attention, get_available_backends, print_backend_info
# Compute attention
output = flash_attention(query, key, value, causal=True, scale=None)
# Check available backends
backends = get_available_backends()
# Display backend information
print_backend_info()
Supported Hardware
Triton Backend (Training + Inference)
- AMD Instinct: MI300X, MI300A, MI250X, MI250, MI210, MI100
- NVIDIA Datacenter: H100, A100, A10, L40S
- NVIDIA Consumer: RTX 4090, 4080, 3090, 3080
Vulkan Backend (Inference)
- AMD RDNA3: RX 7900 XTX, 7900 XT, 7800 XT
- AMD RDNA2: RX 6900 XT, 6800 XT, 6700 XT
- Intel Arc: A770, A750, A580
- Intel Integrated: 12th/13th/14th Gen
- Apple Silicon: M1, M2, M3 (via MoltenVK)
License
MIT License - Aule Technologies
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aule_attention-0.2.0-py3-none-any.whl.
File metadata
- Download URL: aule_attention-0.2.0-py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ad25ed5918ae02a3ea97912f4d492a3c5d53543ea048865c74b60c925831b9f
|
|
| MD5 |
e223d5b35eca11bd5fea051b82f6e713
|
|
| BLAKE2b-256 |
18d316c6ef07abbe467d32197f48dadba65d628b18cf7e1d3b093d61d6ac0d4a
|