Open-source AI repos
Open-source AI, all in one place.
13,356 open-source AI repositories for learning, teaching, research and building. Kept up to date by the community: anyone can add a repo with a pull request.
151 repos matching “attention”
Training & MLOps
Stars:9.8kattention-is-all-you-need-pytorch
A PyTorch implementation of the Transformer model in "Attention is All You Need".
Python · MIT · updated 2 years agoDetails›Open models
Stars:6.1kflash-linear-attention
Efficient implementations for emerging model architectures
Python · MIT · updated 10 days agoDetails›Learn AI
Stars:5kAwesome-Transformer-Attention
An ultimately comprehensive paper list of Vision Transformer/Attention, including papers, codes, and related websites
updated 2 years agoDetails›Video & animation
Stars:4kSageAttention
[ICLR2025, ICML2025, NeurIPS2025 Spotlight] Quantized Attention achieves speedup of 2-5x compared to FlashAttention, without losing end-to-end metrics across language, image, and video models.
Cuda · Apache-2.0 · updated 10 months agoDetails›Training & MLOps
Stars:2.8kkeras-attention
Keras Attention Layer (Luong and Bahdanau scores).
Python · Apache-2.0 · updated 8 months agoDetails›Image generation
Stars:1.3kCrossAttentionControl
Unofficial implementation of "Prompt-to-Prompt Image Editing with Cross Attention Control" with Stable Diffusion
Jupyter Notebook · MIT · updated 4 years agoDetails›Learn AI
Stars:1.3kawesome-attention-mechanism-in-cv
Awesome List of Attention Modules and Plug&Play Modules in Computer Vision
Python · MIT · updated 3 years agoDetails›Open models
Stars:1.2kself-attention-cv
Implementation of various self-attention mechanisms focused on computer vision. Ongoing repository.
Python · MIT · updated 5 years agoDetails›Open models
Stars:778ringattention
Large Context Attention
Python · Apache-2.0 · updated 1 year agoDetails›Open models
Stars:734attention_sinks
Extend existing LLMs way beyond the original training length with constant memory usage, without retraining
Python · Apache-2.0 · updated 2 years agoDetails›Image generation
Stars:686AttentionGAN
AttentionGAN for Unpaired Image-to-Image Translation & Multi-Domain Image-to-Image Translation
Python · updated 3 years agoDetails›Image generation
Stars:624keras_cv_attention_models
Keras beit,caformer,CMT,CoAtNet,convnext,davit,dino,efficientdet,edgenext,efficientformer,efficientnet,eva,fasternet,fastervit,fastvit,flexivit,gcvit,ghostnet,gpvit,hornet,hiera,iformer,inceptionnext,lcnet,levit,maxvit,mobilevit,moganet,nat,nfnets,pvt,swin,tinynet,tinyvit,unif…
Python · MIT · updated 9 months agoDetails›Image generation
Stars:615metal-flash-attention
FlashAttention (Metal Port)
Swift · MIT · updated 2 years agoDetails›Image generation
Stars:609radial-attention
[NeurIPS 2025] Radial Attention: O(nlogn) Sparse Attention with Energy Decay for Long Video Generation
Python · Apache-2.0 · updated 1 year agoDetails›Open models
Stars:591Flash-Sparse-Attention
Efficient implementations of Native Sparse Attention
Python · Apache-2.0 · updated 2 months agoDetails›Open models
Stars:492MisguidedAttention
A collection of prompts to challenge the reasoning abilities of large language models in presence of misguiding information
Python · CC0-1.0 · updated 1 year agoDetails›Training & MLOps
Stars:479go-attention
A full attention mechanism and transformer in pure go.
Go · MIT · updated 5 months agoDetails›Computer vision
Stars:444triplet-attention
Official PyTorch Implementation for "Rotate to Attend: Convolutional Triplet Attention Module." [WACV 2021]
Jupyter Notebook · MIT · updated 1 year agoDetails›Image generation
Stars:436ParaAttention
https://wavespeed.ai/ Context parallel attention that accelerates DiT model inference with dynamic caching
Python · updated 1 year agoDetails›Learn AI
Stars:414Awesome-Attention-Heads
An awesome repository & A comprehensive survey on interpretability of LLM attention heads.
TeX · updated 1 year agoDetails›Image generation
Stars:413attention-map-diffusers
attention map tools for huggingface/diffusers
Python · MIT · updated 3 months agoDetails›Image generation
Stars:406cross-image-attention
Officail Implementation for "Cross-Image Attention for Zero-Shot Appearance Transfer"
Python · MIT · updated 2 years agoDetails›Run models locally
Stars:392Star-Attention
Efficient LLM Inference over Long Sequences
Python · Apache-2.0 · updated 1 year agoDetails›Computer vision
Stars:25.6kvit-pytorch
Implementation of Vision Transformer, a simple way to achieve SOTA in vision classification with only a single transformer encoder, in Pytorch
Python · MIT · updated 24 days agoDetails›Open models
Stars:22.1kQwen
The official repo of Qwen (通义千问) chat & pretrained large language model proposed by Alibaba Cloud.
Python · Apache-2.0 · updated 8 months agoDetails›Coding assistants
Stars:14.9kOpenMythos
A theoretical reconstruction of the Claude Mythos architecture, built from first principles using the available research literature.
Python · MIT · updated 6 months agoDetails›Chat interfaces
Stars:14.8kRWKV-LM
RWKV (pronounced RwaKuv) is an RNN with great LLM performance, which can also be directly trained like a GPT transformer (parallelizable). We are at RWKV-7 "Goose". So it's combining the best of RNN and transformer - great performance, linear time, constant space (no…
Python · Apache-2.0 · updated 27 days agoDetails›Run models locally
Stars:12.5kkimi-k3-in-c
A 2.78-trillion-parameter Kimi K3 running inference on a single CPU in 8.24 GB of RAM. Portable C99: no BLAS, no framework, no GPU.
C · Apache-2.0 · updated 15 days agoDetails›Open models
Stars:8.2kbertviz
BertViz: Visualize Attention in Transformer Models
Python · Apache-2.0 · updated 10 months agoDetails›Open models
Stars:7.9kPaLM-rlhf-pytorch
Implementation of RLHF (Reinforcement Learning with Human Feedback) on top of the PaLM architecture. Basically ChatGPT but with PaLM
Python · MIT · updated 2 months agoDetails›
Details come from each project’s own repository. Something wrong or missing? Tell us or open a pull request.