meta-pytorch / attention-gymLinks
Helpful tools and examples for working with flex-attention
β1,116Updated 2 weeks ago
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β549Updated 8 months ago
- π³ Efficient Triton implementations for "Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention"β964Updated 10 months ago
- A subset of PyTorch's neural network modules, written in Python using OpenAI's Triton.β596Updated 5 months ago
- β579Updated 4 months ago
- Large Context Attentionβ764Updated 3 months ago
- Implementation of the sparse attention pattern proposed by the Deepseek team in their "Native Sparse Attention" paperβ796Updated 5 months ago
- Pipeline Parallelism for PyTorchβ785Updated last year
- Muon is an optimizer for hidden layers in neural networksβ2,242Updated last week
- Ring attention implementation with flash attentionβ973Updated 4 months ago
- LLM KV cache compression made easyβ866Updated this week
- [ICLR 2025] Official PyTorch Implementation of Gated Delta Networks: Improving Mamba2 with Delta Ruleβ433Updated 4 months ago
- Annotated version of the Mamba paperβ495Updated last year
- A Quirky Assortment of CuTe Kernelsβ772Updated this week
- Scalable and Performant Data Loadingβ362Updated last week
- Fault tolerance for PyTorch (HSDP, LocalSGD, DiLoCo, Streaming DiLoCo)β474Updated 2 weeks ago
- Implementation of Rotary Embeddings, from the Roformer paper, in Pytorchβ796Updated 6 months ago
- π Efficiently (pre)training foundation models with native PyTorch features, including FSDP for training and SDPA implementation of Flashβ¦β280Updated 2 months ago
- [ICLR2025 Spotlightπ₯] Official Implementation of TokenFormer: Rethinking Transformer Scaling with Tokenized Model Parametersβ584Updated 11 months ago
- Load compute kernels from the Hubβ389Updated this week
- A Distributed Attention Towards Linear Scalability for Ultra-Long Context, Heterogeneous Data Trainingβ626Updated this week
- A Python-embedded DSL that makes it easy to write fast, scalable ML kernels with minimal boilerplate.β732Updated this week
- Tutel MoE: Optimized Mixture-of-Experts Library, Support GptOss/DeepSeek/Kimi-K2/Qwen3 using FP8/NVFP4/MXFP4β960Updated last month
- Flash Attention in ~100 lines of CUDA (forward pass only)β1,058Updated last year
- For optimization algorithm research and development.β558Updated 2 weeks ago
- Code for Adam-mini: Use Fewer Learning Rates To Gain More https://arxiv.org/abs/2406.16793β451Updated 8 months ago
- β952Updated 2 months ago
- Accelerating MoE with IO and Tile-aware Optimizationsβ563Updated last week
- depyf is a tool to help you understand and adapt to PyTorch compiler torch.compile.β782Updated 3 months ago
- Best practices & guides on how to write distributed pytorch training codeβ571Updated 3 months ago
- H-Net: Hierarchical Network with Dynamic Chunkingβ807Updated 2 months ago