Views
No views yet
| Property | Value |
|---|---|
| Architecture | GPT-2 Small (Pre-LayerNorm) |
| Parameters | ~124M |
| Layers | 12 |
| Attention Heads | 12 |
| Hidden Dimension | 768 |
| Max Sequence Length | 1024 |
| Vocabulary | GPT-2 BPE (50,257 tokens) |
1# Note: This model uses a custom architecture.
2# Load with the original training code for best results.
3import torch
4from model import GPT2
5from config import ModelConfig
6
7config = ModelConfig()
8model = GPT2(config)
9checkpoint = torch.load("pytorch_model.bin", map_location="cpu")
10model.load_state_dict(checkpoint)