Skip to main content

⚡ qifa – Quick Installer for Flash Attention

One command to detect, select, and install the correct flash-attn wheel for your environment.

Python 3.8+ License: BSD-3


✨ Features

  • Auto-Detection – Identifies Python version, PyTorch version, CUDA version, and C++11 ABI
  • Smart Matching – Finds the correct prebuilt wheel from official GitHub Releases
  • Zero Config – Just run qifa install and you're done
  • Dry Run Mode – Preview what will be installed before committing

Note: Currently optimized for Linux x86_64 official wheels. Windows/ROCm users will receive guidance but may need manual installation.


📦 Installation

pip install qifa

🚀 Quick Start

# Check your environment and see which wheel will be installed
qifa plan

# Install the matching flash-attn wheel
qifa install

📖 Commands

Command Description
qifa plan Show detected environment and the wheel that will be installed
qifa install Download and install the matching wheel
qifa uninstall Remove existing flash-attn installation
qifa doctor Run compatibility checks and get guidance

Options

# Install a specific version
qifa install --version 2.5.8

# Force a specific C++11 ABI setting
qifa install --abi FALSE

# Preview without installing
qifa install --dry-run

🔍 Example Output

$ qifa plan
{
  "python_tag": "cp310",
  "torch_mm": "2.1",
  "torch_cuda": "cu121",
  "chosen_cu_tag": "cu121",
  "abi_FALSE": true,
  "platform": "linux_x86_64",
  "version": "2.5.8",
  "found_asset": "flash_attn-2.5.8+cu121torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl",
  "download_url": "https://github.com/Dao-AILab/flash-attention/releases/download/..."
}

🛠️ Troubleshooting

Issue Solution
No matching wheel found Try --version to specify a different version, or --abi TRUE
PyTorch not detected Install CUDA-enabled PyTorch first: pip install torch --index-url https://download.pytorch.org/whl/cu121
Platform not supported Official wheels are for Linux x86_64; other platforms require building from source

Run qifa doctor for detailed guidance on your specific environment.


📄 License

BSD-3-Clause © Voidful

Metadata

Release files for qifa 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qifa 0.1.1
File Size Uploaded
qifa-0.1.1.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qifa 0.1.1
File Interpreter ABI Platform
qifa-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.6 kB

Release files / qifa-0.1.1.tar.gz

Download URL qifa-0.1.1.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b813aa0d080e9f4bc4835de92edf571103aaa0316bb9574b1364a85427e9df55
BLAKE2b-256 checksum
How to use checksums
c67aacf9dc4ff60b5709c192fa447b108a761bd370c478406070282da8a86cd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Release files / qifa-0.1.1-py3-none-any.whl

Download URL qifa-0.1.1-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
17c0f843e27e6e024cd41f2170052e18614ab0f343530efe03fa979da9014f5e
BLAKE2b-256 checksum
How to use checksums
ba5217e11d665196e3f8c121752b90564d4a5e7ce726be883f617086656df0d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page