Views
No views yet
| Metric | Value |
|---|---|
| Val PPL | 9.30 |
| Parameters | 2.2M |
| Training speed | ~7K tok/s |
| Training time | 2 hours |
| Hardware | 4 vCPU (Lightning AI free tier) |
| Coherent? | No |
embed + CumStepPos → [RouteBlock × 6] → LayerNorm → tied output + FSP
RouteBlock:
x_n = LayerNorm(x)
slot_id = argmax(W_route(x_n)) # hard routing via STE
slot_state = read_write(slot_id, x_n)
x = x + W_out(slot_state)
x = x + ff_down(relu(ff_up(LayerNorm(x))))1import torch
2from tokenizers import Tokenizer
3
4tokenizer = Tokenizer.from_file("tokenizer.json")
5checkpoint = torch.load("best.pt", map_location="cpu")
6# Build model (see train_cpuflow_v8_discrete.py for full architecture)1@misc{Chang,
2 title = {FlashLM: CPU-Native Language Models Trained From Scratch on Free-Tier Hardware},
3 author = {Chang, Cheng},
4 year = {2026},
5 publisher = {Zenodo},
6 doi = {10.5281/zenodo.20113960}
7}