Views
No views yet
| Parameter | Value |
|---|---|
| Layers | 6 |
| Embedding Dimension | 192 |
| Attention Heads | 6 |
| Context Length | 256 |
| Vocabulary Size | 77 |
| Total Parameters | 112,256 |
1# Load and generate
2from model import gpt, generate
3text = generate(prompt="Once upon a time", temperature=0.7)
4print(text)
5Limitations
6Small model size (educational purposes)
7Character-level tokenization (not BPE)
8Limited training data and compute
9Pure Python = slow inference
10License
11Apache 2.0
12
13Acknowledgments
14Based on Andrej Karpathy's educational implementations (micrograd, makemore, nanoGPT).