Loading…
Loading…
A ~30M-parameter GPT-2 style decoder pretrained from scratch (random init) on
HuggingFaceFW/fineweb-edu
(sample-10BT config, streaming) in a single ~38-minute run on one NVIDIA A10G
as a budget demo of the full pretraining pipeline.
| Metric | Value |
|---|---|
| final eval loss | 4.7510 |
| eval perplexity | ≈ 115.7 (exp of eval loss) |
| train loss (end) | ~4.9–5.0 |
The model is heavily undertrained (131M tokens for 30M params) — expect repetitive, low-coherence text. It demonstrates the pipeline, not quality.
from transformers import pipeline
pipe = pipeline("text-generation", "zhouaz/gpt2-30m-fineweb-edu")
print(pipe("The history of the Roman Empire begins", max_new_tokens=80, do_sample=True)[0])
Training script pattern follows transformers examples/pytorch/language-modeling/run_clm.py:
streaming dataset → online tokenization → block packing → Trainer with max_steps,
periodic push_to_hub (every 500 steps).