Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

annotated_deep_learning_paper_implementations

> 数据库
Open source

🧑‍🏫 60+ Implementations/tutorials of deep learning papers with side-by-side notes 📝; including transformers (original, xl, switch, feedback, vit, ...), optim

67.3K stars0 likes9 views
WebsiteGitHub

About

🧑‍🏫 60+ Implementations/tutorials of deep learning papers with side-by-side notes 📝; including transformers (original, xl, switch, feedback, vit, ...), optim

labml.ai Deep Learning Paper Implementations

This is a collection of simple PyTorch implementations of neural networks and related algorithms. These implementations are documented with explanations,

The website renders these as side-by-side formatted notes. We believe these would help you understand these algorithms better.

We are actively maintaining this repo and adding new implementations almost weekly. for updates.

Paper Implementations

✨ Transformers

  • JAX implementation
  • Multi-headed attention
  • Triton Flash Attention
  • Transformer building blocks
  • Transformer XL
    • Relative multi-headed attention
  • Rotary Positional Embeddings
  • Attention with Linear Biases (ALiBi)
  • RETRO
  • Compressive Transformer
  • GPT Architecture
  • GLU Variants
  • kNN-LM: Generalization through Memorization
  • Feedback Transformer
  • Switch Transformer
  • Fast Weights Transformer
  • FNet
  • Attention Free Transformer
  • Masked Language Model
  • MLP-Mixer: An all-MLP Architecture for Vision
  • Pay Attention to MLPs (gMLP)
  • Vision Transformer (ViT)
  • Primer EZ
  • Hourglass

✨ Low-Rank Adaptation (LoRA)

✨ Eleuther GPT-NeoX

  • Generate on a 48GB GPU
  • Finetune on two 48GB GPUs
  • LLM.int8()

✨ Diffusion models

  • Denoising Diffusion Probabilistic Models (DDPM)
  • Denoising Diffusion Implicit Models (DDIM)
  • Latent Diffusion Models
  • Stable Diffusion

✨ Generative Adversarial Networks

  • Original GAN
  • GAN with deep convolutional network
  • Cycle GAN
  • Wasserstein GAN
  • Wasserstein GAN with Gradient Penalty
  • StyleGAN 2

✨ Recurrent Highway Networks

✨ LSTM

✨ HyperNetworks - HyperLSTM

✨ ResNet

✨ ConvMixer

✨ Capsule Networks

✨ U-Net

✨ Sketch RNN

✨ Graph Neural Networks

  • Graph Attention Networks (GAT)
  • Graph Attention Networks v2 (GATv2)

✨ Counterfactual Regret Minimization (CFR)

Solving games with incomplete information such as poker with CFR.

  • Kuhn Poker

✨ Reinforcement Learning

  • Proximal Policy Optimization with Generalized Advantage Estimation
  • Deep Q Networks with with Dueling Network, Prioritized Replay and Double Q Network.

✨ Optimizers

  • Adam
  • AMSGrad
  • Adam Optimizer with warmup
  • Noam Optimizer
  • Rectified Adam Optimizer
  • AdaBelief Optimizer
  • Sophia-G Optimizer

✨ Normalization Layers

  • Batch Normalization
  • Layer Normalization
  • Instance Normalization
  • Group Normalization
  • Weight Standardization
  • Batch-Channel Normalization
  • DeepNorm

✨ Distillation

✨ Adaptive Computation

  • PonderNet

✨ Uncertainty

  • Evidential Deep Learning to Quantify Classification Uncertainty

✨ Activations

  • Fuzzy Tiling Activations

✨ Langauge Model Sampling Techniques

  • Greedy Sampling
  • Temperature Sampling
  • Top-k Sampling
  • Nucleus Sampling

✨ Scalable Training/Inference

  • Zero3 memory optimizations

Installation

bash
pip install labml-nn

Issues· 33 open

View all issuesOpen on GitHub
  • #313

    Missing a negative sign on the exponent for RoPE

    Updated Sep 10, 2026
  • #296

    The number of channels is weird

    Updated Jan 31, 2026
  • #294

    Is there an option to donate to this project?

    Updated Jan 20, 2026
  • #293

    Minor corrections in documentation for Nucleus Sampling implementation

    Updated Jan 3, 2026
  • #291

    labml.configs 中缺少定义FloatDynamicHyperParam, IntDynamicHyperParam,我无法从labml.configs中导入,我去查看了这个文件,里面缺少定义

    Updated Nov 6, 2025
  • #245

    ppo code running error

    Updated Aug 4, 2025
  • #270

    Unet error in DDPM

    Updated Jul 30, 2025
  • #275

    How to Contribute to This Repository

    Updated Jul 18, 2025
  • #285

    in TransformerXLLayer code snippet will face with issues

    Updated Mar 3, 2025
  • #281

    Why is Center Crop used for skip connections instead of Padding in U-Net?

    Updated Jan 5, 2025

> Tags

Pythonattentiondeep-learningdeep-learning-tutorialgan

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库