Downloads · 30 days
0
bushuyeu/gpt2-small-cc-filtered
gpt2-small-cc-filtered is a machine learning model from bushuyeu. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
A GPT-2 small model (124M parameters) trained on filtered Common Crawl data as part of ECE405 Assignment 2 (based on Stanford CS336 Assignment 4).
Downloads · 30 days
0
Access
Public
Updated Mar 5, 2026
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.pt1.3 GB · 100%
From the Hugging Face model README
A GPT-2 small model (124M parameters) trained on filtered Common Crawl data as part of ECE405 Assignment 2 (based on Stanford CS336 Assignment 4).
| Parameter | Value |
|---|---|
| Architecture | GPT-2 small (124M params) |
| Layers | 12 |
| Hidden dim | 768 |
| Attention heads | 12 |
| Context length | 512 |
| FFN dim | 2048 |
| Vocab size | 50,257 (GPT-2 BPE) |
| RoPE theta | 10,000 |
| Parameter | Value |
|---|---|
| Hardware | 2x NVIDIA RTX A4000 (16 GB each) |
| Precision | bfloat16 |
| Training steps | 12,000 |
| Effective batch size | 256 sequences/step |
| Tokens per step | 131,072 |
| Total tokens seen | ~1.57B |
| Training time | ~14 hours |
| Best val loss | 2.856 |
5,000 Common Crawl WET files (CC-MAIN-2026-08) filtered through:
Result: 5.75M documents, 8.7B tokens (17 GB tokenized with GPT-2 BPE)
| Step | Val Loss |
|---|---|
| 1,000 | 4.032 |
| 2,000 | 3.683 |
| 3,000 | 3.507 |
| 4,000 | 3.379 |
| 5,000 | 3.273 |
| 6,000 | 3.202 |
| 7,000 | 3.101 |
| 8,000 | 3.030 |
| 9,000 | 2.982 |
| 10,000 | 2.927 |
| 11,000 | 2.883 |
| 12,000 | 2.856 |
This model uses a custom architecture (cs336-basics BasicsTransformerLM) with RoPE embeddings and SwiGLU FFN. Load with:
import torch
import json
config = json.load(open("model_config.json"))
state_dict = torch.load("model.pt", map_location="cpu")