Implementation of FlashAttention (FA1-FA4) in PyTorch for educational and algorithmic clarity
☆227Apr 12, 2026Updated 6 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☆116Jul 31, 2023Updated 3 years ago
- flash attention tutorial written in python, triton, cuda, cutlass☆534Jan 20, 2026Updated 8 months ago
- Flash Attention in ~100 lines of CUDA (forward pass only)☆1,200Dec 30, 2024Updated last year
- An approximate implementation of the OpenAI paper - An Empirical Model of Large-Batch Training for MNIST☆11Nov 19, 2022Updated 3 years ago
- Implement Flash Attention using Cute.☆113Dec 17, 2024Updated last year
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting for WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Deploy in minutes on Cloudways by DigitalOcean.
- ☆16Mar 13, 2023Updated 3 years ago
- Triton implementation of FlashAttention2 that adds Custom Masks.☆179Aug 14, 2024Updated 2 years ago
- Fast and memory-efficient exact attention☆23Jun 26, 2026Updated 3 months ago
- A simple but instructive implementation of DP, TP, FSDP, FSDP+TP using pytorch distributed primitives☆24Apr 12, 2026Updated 6 months ago
- ☆27Aug 5, 2022Updated 4 years ago
- Experimental adapter for fine-tuning Qwen3-VL as a Vision-Language-Action (VLA) model☆15Dec 21, 2025Updated 9 months ago
- Prune transformer layers☆75Sep 23, 2026Updated 3 weeks ago
- Implementation of the paper "Opcodes as predictor for malware " by Daniel Bilar☆11Oct 17, 2020Updated 6 years ago
- Fast Hadamard transform in CUDA, with a PyTorch interface☆354Mar 10, 2026Updated 7 months ago
- Deploy on Railway without the complexity - Free Credits Offer • AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- The simplest implementation of recent Sparse Attention patterns for efficient LLM inference.☆93Jul 17, 2025Updated last year
- High Performance FP8 GEMM Kernels for SM89 and later GPUs.☆21Jan 24, 2025Updated last year
- A CUDA kernel optimization toolkit for validation, benchmarking, Nsight Compute profiling, bottleneck analysis, and iterative tuning. It …☆215Sep 5, 2026Updated last month
- triton ver of gqa flash attn, based on the tutorial☆12Aug 4, 2024Updated 2 years ago
- Fast and memory-efficient exact attention☆25,154Updated this week
- A re-implementation of the "Red Teaming Language Models with Language Models" paper by Perez et al., 2022☆35Oct 9, 2023Updated 3 years ago
- Recreating PyTorch from scratch (C/C++, CUDA, NCCL and Python, with multi-GPU support and automatic differentiation!)☆168Nov 25, 2025Updated 10 months ago
- Fast inference from large lauguage models via speculative decoding☆927Aug 22, 2024Updated 2 years ago
- Implementation of Speculative Sampling as described in "Accelerating Large Language Model Decoding with Speculative Sampling" by Deepmind☆112Feb 29, 2024Updated 2 years ago
- Deploy on Railway without the complexity - Free Credits Offer • AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- A PyTorch Dataset for Slakh2100☆10Feb 14, 2024Updated 2 years ago
- The official repository for SkyLadder: Better and Faster Pretraining via Context Window Scheduling☆44Dec 29, 2025Updated 9 months ago
- ☆47May 24, 2025Updated last year
- ☆17Nov 14, 2022Updated 3 years ago
- Accelerating MoE with IO and Tile-aware Optimizations☆780Aug 29, 2026Updated last month
- [ICLR 2025 & COLM 2025] Official PyTorch implementation of the Forgetting Transformer and Adaptive Computation Pruning☆154Feb 25, 2026Updated 7 months ago
- A collection of memory efficient attention operators implemented in the Triton language.☆320Updated this week
- Automated CUDA kernel performance diagnostics from NVIDIA Nsight Compute (NCU) CSV exports.☆35Mar 18, 2026Updated 7 months ago
- [ACL 2025] Squeezed Attention: Accelerating Long Prompt LLM Inference☆58Nov 20, 2024Updated last year
- Deploy on Railway without the complexity - Free Credits Offer • AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- Compositional Muon release☆25Jun 5, 2026Updated 4 months ago
- Triton implement of bi-directional (non-causal) linear attention☆83Aug 10, 2026Updated 2 months ago
- Inference Speed Benchmark for Learning to (Learn at Test Time): RNNs with Expressive Hidden States☆92Jul 14, 2024Updated 2 years ago
- The official repo/implementation of the paper "Training a Singing Transcription Model Using Connectionist Temporal Classification Loss an…☆13Mar 25, 2025Updated last year
- Official Implementation for the ICLR2023 paper "Fuzzy Alignments in Directed Acyclic Graph for Non-autoregressive Machine Translation"☆14Mar 1, 2023Updated 3 years ago
- [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
- Optimize SGEMM step by step☆10Sep 4, 2024Updated 2 years ago