CoolFace
Modelpublic

ashrafs1/nanogpt-3000

sourceHugging Facemitupdated 1mo agoView on Hugging Face
0likes96downloads
Model Card

nanoGPT-3000

A 124M-parameter GPT-2-class causal language model built from scratch in PyTorch and trained on FineWeb-10B.

This is a pretraining checkpoint (3,000 steps, ~1.57B tokens).

Quick Stats

Parameters~124M
Context2,048 tokens
Vocab50,304 (GPT-2 BPE, padded to 128)
Position encRoPE
NormRMSNorm + QK-Norm
ActivationSquared ReLU
AttentionFlashAttention-2 varlen (packed docs)
SkipsU-Net style
OptimizerMuon (2D weights) + AdamW (embeddings)
Batch size524,288 tokens/step
Hardware2× A100 40GB
Time~70 min
MFU70%
Throughput375K tok/s

WikiText-2

ModelTokensPPL
OpenAI GPT-2~40B25.2
nanoGPT-3000~1.57B40.50

How to Use

Repo (training code + inference): https://github.com/shehab-ashraf/nanogpt Blog (deep dive): https://shehab-ashraf.github.io/posts/nanogpt/ Logs (W&B): https://wandb.ai/ashrafshehab-/nanoGPT