Implementation of FlashAttention (FA1-FA4) in PyTorch for educational and algorithmic clarity
☆223Apr 12, 2026Updated 2 months ago
Alternatives and similar repositories for FlashAttention-PyTorch
Users that are interested in FlashAttention-PyTorch are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- Get down and dirty with FlashAttention2.0 in pytorch, plug in and play no complex CUDA kernels☆115Jul 31, 2023Updated 2 years ago
- flash attention tutorial written in python, triton, cuda, cutlass☆527Jan 20, 2026Updated 5 months ago
- An approximate implementation of the OpenAI paper - An Empirical Model of Large-Batch Training for MNIST☆11Nov 19, 2022Updated 3 years ago
- Flash Attention in ~100 lines of CUDA (forward pass only)☆1,166Dec 30, 2024Updated last year
- a minimal cache manager for PagedAttention, on top of llama3.☆146Aug 26, 2024Updated last year
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- Implement Flash Attention using Cute.☆108Dec 17, 2024Updated last year
- Terminal UI for NVIDIA Nsight Systems profiles — timeline viewer, kernel navigator, NVTX hierarchy☆62Jun 18, 2026Updated 3 weeks ago
- ☆16Mar 13, 2023Updated 3 years ago
- Prune transformer layers☆74May 30, 2024Updated 2 years ago
- The simplest implementation of recent Sparse Attention patterns for efficient LLM inference.☆92Jul 17, 2025Updated 11 months ago
- Triton implementation of FlashAttention2 that adds Custom Masks.☆176Aug 14, 2024Updated last year
- ☆27Aug 5, 2022Updated 3 years ago
- Implementation of the paper "Opcodes as predictor for malware " by Daniel Bilar☆11Oct 17, 2020Updated 5 years ago
- Implementation of Speculative Sampling as described in "Accelerating Large Language Model Decoding with Speculative Sampling" by Deepmind☆111Feb 29, 2024Updated 2 years ago
- 1-Click AI Models by DigitalOcean Gradient • AdDeploy popular AI models on DigitalOcean Gradient GPU virtual machines with just a single click. Zero configuration with optimized deployments.
- triton ver of gqa flash attn, based on the tutorial☆12Aug 4, 2024Updated last year
- Fast inference from large lauguage models via speculative decoding☆918Aug 22, 2024Updated last year
- Code for Blog Post: Can Better Cold-Start Strategies Improve RL Training for LLMs?☆20Mar 9, 2025Updated last year
- A re-implementation of the "Red Teaming Language Models with Language Models" paper by Perez et al., 2022☆34Oct 9, 2023Updated 2 years ago
- Port linux kernel list.h to userspace☆32Mar 18, 2015Updated 11 years ago
- [ICLR 2025 & COLM 2025] Official PyTorch implementation of the Forgetting Transformer and Adaptive Computation Pruning☆150Feb 25, 2026Updated 4 months ago
- ☆16Nov 14, 2022Updated 3 years ago
- [ACL 2025] Squeezed Attention: Accelerating Long Prompt LLM Inference☆58Nov 20, 2024Updated last year
- ☆52May 19, 2025Updated last year
- Virtual machines for every use case on DigitalOcean • AdGet dependable uptime with 99.99% SLA, simple security tools, and predictable monthly pricing with DigitalOcean's virtual machines, called Droplets.
- Fast and memory-efficient exact attention☆24,389Updated this week
- simplest online-softmax notebook for explain Flash Attention☆18Jan 27, 2026Updated 5 months ago
- ☆35Dec 22, 2025Updated 6 months ago
- ☆46May 24, 2025Updated last year
- [NeurIPS 2023 spotlight] Official implementation of HGRN in our NeurIPS 2023 paper - Hierarchically Gated Recurrent Neural Network for Se…☆68Apr 24, 2024Updated 2 years ago
- 🚀 Efficient implementations for emerging model architectures☆5,310Updated this week
- High Performance FP8 GEMM Kernels for SM89 and later GPUs.☆21Jan 24, 2025Updated last year
- Implementation for POET and POET-X for LLM pretraining☆36Jun 9, 2026Updated last month
- Official Implementation for the ICLR2023 paper "Fuzzy Alignments in Directed Acyclic Graph for Non-autoregressive Machine Translation"☆14Mar 1, 2023Updated 3 years ago
- Managed Kubernetes at scale on DigitalOcean • AdDigitalOcean Kubernetes includes the control plane, bandwidth allowance, container registry, automatic updates, and more for free.
- ☆12May 16, 2024Updated 2 years ago
- The evaluation framework for training-free sparse attention in LLMs☆125Jan 27, 2026Updated 5 months ago
- Standalone Flash Attention v2 kernel without libtorch dependency☆113Sep 10, 2024Updated last year
- Puzzles for learning Triton☆2,515Apr 1, 2026Updated 3 months ago
- Codes and data for ACL 2023 Findings paper "Click: Controllable Text Generation with Sequence Likelihood Contrastive Learning"☆18Feb 26, 2024Updated 2 years ago
- Code for the paper: https://arxiv.org/pdf/2309.06979.pdf☆21Jul 29, 2024Updated last year
- Using FlexAttention to compute attention with different masking patterns☆47Sep 22, 2024Updated last year