Salesforce/wikitext
Viewer • Updated • 3.71M • 1.36M • 738
AtomSLM is a compact, shared-weight language model family built on the AtomNet architecture (Shared Weight Core + Per-Layer FiLM Modulation). One shared weight core is reused across all N layers, with tiny per-layer FiLM vectors providing the only per-layer state — deep reasoning at minimal parameter cost.
| Field | Value |
|---|---|
| Architecture | AtomNet (shared-core + FiLM) |
| Parameters | 1.094M |
| Vocab size | 4096 |
| d_model | 192 |
| Layers | 10 |
| FFN multiplier | 2.0 |
| Context window | 256 tokens |
| Weight tying | True |
| Best val loss | 3.1145 |
| Best PPL (val) | 22.52 |
| Trained steps | 5000 |
Trained on the following datasets with a custom BPE tokenizer (vocab size matching the config above):
roneneldan/TinyStorieswikitext-2-raw-v1wikitext-103-raw-v1hand-crafted-conversationsHuggingFaceTB/everyday-conversations-llama3.1-2k{
"data_dir": "data/processed",
"save_dir": "runs/AtomSLM-1.2M",
"config": "AtomSLM-1.2M",
"steps": 5000,
"eval_every": 100,
"save_every": 500,
"batch_size": 32,
"seq_len": 256,
"lr": 0.0005,
"lr_min": 5e-05,
"warmup": 1000,
"grad_clip": 1.0,
"dropout": 0.1,
"device": "auto",
"resume": null,
"compile": false,
"amp": false,
"core_warmup_steps": 0
}
import torch
from models.atomgpt import AtomSLM
ckpt = torch.load('pytorch_model.bin', map_location='cpu')
model = AtomSLM(ckpt['config'])
model.load_state_dict(ckpt['model_state'])
model.eval()
Apache 2.0