Matched GPT-2 FF14: An experimental language model with a unique architecture
2 min readupdated
This model is a GPT-2 variant with 76.6 million parameters, adapted for the SR2-NP-L8 architecture. Its standout feature is an unconventional shape: the feed-forward layers are expanded by 14 times relative to the model's base width, and the embeddings are untied. The model was trained on the OpenWebText dataset as part of research into how gradient noise and learning rate decay affect perplexity (a measure of model uncertainty in text).
Key features
- Parametric alignment: Exact match in parameter count and depth with the reference Semantic Simulation model.
- Unconventional architecture: Feed-forward layers increased to 5,376 elements with a hidden layer width of 384.
- Decay effect: Detailed study of how learning rate decay reduces gradient noise accumulated by the AdamW optimizer.
- Ready-to-use code: Includes a Google Colab notebook to reproduce the training process.
What you can do
- Explore LLM training: Run the provided Colab notebook to study the impact of WSD (warmup-stable-decay) schedule parameters.
- Analyze metrics: Use the model weights and training logs to test hypotheses regarding AdamW optimizer noise.
- Run inference: Load the
gpt2_baseline_best.ptweights to generate text for research purposes.
Example
Configuration settings for running model training in the Google Colab file:
D_FF = 5376
TIE_EMBEDDINGS = False
LR = 1.2e-3
LR_SCHEDULE = 'wsd'
Read more
DetailsArchitecture: GPT-2 (width 384, 8 blocks, FF 5376)
Training: 32,500 steps on 0.53 billion OpenWebText tokens
Final perplexity (PPL): 44.07
Hardware: Tested on NVIDIA A100 80GB (approx. 3.9 hours of training)










Comments