# pageman/sutskever-30-implementations architecture

> Architecture diagram of the GitHub repository pageman/sutskever-30-implementations, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pageman/sutskever-30-implementations
- Repository: https://github.com/pageman/sutskever-30-implementations

## Overview

This is an educational suite of NumPy-based toy implementations for 30 foundational deep-learning papers, delivered primarily as runnable Jupyter notebooks. The learner selects and runs a notebook, follows its explanations and visualizations, and explores synthetic examples of the paper’s concepts. The README documents the notebook topics and shared capabilities; sampled Python sources additionally expose a Paper 18 workflow for generating sequential-reasoning tasks, evaluating LSTM and Relational RNN models, and providing reusable training utilities. Notebook internals were not sampled, so their implementation-level connections are not inferred.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_foundations["Foundations"]
  node_p01["Complexity Dynamics"]
  node_p02["Character RNN"]
  node_p03["LSTM Concepts"]
  node_p04["RNN Regularization"]
  node_p05["Network Pruning"]
end

subgraph group_architectures["Architectures"]
  node_p06["Pointer Networks"]
  node_p07["AlexNet CNN"]
  node_p08["Seq2Seq Sets"]
  node_p09["GPipe<br/>[09_gpipe.ipynb]"]
  node_p10["Deep ResNet"]
  node_p11["Dilated Convolutions"]
  node_p12["Graph Networks"]
  node_p13["Transformer Attention"]
  node_p14["Bahdanau Attention"]
  node_p15["Identity Mappings"]
  node_p26["CNN Fundamentals"]
end

subgraph group_advanced["Advanced Models"]
  node_p16["Relational Reasoning"]
  node_p17["Variational Autoencoder"]
  node_p18["Relational RNN"]
  node_p20["Neural Turing Machine"]
  node_p21["CTC Speech"]
  node_p27["Multi-token Prediction"]
end

subgraph group_theory["Theory and Applications"]
  node_p19["Coffee Automaton"]
  node_p22["Scaling Laws"]
  node_p23["MDL Principle"]
  node_p24["Machine Intelligence"]
  node_p25["Kolmogorov Complexity"]
  node_p28["Dense Passage Retrieval"]
  node_p29["Retrieval-Augmented Generation<br/>[29_rag.ipynb]"]
  node_p30["Lost in the Middle"]
end

subgraph group_paper18["Paper 18 Runtime"]
  node_attention["Multi-head Attention"]
  node_lstm["LSTM Baseline<br/>[lstm_baseline.py]"]
  node_tasks["Reasoning Tasks<br/>[reasoning_tasks.py]"]
  node_memory["Relational Memory"]
end

click node_p01 "https://github.com/pageman/sutskever-30-implementations/blob/main/01_complexity_dynamics.ipynb"
click node_p02 "https://github.com/pageman/sutskever-30-implementations/blob/main/02_char_rnn_karpathy.ipynb"
click node_p03 "https://github.com/pageman/sutskever-30-implementations/blob/main/03_lstm_understanding.ipynb"
click node_p04 "https://github.com/pageman/sutskever-30-implementations/blob/main/04_rnn_regularization.ipynb"
click node_p05 "https://github.com/pageman/sutskever-30-implementations/blob/main/05_neural_network_pruning.ipynb"
click node_p06 "https://github.com/pageman/sutskever-30-implementations/blob/main/06_pointer_networks.ipynb"
click node_p07 "https://github.com/pageman/sutskever-30-implementations/blob/main/07_alexnet_cnn.ipynb"
click node_p08 "https://github.com/pageman/sutskever-30-implementations/blob/main/08_seq2seq_for_sets.ipynb"
click node_p09 "https://github.com/pageman/sutskever-30-implementations/blob/main/09_gpipe.ipynb"
click node_p10 "https://github.com/pageman/sutskever-30-implementations/blob/main/10_resnet_deep_residual.ipynb"
click node_p11 "https://github.com/pageman/sutskever-30-implementations/blob/main/11_dilated_convolutions.ipynb"
click node_p12 "https://github.com/pageman/sutskever-30-implementations/blob/main/12_graph_neural_networks.ipynb"
click node_p13 "https://github.com/pageman/sutskever-30-implementations/blob/main/13_attention_is_all_you_need.ipynb"
click node_p14 "https://github.com/pageman/sutskever-30-implementations/blob/main/14_bahdanau_attention.ipynb"
click node_p15 "https://github.com/pageman/sutskever-30-implementations/blob/main/15_identity_mappings_resnet.ipynb"
click node_p16 "https://github.com/pageman/sutskever-30-implementations/blob/main/16_relational_reasoning.ipynb"
click node_p17 "https://github.com/pageman/sutskever-30-implementations/blob/main/17_variational_autoencoder.ipynb"
click node_p18 "https://github.com/pageman/sutskever-30-implementations/blob/main/18_relational_rnn.ipynb"
click node_p19 "https://github.com/pageman/sutskever-30-implementations/blob/main/19_coffee_automaton.ipynb"
click node_p20 "https://github.com/pageman/sutskever-30-implementations/blob/main/20_neural_turing_machine.ipynb"
click node_p21 "https://github.com/pageman/sutskever-30-implementations/blob/main/21_ctc_speech.ipynb"
click node_p22 "https://github.com/pageman/sutskever-30-implementations/blob/main/22_scaling_laws.ipynb"
click node_p23 "https://github.com/pageman/sutskever-30-implementations/blob/main/23_mdl_principle.ipynb"
click node_p24 "https://github.com/pageman/sutskever-30-implementations/blob/main/24_machine_super_intelligence.ipynb"
click node_p25 "https://github.com/pageman/sutskever-30-implementations/blob/main/25_kolmogorov_complexity.ipynb"
click node_p26 "https://github.com/pageman/sutskever-30-implementations/blob/main/26_cs231n_cnn_fundamentals.ipynb"
click node_p27 "https://github.com/pageman/sutskever-30-implementations/blob/main/27_multi_token_prediction.ipynb"
click node_p28 "https://github.com/pageman/sutskever-30-implementations/blob/main/28_dense_passage_retrieval.ipynb"
click node_p29 "https://github.com/pageman/sutskever-30-implementations/blob/main/29_rag.ipynb"
click node_p30 "https://github.com/pageman/sutskever-30-implementations/blob/main/30_lost_in_middle.ipynb"
click node_attention "https://github.com/pageman/sutskever-30-implementations/blob/main/attention_mechanism.py"
click node_lstm "https://github.com/pageman/sutskever-30-implementations/blob/main/lstm_baseline.py"
click node_tasks "https://github.com/pageman/sutskever-30-implementations/blob/main/reasoning_tasks.py"
click node_memory "https://github.com/pageman/sutskever-30-implementations/blob/main/relational_memory.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_p01,node_p02,node_p03,node_p04,node_p05 toneBlue
class node_p06,node_p07,node_p08,node_p09,node_p10,node_p11,node_p12,node_p13,node_p14,node_p15,node_p26 toneAmber
class node_p16,node_p17,node_p18,node_p20,node_p21,node_p27 toneMint
class node_p19,node_p22,node_p23,node_p24,node_p25,node_p28,node_p29,node_p30 toneRose
class node_attention,node_lstm,node_tasks,node_memory toneIndigo
```

## Components

### Foundations

- [Complexity Dynamics](https://github.com/pageman/sutskever-30-implementations/blob/main/01_complexity_dynamics.ipynb): `01_complexity_dynamics.ipynb`
- [Character RNN](https://github.com/pageman/sutskever-30-implementations/blob/main/02_char_rnn_karpathy.ipynb): `02_char_rnn_karpathy.ipynb`
- [LSTM Concepts](https://github.com/pageman/sutskever-30-implementations/blob/main/03_lstm_understanding.ipynb): `03_lstm_understanding.ipynb`
- [RNN Regularization](https://github.com/pageman/sutskever-30-implementations/blob/main/04_rnn_regularization.ipynb): `04_rnn_regularization.ipynb`
- [Network Pruning](https://github.com/pageman/sutskever-30-implementations/blob/main/05_neural_network_pruning.ipynb): `05_neural_network_pruning.ipynb`

### Architectures

- [Pointer Networks](https://github.com/pageman/sutskever-30-implementations/blob/main/06_pointer_networks.ipynb): `06_pointer_networks.ipynb`
- [AlexNet CNN](https://github.com/pageman/sutskever-30-implementations/blob/main/07_alexnet_cnn.ipynb): `07_alexnet_cnn.ipynb`
- [Seq2Seq Sets](https://github.com/pageman/sutskever-30-implementations/blob/main/08_seq2seq_for_sets.ipynb): `08_seq2seq_for_sets.ipynb`
- [GPipe](https://github.com/pageman/sutskever-30-implementations/blob/main/09_gpipe.ipynb): `09_gpipe.ipynb`
- [Deep ResNet](https://github.com/pageman/sutskever-30-implementations/blob/main/10_resnet_deep_residual.ipynb): `10_resnet_deep_residual.ipynb`
- [Dilated Convolutions](https://github.com/pageman/sutskever-30-implementations/blob/main/11_dilated_convolutions.ipynb): `11_dilated_convolutions.ipynb`
- [Graph Networks](https://github.com/pageman/sutskever-30-implementations/blob/main/12_graph_neural_networks.ipynb): `12_graph_neural_networks.ipynb`
- [Transformer Attention](https://github.com/pageman/sutskever-30-implementations/blob/main/13_attention_is_all_you_need.ipynb): `13_attention_is_all_you_need.ipynb`
- [Bahdanau Attention](https://github.com/pageman/sutskever-30-implementations/blob/main/14_bahdanau_attention.ipynb): `14_bahdanau_attention.ipynb`
- [Identity Mappings](https://github.com/pageman/sutskever-30-implementations/blob/main/15_identity_mappings_resnet.ipynb): `15_identity_mappings_resnet.ipynb`
- [CNN Fundamentals](https://github.com/pageman/sutskever-30-implementations/blob/main/26_cs231n_cnn_fundamentals.ipynb): `26_cs231n_cnn_fundamentals.ipynb`

### Advanced Models

- [Relational Reasoning](https://github.com/pageman/sutskever-30-implementations/blob/main/16_relational_reasoning.ipynb): `16_relational_reasoning.ipynb`
- [Variational Autoencoder](https://github.com/pageman/sutskever-30-implementations/blob/main/17_variational_autoencoder.ipynb): `17_variational_autoencoder.ipynb`
- [Relational RNN](https://github.com/pageman/sutskever-30-implementations/blob/main/18_relational_rnn.ipynb): `18_relational_rnn.ipynb`
- [Neural Turing Machine](https://github.com/pageman/sutskever-30-implementations/blob/main/20_neural_turing_machine.ipynb): `20_neural_turing_machine.ipynb`
- [CTC Speech](https://github.com/pageman/sutskever-30-implementations/blob/main/21_ctc_speech.ipynb): `21_ctc_speech.ipynb`
- [Multi-token Prediction](https://github.com/pageman/sutskever-30-implementations/blob/main/27_multi_token_prediction.ipynb): `27_multi_token_prediction.ipynb`

### Theory and Applications

- [Coffee Automaton](https://github.com/pageman/sutskever-30-implementations/blob/main/19_coffee_automaton.ipynb): `19_coffee_automaton.ipynb`
- [Scaling Laws](https://github.com/pageman/sutskever-30-implementations/blob/main/22_scaling_laws.ipynb): `22_scaling_laws.ipynb`
- [MDL Principle](https://github.com/pageman/sutskever-30-implementations/blob/main/23_mdl_principle.ipynb): `23_mdl_principle.ipynb`
- [Machine Intelligence](https://github.com/pageman/sutskever-30-implementations/blob/main/24_machine_super_intelligence.ipynb): `24_machine_super_intelligence.ipynb`
- [Kolmogorov Complexity](https://github.com/pageman/sutskever-30-implementations/blob/main/25_kolmogorov_complexity.ipynb): `25_kolmogorov_complexity.ipynb`
- [Dense Passage Retrieval](https://github.com/pageman/sutskever-30-implementations/blob/main/28_dense_passage_retrieval.ipynb): `28_dense_passage_retrieval.ipynb`
- [Retrieval-Augmented Generation](https://github.com/pageman/sutskever-30-implementations/blob/main/29_rag.ipynb): `29_rag.ipynb`
- [Lost in the Middle](https://github.com/pageman/sutskever-30-implementations/blob/main/30_lost_in_middle.ipynb): `30_lost_in_middle.ipynb`

### Paper 18 Runtime

- [Multi-head Attention](https://github.com/pageman/sutskever-30-implementations/blob/main/attention_mechanism.py): `attention_mechanism.py`
- [LSTM Baseline](https://github.com/pageman/sutskever-30-implementations/blob/main/lstm_baseline.py): `lstm_baseline.py`
- [Reasoning Tasks](https://github.com/pageman/sutskever-30-implementations/blob/main/reasoning_tasks.py): `reasoning_tasks.py`
- [Relational Memory](https://github.com/pageman/sutskever-30-implementations/blob/main/relational_memory.py): `relational_memory.py`
