Implementation of FlashAttention (FA1-FA4) in PyTorch for educational and algorithmic clarity
☆225Apr 12, 2026Updated 4 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 3 years ago
- flash attention tutorial written in python, triton, cuda, cutlass☆534Jan 20, 2026Updated 7 months ago
- a minimal cache manager for PagedAttention, on top of llama3.☆151Aug 26, 2024Updated 2 years 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,180Dec 30, 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.
- Implement Flash Attention using Cute.☆111Dec 17, 2024Updated last year
- ☆16Mar 13, 2023Updated 3 years ago
- Fast and memory-efficient exact attention☆23Jun 26, 2026Updated 2 months ago
- Triton implementation of FlashAttention2 that adds Custom Masks.☆179Aug 14, 2024Updated 2 years ago
- ☆27Aug 5, 2022Updated 4 years ago
- Experimental adapter for fine-tuning Qwen3-VL as a Vision-Language-Action (VLA) model☆15Dec 21, 2025Updated 8 months ago
- Prune transformer layers☆74May 30, 2024Updated 2 years ago
- Implementation of the paper "Opcodes as predictor for malware " by Daniel Bilar☆11Oct 17, 2020Updated 5 years ago
- Fast Hadamard transform in CUDA, with a PyTorch interface☆349Mar 10, 2026Updated 5 months ago
- 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.
- 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 …☆203Updated this week
- triton ver of gqa flash attn, based on the tutorial☆12Aug 4, 2024Updated 2 years ago
- The official repository for SkyLadder: Better and Faster Pretraining via Context Window Scheduling☆43Dec 29, 2025Updated 8 months ago
- Fast inference from large lauguage models via speculative decoding☆926Aug 22, 2024Updated 2 years ago
- A re-implementation of the "Red Teaming Language Models with Language Models" paper by Perez et al., 2022☆35Oct 9, 2023Updated 2 years ago
- Automated CUDA kernel performance diagnostics from NVIDIA Nsight Compute (NCU) CSV exports.☆35Mar 18, 2026Updated 5 months ago
- [ICLR 2025 & COLM 2025] Official PyTorch implementation of the Forgetting Transformer and Adaptive Computation Pruning☆153Feb 25, 2026Updated 6 months ago
- ☆17Nov 14, 2022Updated 3 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.
- The simplest implementation of recent Sparse Attention patterns for efficient LLM inference.☆92Jul 17, 2025Updated last year
- Fast and memory-efficient exact attention☆24,856Updated this week
- ☆54May 19, 2025Updated last year
- Compositional Muon release☆25Jun 5, 2026Updated 3 months 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
- Accelerating MoE with IO and Tile-aware Optimizations☆759Aug 29, 2026Updated last week
- ☆35Dec 22, 2025Updated 8 months ago
- ☆12May 16, 2024Updated 2 years ago
- Official Implementation for the ICLR2023 paper "Fuzzy Alignments in Directed Acyclic Graph for Non-autoregressive Machine Translation"☆14Mar 1, 2023Updated 3 years ago
- Wordpress hosting with auto-scaling - Free Trial Offer • AdFully Managed hosting for WordPress and WooCommerce businesses that need reliable, auto-scalable performance. Cloudways SafeUpdates now available.
- Using FlexAttention to compute attention with different masking patterns☆47Sep 22, 2024Updated last year
- Recreating PyTorch from scratch (C/C++, CUDA, NCCL and Python, with multi-GPU support and automatic differentiation!)☆167Nov 25, 2025Updated 9 months ago
- Llama causal LM fully recreated in LibTorch. Designed to be used in Unreal Engine 5☆16Sep 19, 2024Updated last year
- ☆285Jun 6, 2025Updated last year
- Standalone Flash Attention v2 kernel without libtorch dependency☆113Sep 10, 2024Updated last year
- Code for the paper: https://arxiv.org/pdf/2309.06979.pdf☆21Jul 29, 2024Updated 2 years ago
- Codes and data for ACL 2023 Findings paper "Click: Controllable Text Generation with Sequence Likelihood Contrastive Learning"☆18Feb 26, 2024Updated 2 years ago