Views
No views yet
| Property | Value |
|---|---|
| Parameters | 328,054 (1.3MB fp32) |
| Architecture | Transformer with causal self-attention (encoder-style blocks), d=128, 2 layers, 4 heads, FFN 256 |
| Tokenizer | Character-level (vocab from training corpus; <unk>=3, <pad>=0, <cls>=1, <sep>=2) |
| Context | 256 characters |
| Optimizer | AdamW (lr 5e-4, wd 0.1) |
| Training data | SRE Book ch.1-30, 20 epochs |
| Evaluation | 7.85 held-out chapters (vs bigram 12.09) |
An SLO is a service be Back in process gate a possible SLO With Triguration SRE Mattion it a passed spicies of Cach SLI2 is has SLOs a SREs in the fully because secondition Entible capacity time correnting or a consensus of the are disapply of the server...
1import torch, json
2from model import TinyLM # architecture definition (in this repo)
3
4vocab = json.load(open("vocab.json"))
5cfg = json.load(open("config.json"))
6model = TinyLM(vocab_size=len(vocab), d_model=cfg["d_model"], n_layers=cfg["n_layers"],
7 n_heads=cfg["n_heads"], ff=cfg["ff"], max_len=cfg["max_len"])
8model.load_state_dict(torch.load("model.safetensors", weights_only=True))
9model.eval()p.mul_(1 - lr*wd)), NS5 orthogonalization with update scale max(1, r/c)^0.5,
AdamW (lr 1e-3) for embeddings/head/1D params