HuggingFaceFW/fineweb-edu
Viewer • Updated • 3.5B • 519k • 1.62k
PlanckGPT is a ~540M-parameter language model trained from scratch on a single laptop GPU (RTX 5070 Mobile, 8GB), aiming to achieve the best quality over training time possible.
Code, training scripts and full details on Github: https://github.com/nguyenphuminh/planckgpt.
| Parameters | ~540M |
| Layers / heads / dim | 14 / 7 / 896 (FFN 3584) |
| Context length | 1024 tokens |
| Tokenizer | GPT-2 via tiktoken (50,257 vocab) |
| Pretraining data | ~2B tokens of FineWeb-Edu |
| Chat data | smol-smoltalk + ~1k identity examples |
| Training compute | ~28h pretraining + ~4h SFT on one RTX 5070 Mobile 8GB |
| Format | Raw PyTorch checkpoint (.pth), not transformers-compatible |
| Model | Eval set | Val loss | BPB |
|---|---|---|---|
| Base | FineWeb-Edu | 2.9711 | 0.9203 |
| Chat | smol-smoltalk | 1.1286 | 0.3556 |
The base model performs roughly on par with GPT-2 Medium.
First, clone the Github repo:
git clone https://github.com/nguyenphuminh/planckgpt
cd planckgpt
Next, set up the environment as described in the GitHub README.
Then, download planckgpt-chat.pth from this repo, or planckgpt.pth if you want the pretrained version, and place them in ./artifacts.
Finally, run:
# or python -m scripts.inference for the pretrained version
python -m scripts.sft_inference
User: ...\n\nAssistant: ...<|endoftext|>.@misc{planckgpt,
author = {Phu Minh Nguyen},
title = {PlanckGPT: Train a GPT from scratch on your laptop},
year = {2025},
publisher = {GitHub},
url = {https://github.com/nguyenphuminh/planckgpt}
}