-- WILL UPDATE --
- src/ contains reusable implementation
- scripts/ contains thin commands that call functionality from src/
- configs/ contains choices and hyperparameters, not Python code
- tests/ mirrors the structure of src/
- docs/decisions/ records why I selected an architectural choice
- data/, runs/ and checkpoints/ stay out of normal Git history
- B - batch size
- T - sequence length
- V - vocabulary size
- C - model width
- L - no. of transformer layers
- H - no. of query heads
- Hkv - no. of key/value heads
- Dh - head dimension
- F - feed-forward hidden dimension
- V = 16,384
- C = 512
- L = 12
- H = 8
- Hkv = 2
- Dh = 64
- F = 1,408
- T = 1,024 initially
- token IDs: [B, T]
- embeddings: [B, T, C]
- queries: [B, H, T, Dh]
- keys/values: [B, Hkv, T, Dh]
- attention: [B, H, T, T]
- hidden states: [B, T, C]
- logits: [B, T, V]
Day-1: wrote the config.py for my 350M model
Phase-1 - Building the Transformer