Views
No views yet
| Component | Role | Config |
|---|---|---|
| Sliding Window Attention | Local context (W=32 tokens) | 4 heads, d_head=64 |
| Gated Delta Memory | Global context via delta rule | d_mem=32, learnable decay |
| Lookahead Value Heads | Predict future loss for search-guided decoding | 1 per layer |
| SwiGLU FFN | Nonlinear mixing | d_ff=512 |
| RMSNorm | Layer normalization | Pre-norm |
| Weight Tying | Share embed/output weights | — |
| Metric | Value |
|---|---|
| Dataset | TinyStories V2-GPT4 |
| Training subset | First 10M tokens (~1.3 epochs) |
| Hardware | 2 vCPU / 5GB RAM (free-tier cloud) |
| Training time | 2 hours |
| Validation PPL | 2.50 (best) |
| Throughput | 1,861 tokens/sec |
| Steps | 1,636 |
| Total tokens seen | 13.4M |
| Batch size | 4 x 8 gradient accumulation |
| Peak LR | 5e-4 (cosine decay to 1e-5) |
| Warmup | 100 steps |
| Version | Architecture | Params | PPL | Highlight |
|---|---|---|---|---|
| v7.4 CORTEX-VIII | Gated DeltaNet + SWA | 6.6M | 2.33 | Best PPL |
| v8.1 SearchLM | CORTEX + lookahead value heads | 6.6M | 2.40 | V_Corr +0.66 |
| v8.2 CORTEX-VIII | + 20M subset + entropy reg | 6.6M | 2.42 | Broke repetition loops |
| v8.3 CORTEX-VIII | + 10M subset, D_FF=512 | 6.6M | 2.50 | Best generation diversity |
| v8.4 CORTEX-IX | + full context SWA + 2x memory | ~6.8M | TBD | In progress |
| File | Description |
|---|---|
best.pt | Best checkpoint (lowest validation loss) |
final.pt | Final checkpoint with full config and training results |
tokenizer.json | Byte-level BPE tokenizer (vocab=4,096) |
results.json | Training metrics summary |
1import torch
2from tokenizers import Tokenizer
3
4# Load tokenizer
5tokenizer = Tokenizer.from_file("tokenizer.json")
6
7# Load model checkpoint
8ckpt = torch.load("best.pt", map_location="cpu")
9print(f"Val PPL: {ckpt['val_ppl']:.2f}")
10
11# For full model architecture, see:
12# https://github.com/changcheng967/FlashLM/blob/main/v8/train_v83.pyPrompt: "Once upon a time"
Output: "Once upon a time . sun like . helped look this ! began bed to .
thought cake a and fish him Tom Mr Bunny fish . looked Ben place !
thinks book ..."1@misc{flashlm,
2 author = {Cheng Chang},
3 title = {FlashLM: CPU-Native Ternary Language Models},
4 year = {2026},
5 url = {https://github.com/changcheng967/FlashLM}
6}