Views
No views yet
| Metric | v10.2 (baseline) | v10 FSP |
|---|---|---|
| Val PPL | 25.08 | 10.24 |
| Training speed | ~2,000 tok/s | ~2,750 tok/s |
| Params | ~3.5M | 3.74M |
| Hardware | 4 vCPU | 4 vCPU |
| Time | 2h | 2h |
Embedding(4096, 256) + RoPE
└── Block ×4
├── RMSNorm → CausalSelfAttention(8 heads, d=256) → Residual
└── RMSNorm → SwiGLU(d_ff=512) → Residual
└── RMSNorm → lm_head (weight-tied)
└── FSP: Linear(256→256) → shared lm_head → sigmoid → BoW predictionOnce upon a time, there was a little girl named Sue. Sue was very sad because she could not find her toy. One day, she found a big box near her house.
A cat sat on the bed. The cat saw the cat and wanted to help. The cat jumped on the bench and began to walk in the sky. The cat started to feel better and tried...
The little girl was scared and she wanted to see what was inside. She thought about what she had been in the door.
1import torch
2from tokenizers import Tokenizer
3
4tokenizer = Tokenizer.from_file("tokenizer.json")
5checkpoint = torch.load("best.pt", map_location="cpu")
6
7# Build model (see train_v10_fsp.py for full architecture)
8# Generate with temperature=0.8, top_p=0.9| Hyperparameter | Value |
|---|---|
| d_model | 256 |
| d_ff | 512 |
| n_heads | 8 |
| n_layers | 4 |
| seq_len | 256 |
| vocab | 4,096 (BPE) |
| LR | 5e-4 → 1e-5 (cosine) |
| Warmup | 200 steps |
| Batch | 4 × 8 (accum) |
| FSP tau | 64 tokens |
| FSP alpha | 0.1 |
| Weight decay | 0.1 |
| Dropout | 0.1 |
1@misc{flashlm,
2 author = {Cheng Chang},
3 title = {FlashLM: CPU-Native Language Models},
4 year = {2026},
5 url = {https://github.com/changcheng967/FlashLM}
6}