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.
71 repos matching “attention-mechanism”
Image generation
Stars:918muse-maskgit-pytorch
Implementation of Muse: Text-to-Image Generation via Masked Generative Transformers, in Pytorch
Python · MIT · updated 2 years agoDetails›Open models
Stars:877RETRO-pytorch
Implementation of RETRO, Deepmind's Retrieval based Attention net, in Pytorch
Python · Apache-2.0 · updated 3 years agoDetails›Open models
Stars:862meshgpt-pytorch
Implementation of MeshGPT, SOTA Mesh generation using Attention, in Pytorch
Python · MIT · updated 1 year agoDetails›Open models
Stars:823PaLM-pytorch
Implementation of the specific Transformer architecture from PaLM - Scaling Language Modeling with Pathways
Python · MIT · updated 4 years agoDetails›Video & animation
Stars:790phenaki-pytorch
Implementation of Phenaki Video, which uses Mask GIT to produce text guided videos of up to 2 minutes in length, in Pytorch
Python · MIT · updated 2 years agoDetails›Image generation
Stars:731MIRNet
[ECCV 2020] Learning Enriched Features for Real Image Restoration and Enhancement. SOTA results for image denoising, super-resolution, and image enhancement.
Python · updated 2 years agoDetails›Open models
Stars:731TimeSformer-pytorch
Implementation of TimeSformer from Facebook AI, a pure attention-based solution for video classification
Python · MIT · updated 5 years agoDetails›Speech & audio
Stars:695Transformer-TTS
A Pytorch Implementation of "Neural Speech Synthesis with Transformer Network"
Python · MIT · updated 3 years agoDetails›Computer vision
Stars:678bottleneck-transformer-pytorch
Implementation of Bottleneck Transformer in Pytorch
Python · MIT · updated 5 years agoDetails›Video & animation
Stars:669magvit2-pytorch
Implementation of MagViT2 Tokenizer in Pytorch
Python · MIT · updated 1 year agoDetails›Open models
Stars:659MEGABYTE-pytorch
Implementation of MEGABYTE, Predicting Million-byte Sequences with Multiscale Transformers, in Pytorch
Python · MIT · updated 1 year agoDetails›LLM & RAG frameworks
Stars:645memorizing-transformers-pytorch
Implementation of Memorizing Transformers (ICLR 2022), attention net augmented with indexing and retrieval of memories using approximate nearest neighbors, in Pytorch
Python · MIT · updated 3 years agoDetails›Run models locally
Stars:630Deepdive-llama3-from-scratch
Achieve the llama3 inference step-by-step, grasp the core concepts, master the process derivation, implement the code.
Jupyter Notebook · MIT · updated 1 year agoDetails›Image generation
Stars:615metal-flash-attention
FlashAttention (Metal Port)
Swift · MIT · updated 2 years agoDetails›Learn AI
Stars:605zeta
Build high-performance AI models with modular building blocks
Python · Apache-2.0 · updated 15 days agoDetails›Speech & audio
Stars:595neural_sp
End-to-end ASR/LM implementation with PyTorch
Python · Apache-2.0 · updated 5 years agoDetails›Robotics & driving
Stars:585RT-2
Democratization of RT-2 "RT-2: New model translates vision and language into action"
Python · MIT · updated 2 years agoDetails›Training & MLOps
Stars:564mmdit
Implementation of a single layer of the MMDiT, proposed in Stable Diffusion 3, in Pytorch
Python · MIT · updated 10 months agoDetails›Video & animation
Stars:547nuwa-pytorch
Implementation of NÜWA, state of the art attention network for text to video synthesis, in Pytorch
Python · MIT · updated 3 years agoDetails›Open models
Stars:539iTransformer
Unofficial implementation of iTransformer - SOTA Time Series Forecasting using Attention networks, out of Tsinghua / Ant group
Python · MIT · updated 1 year agoDetails›Image generation
Stars:536parti-pytorch
Implementation of Parti, Google's pure attention-based text-to-image neural network, in Pytorch
Python · MIT · updated 2 years agoDetails›Training & MLOps
Stars:521SAITS
The official PyTorch implementation of the paper "SAITS: Self-Attention-based Imputation for Time Series". A fast and state-of-the-art (SOTA) deep-learning neural network model for efficient time-series imputation (impute multivariate incomplete time series containing NaN missing data/values with m…
Python · MIT · updated 3 months agoDetails›Open models
Stars:473MultiModalMamba
A novel implementation of fusing ViT with Mamba into a fast, agile, and high performance Multi-Modal Model. Powered by Zeta, the simplest AI framework ever.
Python · MIT · updated 22 days agoDetails›Robotics & driving
Stars:453robotic-transformer-pytorch
Implementation of RT1 (Robotic Transformer) in Pytorch
Python · MIT · updated 2 years 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:431Paper-Replications-and-Experiments
From-scratch PyTorch replications of classic and SOTA AI/ML papers: transformers, attention, GANs, diffusion, CLIP, LoRA, MoE, plus SFT/GRPO post-training experiments.
Jupyter Notebook · Apache-2.0 · updated 27 days agoDetails›Open models
Stars:428OpenArch
PyTorch implementations of modern open-source LLM architectures (Llama, Qwen, DeepSeek, Gemma, GPT-OSS, Kimi, and more) — written from scratch for readability and learning, based on Sebastian Raschka's LLM Architecture Gallery.
Python · MIT · updated 2 months agoDetails›LLM & RAG frameworks
Stars:426recurrent-memory-transformer-pytorch
Implementation of Recurrent Memory Transformer, Neurips 2022 paper, in Pytorch
Python · MIT · updated 1 year agoDetails›Training & MLOps
Stars:419EQTransformer
EQTransformer, a python package for earthquake signal detection and phase picking using AI.
Python · MIT · updated 7 months agoDetails›Learn AI
Stars:414Awesome-Attention-Heads
An awesome repository & A comprehensive survey on interpretability of LLM attention heads.
TeX · updated 1 year agoDetails›
Details come from each project’s own repository. Something wrong or missing? Tell us or open a pull request.