Downloads · 30 days
0
azharmo/build-jev-from-scratch
build-jev-from-scratch is a text classification model from azharmo. Use it when you need a label for a piece of text. The card lists the license as mit.
⚠️ IMPORTANT — honest framing. This is a toy-scale reconstruction of the System One model interface that TypeSafe AI's Jev demonstrated (announced Sep 15, 2026). The real Jev's internals are proprietary and unpublishe…
Downloads · 30 days
0
Access
Public
Updated Sep 20, 2026
Repo size
12.9 MB
Likes
1
Public
Click a slice to open those files.
.pt12.8 MB · 98%
From the Hugging Face model README
⚠️ IMPORTANT — honest framing. This is a toy-scale reconstruction of the System One
model interface that TypeSafe AI's Jev demonstrated (announced Sep 15, 2026). The
real Jev's internals are proprietary and unpublished. This model is NOT Jev and does
not claim to be. The architecture, heads, losses, and calibration here are our own design
that reproduces Jev's proven interface (state + typed questions → calibrated parallel
probabilities). See ARTICLE.md for the full honest story with sources.
Given one state (text) and several typed questions, it answers them in parallel
(one encoder pass over the state), no text generation:
| Type | Dataset | Acc | Brier | ECE |
|---|---|---|---|---|
| noul | BoolQ + SST-2 | 59.7% | 0.236 | 0.027 |
| choice | AG News | 75.9% | 0.331 | — |
Training loss 1.55 → 1.00 (3 epochs). ~3.1M params. Low accuracy is expected (toy, tiny
data slice, CPU-only); the calibration (ECE ≈ 0.027) is the architecturally meaningful
result. Full details: RESULTS.md.
ARTICLE.md — the full "let's build a Jev from scratch" article (simple English)RESULTS.md — real training + eval transcriptREADME.md — setup + usagejev_toy/ — model, data, train, eval, serve source (PyTorch)checkpoints/model.pt — the trained checkpoint (cfg + state_dict + vocab)import torch
from jev_toy.model import SystemOneConfig, SystemOneModel
from huggingface_hub import hf_hub_download
import pickle
# load checkpoint
p = hf_hub_download("azharmo/build-jev-from-scratch", "checkpoints/model.pt")
ck = torch.load(p, map_location="cpu")
cfg = SystemOneConfig(**ck["config"])
model = SystemOneModel(cfg); model.load_state_dict(ck["state_dict"]); model.eval()
See jev_toy/serve.py for a full Jev-shaped serving example.
python -m jev_toy.train --epochs 3 --agnews 1500 --boolq 1500 --sst2 1500
python -m jev_toy.eval --ckpt checkpoints/model.pt
python -m jev_toy.serve --ckpt checkpoints/model.pt
Educational reconstruction. Not affiliated with TypeSafe AI or Cactus Compute.