Views
No views yet
Authors: Bryan Leonard & Brandyn Leonard · Qira LLC · Provisional patent 64002166 Code: https://github.com/TheArtOfSound/LOLM
o_t = g · LN(W_h·h_t) + (1−g) · LN(W_z·z_t) + W_m·m_t + W_r·r_t| Stream | Role | Implementation |
|---|---|---|
| Surface decoder | local token relationships | pre-norm Transformer + RoPE |
| Latent SSM core | slow latent dynamics | selective SSM (Mamba-style) |
| Regime layer | discrete phase detection | Gumbel-Softmax + causal conv1d |
| Persistent memory | cross-sequence state | 3-bank gated read/write |
| Manifestation gate | surface↔latent arbitration | per-dimension sigmoid MLP |
| Metric | LOLM-304M | Pythia-410M | Δ |
|---|---|---|---|
| Parameters | 304M | 410M | −26% |
| WikiText-103 eval PPL | 68.37 | 142.93 | −52% |
| Late-position BPC | 1.02 | 1.23 | −17% |
| Distinct-2 (generation) | 0.687 | 0.607 | +13% |
transformers:1git clone https://github.com/TheArtOfSound/LOLM.git && cd LOLM
2pip install -r requirements.txt1import torch, tiktoken
2from lolm.config import load_config
3from lolm.model import LOLM
4
5cfg = load_config("configs/scale/300m_lolm_full_tpu.yaml")
6model = LOLM(cfg.model)
7ckpt = torch.load("ckpt_26000.pt", map_location="cpu")
8model.load_state_dict(ckpt["model"], strict=False)
9model.eval()out.gate_values,
out.regime_probs) — used by the NFET runtime governor in the
lolm-bridge workspace.LICENSE):
free for academic research, education, and personal/non-commercial use;
commercial license required for qualifying entities.1@article{leonard2026lolm,
2 title = {LOLM: Language Modeling Beyond the Surface with Hybrid
3 Transformer-SSM Latent Order Fields},
4 author = {Leonard, Bryan and Leonard, Brandyn},
5 year = {2026},
6 note = {Qira LLC. Provisional patent application No. 64002166.}
7}