# manohar-07-git/soc---translations-to-tokens architecture

> Architecture diagram of the GitHub repository manohar-07-git/soc---translations-to-tokens, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/manohar-07-git/soc---translations-to-tokens
- Repository: https://github.com/manohar-07-git/soc---translations-to-tokens

## Overview

This is a learning repository of notebooks and scratch implementations tracing language-model and sequence-model development, culminating in an English-to-French Transformer translator. The documented workflow progresses from character-level models and neural-network foundations through recurrent and attention-based sequence models. The sampled runtime shows local translation tokenizing input, invoking the Transformer autoregressively, and decoding the result. Most notebook relationships below reflect README descriptions; their implementations were not sampled.

Main entry points: [`SOC/Week-5/engine.py`](https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-5/engine.py) (Translation Runtime), [`SOC/Week-5/English_to_French_translator.ipynb`](https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-5/English_to_French_translator.ipynb) (Translator Capstone), [`SOC/Week-4/tiktoken_implementation.ipynb`](https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-4/tiktoken_implementation.ipynb) (BPE Tokenizer), [`SOC/Week-1/micrograd_lec_1.ipynb`](https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-1/micrograd_lec_1.ipynb) (Micrograd Engine)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_foundations["Model Foundations"]
  node_micrograd["Micrograd Engine"]
  node_mnist["MNIST Practice<br/>[MINST.ipynb]"]
  node_normalization["Initialization &amp; Folding<br/>[folding.ipynb]"]
  node_backprop["Manual Backprop"]
end

subgraph group_language["Language Models"]
  node_bigram["Bigram Model"]
  node_mlp["Embedding MLP"]
  node_wavenet["WaveNet Model<br/>[wavenet.ipynb]"]
end

subgraph group_sequence["Sequence Architectures"]
  node_lstm["LSTM Studies<br/>[LSTM.ipynb]"]
  node_tokenizer["BPE Tokenizer"]
  node_emoji["Emoji Predictor"]
  node_wordemb["Word Embeddings<br/>[word_emb.ipynb]"]
end

subgraph group_translation["Translation Runtime"]
  node_seq2seq["Seq2Seq Studies"]
  node_attention["Attention Studies"]
  node_translator_training["Translator Capstone"]
  node_runtime["Translation Runtime<br/>[engine.py]"]
  node_transformer["Transformer Model<br/>[engine.py]"]
  node_attention_layers["Attention Blocks<br/>[engine.py]"]
  node_weights[("Trained Weights")]
end

node_learner(("Learner"))

node_learner -->|"studies"| node_micrograd
node_learner -->|"studies"| node_bigram
node_learner -->|"studies"| node_mlp
node_learner -->|"practices"| node_mnist
node_learner -->|"studies"| node_normalization
node_learner -->|"studies"| node_backprop
node_learner -->|"studies"| node_wavenet
node_learner -->|"studies"| node_lstm
node_learner -->|"studies"| node_tokenizer
node_learner -->|"builds"| node_emoji
node_learner -->|"studies"| node_wordemb
node_learner -->|"studies"| node_seq2seq
node_learner -->|"studies"| node_attention
node_learner -->|"trains"| node_translator_training
node_learner -->|"runs"| node_runtime
node_translator_training -->|"implements translation"| node_runtime
node_runtime -->|"invokes"| node_transformer
node_runtime -->|"loads"| node_weights
node_transformer -->|"uses"| node_attention_layers
node_runtime -.->|"encodes and decodes"| node_tokenizer

click node_micrograd "https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-1/micrograd_lec_1.ipynb"
click node_bigram "https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-1/makemore_lec_2.ipynb"
click node_mlp "https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-2/makemore_part3.ipynb"
click node_mnist "https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-2/MINST.ipynb"
click node_normalization "https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-2/folding.ipynb"
click node_backprop "https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-3/build_makemore_backprop_ninja.ipynb"
click node_wavenet "https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-3/wavenet.ipynb"
click node_lstm "https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-4/LSTM.ipynb"
click node_tokenizer "https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-4/tiktoken_implementation.ipynb"
click node_emoji "https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-4/Emoji_predictor.ipynb"
click node_wordemb "https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-4/word_emb.ipynb"
click node_seq2seq "https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/seq2seq/1%20-%20Sequence%20to%20Sequence%20Learning%20with%20Neural%20Networks.ipynb"
click node_attention "https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/seq2seq/6%20-%20Attention%20is%20All%20You%20Need.ipynb"
click node_translator_training "https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-5/English_to_French_translator.ipynb"
click node_runtime "https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-5/engine.py"
click node_transformer "https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-5/engine.py"
click node_attention_layers "https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-5/engine.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_micrograd,node_mnist,node_normalization,node_backprop toneBlue
class node_bigram,node_mlp,node_wavenet toneAmber
class node_lstm,node_tokenizer,node_emoji,node_wordemb toneMint
class node_seq2seq,node_attention,node_translator_training,node_runtime,node_transformer,node_attention_layers,node_weights toneRose
class node_learner toneIndigo
```

## Components

### Model Foundations

- [Micrograd Engine](https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-1/micrograd_lec_1.ipynb): `SOC/Week-1/micrograd_lec_1.ipynb`
- [MNIST Practice](https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-2/MINST.ipynb): `SOC/Week-2/MINST.ipynb`
- [Initialization & Folding](https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-2/folding.ipynb): `SOC/Week-2/folding.ipynb`
- [Manual Backprop](https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-3/build_makemore_backprop_ninja.ipynb): `SOC/Week-3/build_makemore_backprop_ninja.ipynb`

### Language Models

- [Bigram Model](https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-1/makemore_lec_2.ipynb): `SOC/Week-1/makemore_lec_2.ipynb`
- [Embedding MLP](https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-2/makemore_part3.ipynb): `SOC/Week-2/makemore_part3.ipynb`
- [WaveNet Model](https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-3/wavenet.ipynb): `SOC/Week-3/wavenet.ipynb`

### Sequence Architectures

- [LSTM Studies](https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-4/LSTM.ipynb): `SOC/Week-4/LSTM.ipynb`
- [BPE Tokenizer](https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-4/tiktoken_implementation.ipynb): `SOC/Week-4/tiktoken_implementation.ipynb`
- [Emoji Predictor](https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-4/Emoji_predictor.ipynb): `SOC/Week-4/Emoji_predictor.ipynb`
- [Word Embeddings](https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-4/word_emb.ipynb): `SOC/Week-4/word_emb.ipynb`

### Translation Runtime

- [Seq2Seq Studies](https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/seq2seq/1%20-%20Sequence%20to%20Sequence%20Learning%20with%20Neural%20Networks.ipynb): `SOC/seq2seq/1 - Sequence to Sequence Learning with Neural Networks.ipynb`
- [Attention Studies](https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/seq2seq/6%20-%20Attention%20is%20All%20You%20Need.ipynb): `SOC/seq2seq/6 - Attention is All You Need.ipynb`
- [Translator Capstone](https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-5/English_to_French_translator.ipynb): `SOC/Week-5/English_to_French_translator.ipynb`
- [Translation Runtime](https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-5/engine.py): `SOC/Week-5/engine.py`
- [Transformer Model](https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-5/engine.py): `SOC/Week-5/engine.py`
- [Attention Blocks](https://github.com/manohar-07-git/soc---translations-to-tokens/blob/main/SOC/Week-5/engine.py): `SOC/Week-5/engine.py`
- **Trained Weights**

### Other components

- **Learner**

## Connections

- Learner → Micrograd Engine: studies (evidence: `README.md`)
- Learner → Bigram Model: studies (evidence: `README.md`)
- Learner → Embedding MLP: studies (evidence: `README.md`)
- Learner → MNIST Practice: practices (evidence: `README.md`)
- Learner → Initialization & Folding: studies (evidence: `README.md`)
- Learner → Manual Backprop: studies (evidence: `README.md`)
- Learner → WaveNet Model: studies (evidence: `README.md`)
- Learner → LSTM Studies: studies (evidence: `README.md`)
- Learner → BPE Tokenizer: studies (evidence: `README.md`)
- Learner → Emoji Predictor: builds (evidence: `README.md`)
- Learner → Word Embeddings: studies (evidence: `README.md`)
- Learner → Seq2Seq Studies: studies (evidence: `README.md`)
- Learner → Attention Studies: studies (evidence: `README.md`)
- Learner → Translator Capstone: trains (evidence: `README.md`)
- Learner → Translation Runtime: runs (evidence: `SOC/Week-5/engine.py`)
- Translator Capstone → Translation Runtime: implements translation (evidence: `README.md`)
- Translation Runtime → Transformer Model: invokes (evidence: `SOC/Week-5/engine.py`)
- Translation Runtime → Trained Weights: loads (evidence: `SOC/Week-5/engine.py`)
- Transformer Model → Attention Blocks: uses (evidence: `SOC/Week-5/engine.py`)
- Translation Runtime → BPE Tokenizer: encodes and decodes
