pytorch-labs / attention-gym
Helpful tools and examples for working with flex-attention
β715Updated last week
Alternatives and similar repositories for attention-gym:
Users that are interested in attention-gym are comparing it to the libraries listed below
- Implementation of π Ring Attention, from Liu et al. at Berkeley AI, in Pytorchβ510Updated 5 months ago
- A subset of PyTorch's neural network modules, written in Python using OpenAI's Triton.β529Updated last month
- Muon optimizer: +>30% sample efficiency with <3% wallclock overheadβ560Updated 3 weeks ago
- Annotated version of the Mamba paperβ481Updated last year
- Ring attention implementation with flash attentionβ734Updated last week
- Large Context Attentionβ700Updated 2 months ago
- Pipeline Parallelism for PyTorchβ762Updated 7 months ago
- [ICLR2025 Spotlightπ₯] Official Implementation of TokenFormer: Rethinking Transformer Scaling with Tokenized Model Parametersβ547Updated 2 months ago
- β413Updated this week
- π³ Efficient Triton implementations for "Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention"β621Updated 3 weeks ago
- Scalable and Performant Data Loadingβ234Updated this week
- This repository contains the experimental PyTorch native float8 training UXβ222Updated 8 months ago
- LLM KV cache compression made easyβ454Updated 3 weeks ago
- Code for Adam-mini: Use Fewer Learning Rates To Gain More https://arxiv.org/abs/2406.16793β404Updated this week
- Implementation of the sparse attention pattern proposed by the Deepseek team in their "Native Sparse Attention" paperβ588Updated 3 weeks ago
- β262Updated last month
- For optimization algorithm research and development.β505Updated this week
- Implementation of Rotary Embeddings, from the Roformer paper, in Pytorchβ665Updated 4 months ago
- π Efficient implementations of state-of-the-art linear attention models in Torch and Tritonβ2,250Updated this week
- When it comes to optimizers, it's always better to be safe than sorryβ217Updated 2 weeks ago
- Triton-based implementation of Sparse Mixture of Experts.β211Updated 4 months ago
- Minimalistic 4D-parallelism distributed training framework for education purposeβ982Updated last month
- π Efficiently (pre)training foundation models with native PyTorch features, including FSDP for training and SDPA implementation of Flashβ¦β240Updated this week
- [ICLR 2025] Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modelingβ860Updated last month
- Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(nΒ²) Memory"β375Updated last year
- FlashFFTConv: Efficient Convolutions for Long Sequences with Tensor Coresβ311Updated 3 months ago
- Universal Tensor Operations in Einstein-Inspired Notation for Python.β365Updated last week
- Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorchβ327Updated 9 months ago
- β142Updated last year
- Code for exploring Based models from "Simple linear attention language models balance the recall-throughput tradeoff"β229Updated last month