meta-pytorch / attention-gymLinks
Helpful tools and examples for working with flex-attention
β1,089Updated this week
Alternatives and similar repositories for attention-gym
Users that are interested in attention-gym are comparing it to the libraries listed below
Sorting:
- Implementation of π Ring Attention, from Liu et al. at Berkeley AI, in Pytorchβ548Updated 7 months ago
- A subset of PyTorch's neural network modules, written in Python using OpenAI's Triton.β587Updated 4 months ago
- π³ Efficient Triton implementations for "Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention"β942Updated 9 months ago
- β565Updated 2 months ago
- Large Context Attentionβ754Updated 2 months ago
- Implementation of the sparse attention pattern proposed by the Deepseek team in their "Native Sparse Attention" paperβ790Updated 4 months ago
- Pipeline Parallelism for PyTorchβ783Updated last year
- Ring attention implementation with flash attentionβ949Updated 3 months ago
- Muon is an optimizer for hidden layers in neural networksβ2,116Updated 3 weeks ago
- Scalable and Performant Data Loadingβ352Updated last week
- LLM KV cache compression made easyβ717Updated last week
- A Quirky Assortment of CuTe Kernelsβ701Updated this week
- Annotated version of the Mamba paperβ492Updated last year
- π Efficiently (pre)training foundation models with native PyTorch features, including FSDP for training and SDPA implementation of Flashβ¦β271Updated 3 weeks ago
- Implementation of Rotary Embeddings, from the Roformer paper, in Pytorchβ783Updated 4 months ago
- [ICLR 2025] Official PyTorch Implementation of Gated Delta Networks: Improving Mamba2 with Delta Ruleβ397Updated 3 months ago
- [ICLR2025 Spotlightπ₯] Official Implementation of TokenFormer: Rethinking Transformer Scaling with Tokenized Model Parametersβ580Updated 10 months ago
- Fault tolerance for PyTorch (HSDP, LocalSGD, DiLoCo, Streaming DiLoCo)β459Updated 2 weeks ago
- For optimization algorithm research and development.β553Updated this week
- Tutel MoE: Optimized Mixture-of-Experts Library, Support GptOss/DeepSeek/Kimi-K2/Qwen3 using FP8/NVFP4/MXFP4β950Updated last week
- A Python-embedded DSL that makes it easy to write fast, scalable ML kernels with minimal boilerplate.β691Updated this week
- Code for Adam-mini: Use Fewer Learning Rates To Gain More https://arxiv.org/abs/2406.16793β445Updated 7 months ago
- H-Net: Hierarchical Network with Dynamic Chunkingβ795Updated last month
- Load compute kernels from the Hubβ347Updated last week
- β303Updated 7 months ago
- β937Updated last month
- A Distributed Attention Towards Linear Scalability for Ultra-Long Context, Heterogeneous Data Trainingβ590Updated this week
- A pytorch quantization backend for optimumβ1,019Updated last month
- Flash Attention in ~100 lines of CUDA (forward pass only)β1,023Updated 11 months ago
- π₯ A minimal training framework for scaling FLA modelsβ321Updated last month