Salesforce/wikitext
Viewer • Updated • 3.71M • 1.5M • 760
A 72-bit triadic projection head trained on top of frozen GPT-2 Medium (345M params).
This model adds a triadic head to GPT-2 Medium that projects language model embeddings into 72-bit binary codes representing ontological primitives from the Emergent Duality framework.
Each bit corresponds to one of 72 semantic primitives organized in 6 algebraic layers (Boolean, Fuzzy, Ordinal, Modal, Trivalent, Probabilistic). The head learns to map continuous embeddings to discrete binary codes that preserve ontological structure.
| File | Description |
|---|---|
best.pt |
Final trained weights (best checkpoint at 250K steps) |
step_30000.pt |
Base checkpoint before phase transition (for X-ray reproducibility) |
run_config.json |
Full training configuration |
gold_extended_v7.json |
Gold standard: 72 primitives + extended concept targets |
step_30000.pt is the base checkpoint used for the telescopic X-ray analysis that
revealed the cascade phase transition. To reproduce:
step_30000.pt with save-every-5-stepsSee train_v8_xray.bat for exact commands.
import torch
from huggingface_hub import hf_hub_download
# Download checkpoint
ckpt_path = hf_hub_download("arturoornelasb/triadic-gpt2-medium-v8", "best.pt")
checkpoint = torch.load(ckpt_path, map_location="cpu")
# Or use with triadic_extractor (pip install reptimeline)
from triadic_extractor import TriadicExtractor
extractor = TriadicExtractor(n_bits=72)
snap = extractor.extract(ckpt_path, concepts, device='cuda')
@misc{ornelas2026triadic,
author = {Ornelas Brand, J. Arturo},
title = {Triadic Duality: Ontological Primitives as Emergent Algebraic Structure in Neural Representations},
year = {2026},
doi = {10.5281/zenodo.19375167},
publisher = {Zenodo},
}
Base model
openai-community/gpt2-medium