# 60+ Implementations Tutorials Of Deep Learning Papers With Side By Side Notes 📝

**URL:** <https://onehack.st/t/60-implementations-tutorials-of-deep-learning-papers-with-side-by-side-notes/290023>\
**Category:** Tutorials & Methods\
**Tags:** tools, freebies, ai\
**Created:** [August 27, 2024, 9:03pm UTC](https://onehack.st/t/60-implementations-tutorials-of-deep-learning-papers-with-side-by-side-notes/290023 "2024-08-27T21:03:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlueHacker](https://onehack.st/user_avatar/onehack.st/bluehacker/32/174721_2.png) [@BlueHacker](https://onehack.st/u/BlueHacker)\
**Post date:** [August 27, 2024, 9:03pm UTC](https://onehack.st/t/60-implementations-tutorials-of-deep-learning-papers-with-side-by-side-notes/290023/1 "2024-08-27T21:03:11Z")

</div>

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

[The website](https://nn.labml.ai/index.html) renders these as side-by-side formatted notes. We believe these would help you understand these algorithms better.

[![Screenshot](https://camo.githubusercontent.com/b35f0461579aec36bab50565a1802888a4dcc9eb0f13251ebd5ab769053b9972/68747470733a2f2f6e6e2e6c61626d6c2e61692f64716e2d6c696768742e706e67)](https://camo.githubusercontent.com/b35f0461579aec36bab50565a1802888a4dcc9eb0f13251ebd5ab769053b9972/68747470733a2f2f6e6e2e6c61626d6c2e61692f64716e2d6c696768742e706e67)

We are actively maintaining this repo and adding new implementations almost weekly. [![Twitter](https://camo.githubusercontent.com/60662f08d2f9f94c5ee8223a28348d34557ee1b52eb85d0bd9663fe12ab06b03/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f6c61626d6c61693f7374796c653d736f6369616c)](https://twitter.com/labmlai) for updates.

## Paper Implementations

#### ✨ [Transformers](https://nn.labml.ai/transformers/index.html)

- [Multi-headed attention](https://nn.labml.ai/transformers/mha.html)
- [Transformer building blocks](https://nn.labml.ai/transformers/models.html)
- [Transformer XL](https://nn.labml.ai/transformers/xl/index.html)
  - [Relative multi-headed attention](https://nn.labml.ai/transformers/xl/relative_mha.html)

- [Rotary Positional Embeddings](https://nn.labml.ai/transformers/rope/index.html)
- [Attention with Linear Biases (ALiBi)](https://nn.labml.ai/transformers/alibi/index.html)
- [RETRO](https://nn.labml.ai/transformers/retro/index.html)
- [Compressive Transformer](https://nn.labml.ai/transformers/compressive/index.html)
- [GPT Architecture](https://nn.labml.ai/transformers/gpt/index.html)
- [GLU Variants](https://nn.labml.ai/transformers/glu_variants/simple.html)
- [kNN-LM: Generalization through Memorization](https://nn.labml.ai/transformers/knn)
- [Feedback Transformer](https://nn.labml.ai/transformers/feedback/index.html)
- [Switch Transformer](https://nn.labml.ai/transformers/switch/index.html)
- [Fast Weights Transformer](https://nn.labml.ai/transformers/fast_weights/index.html)
- [FNet](https://nn.labml.ai/transformers/fnet/index.html)
- [Attention Free Transformer](https://nn.labml.ai/transformers/aft/index.html)
- [Masked Language Model](https://nn.labml.ai/transformers/mlm/index.html)
- [MLP-Mixer: An all-MLP Architecture for Vision](https://nn.labml.ai/transformers/mlp_mixer/index.html)
- [Pay Attention to MLPs (gMLP)](https://nn.labml.ai/transformers/gmlp/index.html)
- [Vision Transformer (ViT)](https://nn.labml.ai/transformers/vit/index.html)
- [Primer EZ](https://nn.labml.ai/transformers/primer_ez/index.html)
- [Hourglass](https://nn.labml.ai/transformers/hour_glass/index.html)

#### ✨ [Low-Rank Adaptation (LoRA)](https://nn.labml.ai/lora/index.html)

#### ✨ [Eleuther GPT-NeoX](https://nn.labml.ai/neox/index.html)

- [Generate on a 48GB GPU](https://nn.labml.ai/neox/samples/generate.html)
- [Finetune on two 48GB GPUs](https://nn.labml.ai/neox/samples/finetune.html)
- [LLM.int8()](https://nn.labml.ai/neox/utils/llm_int8.html)

#### ✨ [Diffusion models](https://nn.labml.ai/diffusion/index.html)

- [Denoising Diffusion Probabilistic Models (DDPM)](https://nn.labml.ai/diffusion/ddpm/index.html)
- [Denoising Diffusion Implicit Models (DDIM)](https://nn.labml.ai/diffusion/stable_diffusion/sampler/ddim.html)
- [Latent Diffusion Models](https://nn.labml.ai/diffusion/stable_diffusion/latent_diffusion.html)
- [Stable Diffusion](https://nn.labml.ai/diffusion/stable_diffusion/index.html)

#### ✨ [Generative Adversarial Networks](https://nn.labml.ai/gan/index.html)

- [Original GAN](https://nn.labml.ai/gan/original/index.html)
- [GAN with deep convolutional network](https://nn.labml.ai/gan/dcgan/index.html)
- [Cycle GAN](https://nn.labml.ai/gan/cycle_gan/index.html)
- [Wasserstein GAN](https://nn.labml.ai/gan/wasserstein/index.html)
- [Wasserstein GAN with Gradient Penalty](https://nn.labml.ai/gan/wasserstein/gradient_penalty/index.html)
- [StyleGAN 2](https://nn.labml.ai/gan/stylegan/index.html)

#### ✨ [Recurrent Highway Networks](https://nn.labml.ai/recurrent_highway_networks/index.html)

#### ✨ [LSTM](https://nn.labml.ai/lstm/index.html)

#### ✨ [HyperNetworks - HyperLSTM](https://nn.labml.ai/hypernetworks/hyper_lstm.html)

#### ✨ [ResNet](https://nn.labml.ai/resnet/index.html)

#### ✨ [ConvMixer](https://nn.labml.ai/conv_mixer/index.html)

#### ✨ [Capsule Networks](https://nn.labml.ai/capsule_networks/index.html)

#### ✨ [U-Net](https://nn.labml.ai/unet/index.html)

#### ✨ [Sketch RNN](https://nn.labml.ai/sketch_rnn/index.html)

#### ✨ Graph Neural Networks

- [Graph Attention Networks (GAT)](https://nn.labml.ai/graphs/gat/index.html)
- [Graph Attention Networks v2 (GATv2)](https://nn.labml.ai/graphs/gatv2/index.html)

#### ✨ [Counterfactual Regret Minimization (CFR)](https://nn.labml.ai/cfr/index.html)

Solving games with incomplete information such as poker with CFR.

- [Kuhn Poker](https://nn.labml.ai/cfr/kuhn/index.html)

#### ✨ [Reinforcement Learning](https://nn.labml.ai/rl/index.html)

- [Proximal Policy Optimization](https://nn.labml.ai/rl/ppo/index.html) with [Generalized Advantage Estimation](https://nn.labml.ai/rl/ppo/gae.html)
- [Deep Q Networks](https://nn.labml.ai/rl/dqn/index.html) with with [Dueling Network](https://nn.labml.ai/rl/dqn/model.html), [Prioritized Replay](https://nn.labml.ai/rl/dqn/replay_buffer.html) and Double Q Network.

#### ✨ [Optimizers](https://nn.labml.ai/optimizers/index.html)

- [Adam](https://nn.labml.ai/optimizers/adam.html)
- [AMSGrad](https://nn.labml.ai/optimizers/amsgrad.html)
- [Adam Optimizer with warmup](https://nn.labml.ai/optimizers/adam_warmup.html)
- [Noam Optimizer](https://nn.labml.ai/optimizers/noam.html)
- [Rectified Adam Optimizer](https://nn.labml.ai/optimizers/radam.html)
- [AdaBelief Optimizer](https://nn.labml.ai/optimizers/ada_belief.html)
- [Sophia-G Optimizer](https://nn.labml.ai/optimizers/sophia.html)

#### ✨ [Normalization Layers](https://nn.labml.ai/normalization/index.html)

- [Batch Normalization](https://nn.labml.ai/normalization/batch_norm/index.html)
- [Layer Normalization](https://nn.labml.ai/normalization/layer_norm/index.html)
- [Instance Normalization](https://nn.labml.ai/normalization/instance_norm/index.html)
- [Group Normalization](https://nn.labml.ai/normalization/group_norm/index.html)
- [Weight Standardization](https://nn.labml.ai/normalization/weight_standardization/index.html)
- [Batch-Channel Normalization](https://nn.labml.ai/normalization/batch_channel_norm/index.html)
- [DeepNorm](https://nn.labml.ai/normalization/deep_norm/index.html)

#### ✨ [Distillation](https://nn.labml.ai/distillation/index.html)

#### ✨ [Adaptive Computation](https://nn.labml.ai/adaptive_computation/index.html)

- [PonderNet](https://nn.labml.ai/adaptive_computation/ponder_net/index.html)

#### ✨ [Uncertainty](https://nn.labml.ai/uncertainty/index.html)

- [Evidential Deep Learning to Quantify Classification Uncertainty](https://nn.labml.ai/uncertainty/evidence/index.html)

#### ✨ [Activations](https://nn.labml.ai/activations/index.html)

- [Fuzzy Tiling Activations](https://nn.labml.ai/activations/fta/index.html)

#### ✨ [Langauge Model Sampling Techniques](https://nn.labml.ai/sampling/index.html)

- [Greedy Sampling](https://nn.labml.ai/sampling/greedy.html)
- [Temperature Sampling](https://nn.labml.ai/sampling/temperature.html)
- [Top-k Sampling](https://nn.labml.ai/sampling/top_k.html)
- [Nucleus Sampling](https://nn.labml.ai/sampling/nucleus.html)

#### ✨ [Scalable Training/Inference](https://nn.labml.ai/scaling/index.html)

- [Zero3 memory optimizations](https://nn.labml.ai/scaling/zero3/index.html)

[Follow Repo](https://github.com/labmlai/annotated_deep_learning_paper_implementations)

**Happy learning!**
