AIAny
AI Infra2021
Icon for item

xFormers

Drop-in transformer building blocks with custom CUDA kernels: memory-efficient exact attention (up to ~10x faster), block-sparse attention, fused softmax/layernorm/SwiGLU ops. Cuts VRAM and speeds up diffusion and LLM training on Nvidia GPUs.

Introduction

Most teams meet xFormers without ever choosing to install it — it shows up as the line that suddenly makes a Stable Diffusion or research transformer fit in VRAM and run faster. That is the whole design philosophy: rather than a full framework, it ships à la carte attention and transformer primitives, each a hand-tuned CUDA kernel you can drop into existing PyTorch code with no boilerplate.

What Sets It Apart
  • Memory-efficient exact attention: it reorders the computation to use far less memory while staying exact (not an approximation), reportedly up to ~10x faster on A100 in f16 forward+backward — so models fit at longer sequence lengths or larger batches.
  • Composable, domain-agnostic blocks: block-sparse and sparse attention, fused softmax, fused linear layers, fused layer norm, fused dropout+bias+activation, and fused SwiGLU — you can adopt a single piece without buying into an entire framework.
  • Real reach over hype: 14k+ dependent projects rely on it, and for a long stretch it was the attention backend powering diffusion and LLM speedups before equivalent kernels reached mainstream libraries.
Who It's For + Tradeoffs

Great fit if you are a researcher or engineer who wants bleeding-edge transformer kernels that are not yet in mainstream libraries, or you simply need to shave VRAM and latency on Nvidia hardware. Look elsewhere if you are not on Nvidia/CUDA — the fast path is optimized for it, with only experimental AMD/ROCm builds and no CPU support — if you want a turnkey training framework rather than parts, or if your stack already bundles equivalent fused attention: much of xFormers' original edge has since merged upstream into PyTorch's scaled-dot-product attention.

Information

  • Websitegithub.com
  • OrganizationsMeta AI
  • AuthorsFacebook Research (Meta)
  • Published date2021/10/13

Categories

More Items

GitHub

Turns natural-language instructions into end-to-end Android automation that drives real devices and captures Logcat and screenshots. Uses a multimodal “Dynamic‑First, Coordinate‑Fallback” locator and a native MCP server for IDE integration, supporting fast Flash (3–5s/step) and verifiable Pro workflows.

Converts real repositories into verifiable, sandboxed training environments with black-box tests to train coding agents on long-horizon program reproduction. Provides Program-Env for automated environment construction and Program-Agent for a role-isolated development workflow, yielding 1,648 C/C++/Go/Rust tasks and improving benchmark performance.

GitHub
AI Agent2026

Runs a local-first AI agent runtime that drives your desktop and automates workflows — browsing, file edits, approved shell commands, document extraction, and scheduled tasks — while integrating local or cloud LLMs (llama.cpp/TurboQuant) and embedding as an HTTP service or Tauri sidecar.