xFormers

Meta's toolbox of optimized transformer building blocks, best known for memory-efficient attention kernels.

Open SourceSelf HostedOffline CapableGPU Required
0.0 (0)

About

Memory-efficient attention was popularized by xFormers, Meta's toolbox of optimized, composable transformer building blocks that predates and still complements PyTorch's built-in scaled dot product attention. The library provides exact attention kernels the maintainers measure at up to 10x faster than naive implementations, block-sparse and sparse attention variants, and fused operations for softmax, linear layers, layer norm, SwiGLU, and dropout-activation chains, all exposed as independent components that slot into existing PyTorch models. It remains a default acceleration dependency across the ecosystem: Stable Diffusion tooling, LLM fine-tuning stacks, and inference servers list it for its attention speed and memory savings. Prebuilt wheels install via pip alongside recent PyTorch on Linux and Windows with CUDA 12.6 through 13.0, experimental ROCm 7.1 wheels cover AMD hardware on Linux, and building from source needs a full CUDA toolchain. The code is BSD-3-Clause licensed and holds about 10,500 GitHub stars, and research teams use its components to prototype new attention mechanisms without writing Triton or CUDA from scratch.

Reviews (0)

Leave a Review

No reviews yet. Be the first to review!

Details

Price
Free
Platform
Local/Desktop
Difficulty
Intermediate (3/5)
License
BSD-3-Clause
Added
Jul 29, 2026

Related Tools

Framework for generating synthetic data and AI feedback through composable LLM pipelines.

Open SourceSelf HostedOffline
Intermediate
0.0 (0)

Subject-driven fine-tuning technique for personalizing diffusion models.

Open SourceSelf HostedOfflineGPU 8GB+
Intermediate
0.0 (0)

Video model fine-tuning toolkit by Hugging Face Diffusers team.

Open SourceSelf HostedOfflineGPU 16GB+
Advanced
0.0 (0)

Efficient LLM quantization preserving important weight channels.

Open SourceSelf HostedOfflineGPU 8GB+
Intermediate
0.0 (0)

All-in-one Stable Diffusion fine-tuning tool with intuitive GUI.

Open SourceSelf HostedOfflineGPU 8GB+
Easy
0.0 (0)

No-code tool by Hugging Face for training ML models automatically.

Open SourceSelf HostedOfflineGPU 8GB+
Beginner
0.0 (0)
Browse all Model Training & Fine-Tuning tools