lucidrains

Phil Wang Joined Jul 2009 61,730 followers View on GitHub

Stars
184,089
across 361 public repos
Rank
#30
of 323,850 users, top 0.01%

Repositories with 50+ stars

lucidrains's repositories with their overall rank
RankRepositoryLanguageStars
1,660

Implementation of Vision Transformer, a simple way to achieve SOTA in vision classification with only a single transformer encoder, in Pytorch

Python 25,567
4,923

Implementation of DALL-E 2, OpenAI's updated text-to-image synthesis neural network, in Pytorch

Python 11,303
5,301

Implementation of Denoising Diffusion Probabilistic Model in Pytorch

Python 10,727
7,043

Implementation of Imagen, Google's Text-to-Image Neural Network, in Pytorch

Python 8,432
7,643

Implementation of RLHF (Reinforcement Learning with Human Feedback) on top of the PaLM architecture. Basically ChatGPT but with PaLM

Python 7,864
10,607

A concise but complete full-attention transformer with a set of promising experimental features from various papers

Python 5,964
11,308

Implementation / replication of DALL-E, OpenAI's Text to Image Transformer, in Pytorch

Python 5,629
15,260

Simple command line tool for text to image generation using OpenAI's CLIP and Siren (Implicit neural representation network). Technique was originally created by https://twitter.com/advadnoun

Python 4,316
16,437

Vector (and Scalar) Quantization, in Pytorch

Python 4,026
17,622

Simplest working implementation of Stylegan2, state of the art generative adversarial network, in Pytorch. Enabling everyone to experience disentanglement

Python 3,779
20,408

Implementation of MusicLM, Google's new SOTA model for music generation using attention networks, in Pytorch

Python 3,294
25,882

Implementation of AudioLM, a SOTA Language Modeling Approach to Audio Generation out of Google Research, in Pytorch

Python 2,628
26,439

A simple command line tool for text to image generation, using OpenAI's CLIP and a BigGAN. Technique was originally created by https://twitter.com/advadnoun

Python 2,574
30,771

🦁 Lion, new optimizer discovered by Google Brain using genetic algorithms that is purportedly better than Adam(w), in Pytorch

Python 2,208
30,984

Reformer, the efficient Transformer, in Pytorch

Python 2,195
32,983

Implementation of Toolformer, Language Models That Can Use Tools, by MetaAI

Python 2,064
33,948

Unofficial implementation of Titans, SOTA memory for transformers, in Pytorch

Python 2,006
34,213

Implementation of Make-A-Video, new SOTA text to video generator from Meta AI, in Pytorch

Python 1,990
35,049

Implementation of GigaGAN, new SOTA GAN out of Adobe. Culmination of nearly a decade of research into GANs

Python 1,945
35,922

Usable Implementation of "Bootstrap Your Own Latent" self-supervised learning, from Deepmind, in Pytorch

Python 1,899
40,317

Implementation of Alphafold 3 from Google Deepmind in Pytorch

Python 1,700
40,566

Implementation of 'lightweight' GAN, proposed in ICLR 2021, in Pytorch. High resolution image generations that can be trained within a day or two

Python 1,688
41,692

To eventually become an unofficial Pytorch implementation / replication of Alphafold2, as details of the architecture get released

Python 1,642
44,291

Implementation of SoundStorm, Efficient Parallel Audio Generation from Google Deepmind, in Pytorch

Python 1,545
44,731

Implementation of LambdaNetworks, a new approach to image recognition that reaches SOTA with less compute

Python 1,530
48,502

Implementation of the training framework proposed in Self-Rewarding Language Model, from MetaAI

Python 1,412
48,502

Pytorch implementation of Transfusion, "Predict the Next Token and Diffuse Images with One Multi-Modal Model", from MetaAI

Python 1,412
49,184

Implementation of Video Diffusion Models, Jonathan Ho's new paper extending DDPMs to Video Generation - in Pytorch

Python 1,392
51,205

Implementation of Natural Speech 2, Zero-shot Speech and Singing Synthesizer, in Pytorch

Python 1,334
53,688

Implementation of 🦩 Flamingo, state-of-the-art few-shot visual question answering attention net out of Deepmind, in Pytorch

Python 1,267
55,398

Implementation of Perceiver, General Perception with Iterative Attention, in Pytorch

Python 1,224
56,384

Implementation of CoCa, Contrastive Captioners are Image-Text Foundation Models, in Pytorch

Python 1,201
57,160

An implementation of Performer, a linear attention-based transformer, in Pytorch

Python 1,183
61,032

Implementation of TabTransformer, attention network for tabular data, in Pytorch

Python 1,099
62,647

An All-MLP solution for Vision, from Google AI

Python 1,067
65,302

Implementation of Band Split Roformer, SOTA Attention network for music source separation out of ByteDance AI Labs

Python 1,018
71,655

Implementation of Muse: Text-to-Image Generation via Masked Generative Transformers, in Pytorch

Python 918
74,698

Implementation of RETRO, Deepmind's Retrieval based Attention net, in Pytorch

Python 878
74,794

A Pytorch implementation of Sparsely-Gated Mixture of Experts, for massively increasing the parameter count of language models

Python 877
76,034

Implementation of MeshGPT, SOTA Mesh generation using Attention, in Pytorch

Python 862
77,402

Transformer based on a variant of attention that is linear complexity in respect to sequence length

Python 845
79,021

Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch

Python 827
79,399

Implementation of the specific Transformer architecture from PaLM - Scaling Language Modeling with Pathways

Python 823
80,039

Implementation of the sparse attention pattern proposed by the Deepseek team in their "Native Sparse Attention" paper

Python 816
82,535

Implementation of Phenaki Video, which uses Mask GIT to produce text guided videos of up to 2 minutes in length, in Pytorch

Python 790
88,744

Implementation of TimeSformer from Facebook AI, a pure attention-based solution for video classification

Python 731
89,328

A concise but complete implementation of CLIP with various experimental improvements from recent papers

Python 726
91,629

Implementation of Voicebox, new SOTA Text-to-speech network from MetaAI, in Pytorch

Python 706
94,989

Implementation of Bottleneck Transformer in Pytorch

Python 678
96,148

Implementation of MagViT2 Tokenizer in Pytorch

Python 669
97,451

A simple way to keep track of an Exponential Moving Average (EMA) version of your Pytorch model

Python 659
97,451

Implementation of MEGABYTE, Predicting Million-byte Sequences with Multiscale Transformers, in Pytorch

Python 659
99,428

Implementation of Memorizing Transformers (ICLR 2022), attention net augmented with indexing and retrieval of memories using approximate nearest neighbors, in Pytorch

Python 645
106,446

Implementation of the Point Transformer layer, in Pytorch

Python 599
108,052

Implementation of π₀, the robotic foundation model architecture proposed by Physical Intelligence

Python 589
110,506

Implementation of Enformer, Deepmind's attention network for predicting gene expression, in Pytorch

Python 575
112,493

Implementation of a single layer of the MMDiT, proposed in Stable Diffusion 3, in Pytorch

Python 564
115,431

Implementation of 💍 Ring Attention, from Liu et al. at Berkeley AI, in Pytorch

Python 548
115,645

Implementation of NÜWA, state of the art attention network for text to video synthesis, in Pytorch

Python 547
116,620

Implementation of Classifier Free Guidance in Pytorch, with emphasis on text conditioning, and flexibility to include multiple text embedding models

Python 542
117,229

Unofficial implementation of iTransformer - SOTA Time Series Forecasting using Attention networks, out of Tsinghua / Ant group

Python 539
117,840

Implementation of Parti, Google's pure attention-based text-to-image neural network, in Pytorch

Python 536
118,031

Implementation of E(n)-Equivariant Graph Neural Networks, in Pytorch

Python 535
121,151

Implementation of E2-TTS, "Embarrassingly Easy Fully Non-Autoregressive Zero-Shot TTS", in Pytorch

Python 520
121,992

Pytorch implementation of SIREN - Implicit Neural Representations with Periodic Activation Function

Python 516
124,326

An implementation of local windowed attention for language modeling

Python 505
125,249

Implementation of Slot Attention from GoogleAI

Python 501
127,342

Implementation of rectified flow and some of its followup research / improvements in Pytorch

Python 491
136,791

Implementation of RT1 (Robotic Transformer) in Pytorch

Python 453
140,034

Implementation of Autoregressive Diffusion in Pytorch

Python 441
141,481

Implementation of the convolutional module from the Conformer paper, for use in Transformers

Python 436
143,513

Implementation of gMLP, an all-MLP replacement for Transformers, in Pytorch

Python 429
144,711

Implementation of Recurrent Memory Transformer, Neurips 2022 paper, in Pytorch

Python 425
150,759

Implementation of Q-Transformer, Scalable Offline Reinforcement Learning via Autoregressive Q-Functions, out of Google Deepmind

Python 406
154,102

Implementation of Axial attention - attending to multi-dimensional data efficiently

Python 396
154,426

Implementation of a memory efficient multi-head attention as proposed in the paper, "Self-attention Does Not Need O(n²) Memory"

Python 395
156,144

Implementation of ST-Moe, the latest incarnation of MoE after years of research at Brain, in Pytorch

Python 390
162,034

Implementation of the Transformer variant proposed in "Transformer Quality in Linear Time"

Python 374
163,171

Implementation of Segformer, Attention + MLP neural network for segmentation, in Pytorch

Python 371
163,982

Implementation of Deformable Attention in Pytorch from the paper "Vision Transformer with Deformable Attention"

Python 369
169,715

Implementation of Bit Diffusion, Hinton's group's attempt at discrete denoising diffusion, in Pytorch

Python 355
172,232

Implementation of Soft MoE, proposed by Brain's Vision team, in Pytorch

Python 349
179,044

Implementation of SE3-Transformers for Equivariant Self-Attention, in Pytorch. This specific repository is geared towards integration with eventual Alphafold2 replication.

Python 334
181,867

Implementation of the proposed minGRU in Pytorch

Python 328
187,283

Explorations into training LLMs to use clinical calculators from patient history, using open sourced models. Will start with Wells' Criteria

Python 317
192,070

Explorations into some recent techniques surrounding speculative decoding

Python 308
192,631

Implementation of Linformer for Pytorch

Python 307
193,176

Implementation of Transformer in Transformer, pixel level attention paired with patch level attention for image classification, in Pytorch

Python 306
196,454

Fully featured implementation of Routing Transformer

Python 300
197,015

Quick implementation of nGPT, learning entirely on the hypersphere, from NvidiaAI

Python 299
199,810

Implementation of a U-net complete with efficient attention as well as the latest research findings

Python 294
202,180

Implementation of the Equiformer, SE3/E3 equivariant attention network that reaches new SOTA, and adopted for use by EquiFold for protein folding

Python 290
207,739

Implementation of Lumiere, SOTA text-to-video generation from Google Deepmind, in Pytorch

Python 281
209,671

Implementation of a Transformer, but completely in Triton

Python 278
209,671

Implementation of Spear-TTS - multi-speaker text-to-speech attention network, in Pytorch

Python 278
213,686

Sinkhorn Transformer - Practical implementation of Sparse Sinkhorn Attention

Python 272
217,165

Implementation of Pixel-level Contrastive Learning, proposed in the paper "Propagate Yourself", in Pytorch

Python 267
220,020

Use Jax functions in Pytorch

Python 263
227,882

Implementation of the Adan (ADAptive Nesterov momentum algorithm) Optimizer in Pytorch

Python 252
236,629

Implementation of Graph Transformer in Pytorch, for potential use in replicating Alphafold2

Python 241

Among 323,850 users

160k–250k stars: 27 users, including lucidrains

Stars along the bottom, and users in each band on a log scale

When they were made

100 repos with 50+ stars, made between 2020 and 2025

Quick stats

Next rank
+759 stars to reach #29
Next milestone
+293,742 stars to reach the top 0.001%
Public repos
361, 252 with 50+ stars
Popular repos
36 over 1k stars, 3 over 10k stars
Top repo
vit-pytorch, #1,660 of all repos, 14% of stars
Smaller repos
2,518 stars from repos under 50

Stars counted Recounted daily Next count around