The neural layer
Neural models for the
conversions maps cannot cover.
The 457 authority-backed maps cover romanization systems that a committee has published. Some conversions have no committee: restoring the haraqat a scribe left out, turning unwritten Thai into phonemes, reading Urdu aloud. Those are learned — and they ship under the same discipline as the maps: one artifact format, checksums verified on every load, byte-identical output from every runtime.
The catalogue
Every model, with its measured score.
The models.yaml registry resolves 42 models across six languages. No model is published without a measured metric next to its teacher's, on the same harness, in the open. Students are distilled from frozen teachers and gated at a pre-agreed error budget. Each entry resolves from the models.yaml index; artifacts above GitHub's 2 GiB cap ship as sha256-verified parts that the runtimes reassemble transparently. Every id is mirrored on the Hugging Face Interscript org — browse the Secryst phonological layer collection. The vocalization family — the released Hebrew plane, Urdu, and Persian models, plus the joint Hebrew + Urdu model — has its own page: the Interscript vocalization suite.
Server tier fp32, full quality
- diacritization
ara-diac-news-1.1Arab → Arab DER 2.84 · OOD WER 8.85 fp32 · 2.0 GiB - diacritization
ara-vocalized-1.0Arab → Arab DER 2.5793 · morph DER 1.5317 fp32 · 2.6 GiB · 2 parts - diacritization
ara-vocalized-2.0Arab → Arab DER 2.2864 · morph DER 1.3343 fp32 · 2.6 GiB · 2 parts - diacritization
ara-vocalized-layerdrop-1.0Arab → Arab DER (teacher) 2.2921 · der_student_fullset 5.784 fp32 · 968 MiB - diacritization
ara-vocalized-small-1.0Arab → Arab DER (teacher) 1.3205 · DER (teacher) 2.5815 fp32 · 1.3 GiB - diacritization
ara-vocalized-small-2.0Arab → Arab DER (teacher) 2.289 · der_student_fullset 5.0821 fp32 · 1.3 GiB - diacritization
ara-vocalized-small-2.1Arab → Arab DER (teacher) 2.289 · der_student_fullset 4.5701 fp32 · 1.3 GiB - g2p
fas-phonemic-1.0Arab → Latn CER 1.6 · sb_homograph_ezafe_norm 77.34 fp32 · 2.6 GiB · 2 parts - diacritization
heb-vocalized-1.0Hebr → Hebr der_greedy 29 · der_beam4 17.46 fp32 · 2.6 GiB · 2 parts - diacritization
heb-vocalized-1.1Hebr → Hebr der_greedy 16.44 · der_beam4 16.43 fp32 · 2.6 GiB · 2 parts - diacritization
heb-vocalized-small-1.0Hebr → Hebr DER (teacher) 24.79 · der_student_greedy 30.37 fp32 · 1.3 GiB - translit
khm-latn-1.0Khmr → Latn CER 27.42 · EM 59.66 fp32 · 1.3 GiB - g2p
khm-phonemic-1.0CER 24.5 · cer_legacy_split 24.16 fp32 · 1.0 GiB - g2p
tha-phonemic-1.0PER 19.29 fp32 · 1.0 GiB - g2p
tha-phonemic-base-1.0Thai → IPA per_teacher 1.25 · per_student 3.53 fp32 · 2.6 GiB · 2 parts - g2p
urd-ipa-1.0Arab → IPA CER 14.77 · EM 33.6 fp32 · 1.3 GiB - g2p
urd-ipa-base-1.0Arab → IPA CER 15.65 · cer_normalized 10.75 fp32 · 2.0 GiB · 2 parts - diacritization
urd-vocalized-1.0Arab → Arab CER 3.74 fp32 · 1.3 GiB
Client tier distilled or quantized, for the browser and the edge
- diacritization
ara-vocalized-2.0-int8Arab → Arab DER 2.2864 · morph DER 1.3343 int8 · 495 MiB - diacritization
ara-vocalized-layerdrop-1.0-int4Arab → Arab DER (teacher) 2.2921 · der_student_fullset 5.784 int4 · 138 MiB - diacritization
ara-vocalized-layerdrop-1.0-int8Arab → Arab DER (teacher) 2.2921 · der_student_fullset 5.784 int8 · 183 MiB - diacritization
ara-vocalized-news-1.0Arab → Arab DER 5.4814 · OOD WER 4.0976 int8 · 381 MiB - diacritization
ara-vocalized-plane-1.0Arab → Arab DER 3.5905 · morph DER 2.2149 int8 · 209 MiB - diacritization
ara-vocalized-plane-large-1.0Arab → Arab DER 2.7397 · morph DER 1.6717 int8 · 826 MiB - diacritization
ara-vocalized-small-1.0-int8Arab → Arab DER (teacher) 1.3205 · DER (teacher) 2.5815 int8 · 245 MiB - diacritization
ara-vocalized-small-2.0-int8Arab → Arab DER (teacher) 2.289 · der_student_fullset 4.8218 int8 · 252 MiB - diacritization
ara-vocalized-small-2.1-fp16Arab → Arab DER (teacher) 2.289 · der_student_fullset 4.5701 fp16 · 674 MiB - diacritization
ara-vocalized-small-2.1-int8Arab → Arab DER (teacher) 2.289 · der_student_fullset 4.5701 int8 · 256 MiB - diacritization
ara-vocalized-small-int8static-2.1Arab → Arab DER (teacher) 2.289 · der_student_fullset 4.5701 int8 · 491 MiB - diacritization
fas-vocalized-base-1.0Arab → Arab clean-docs CER 0.6527 · historical-docs CER 0.603 int8 · 1.6 GiB - diacritization
heb-vocalized-int8static-1.1Hebr → Hebr der_greedy 16.44 · der_beam4 16.43 int8 · 977 MiB - diacritization
heb-vocalized-plane-1.0Hebr → Hebr DER 12.48 int8 · 209 MiB - diacritization
heb-vocalized-plane-2.0Hebr → Hebr DER 8.18 int8 · 397 MiB - diacritization
heb-vocalized-plane-3.0Hebr → Hebr DER 6.6078 · der_crown_baseline 8.18 int8 · 397 MiB - diacritization
multi-vocalized-base-1.0Hebr → Hebr ur CER (fraction) 0.03604 · he DER 5.3075 int8 · 1.6 GiB - diacritization
multi-vocalized-base-1.0-urArab → Arab ur CER (fraction) 0.03604 · he DER 5.3075 int8 · 1.6 GiB - g2p
tha-phonemic-small-1.0Thai → IPA per_teacher 4.43 · per_student_beam4 12.06 int8 · 246 MiB - g2p
tha-phonemic-small-1.0-int4Thai → IPA per_teacher 4.43 · per_student_beam4 12.06 int4 · 193 MiB - diacritization
urd-vocalized-2.0Arab → Arab CER 3.641 int8 · 249 MiB - diacritization
urd-vocalized-2.1Arab → Arab CER 3.632 int8 · 249 MiB - diacritization
urd-vocalized-base-1.0Arab → Arab CER 3.57 fp16 · 1.3 GiB - diacritization
urd-vocalized-int8static-1.0Arab → Arab CER 3.74 int8 · 486 MiB
“Releasing” = passing its parity gate now, entering the release pipeline. Distillation budgets and per-model provenance: interscript-ml/docs/RESULTS.md.
Frontier context, same instrument (SadeedDiac-25, the same 1,200 paragraphs under the same windowed evaluator): GLM-5.2 diacritizes Arabic at 2.51 DER with plain completion; the rest of the family does not — GLM-5.3-Flash at 8.57, GLM-5.3 at 9.98, glm-4.7-flash at 13.00 raw DER — and the loss is wrong vowels, not writing convention. Newer general-purpose models focus on other tasks and score worse here, so a small dedicated model remains the reliable way to do this work. Every row with its decode protocol and bootstrap CIs: rababa/docs/RESULTS.md.
Measurements
Our results against the frontier.
SadeedDiac-25 — all 1,200 paragraphs, Misraj's own evaluator, windowed zero-skip protocol, one instrument for every row. Our dedicated 580M teacher is the best non-vendor system measured on it, 3.2× better than the 1.5B model the benchmark was built around. And the frontier is moving the wrong way: every GLM successor to 5.2 is 3–5× worse, losing classical haraqat (wrong vowels on 10.05% of marked positions for 5.3-Flash, vs 5.2's 2.64% — which matches our 580M teacher's 2.62% to 0.02pp).
| System | Params | DER (CE) | DER (w/o CE) | Protocol note |
|---|---|---|---|---|
| Claude-3.7-Sonnet | — | 1.3941 | 0.7693 | vendor-published · protocol undisclosed · not reproduced by us |
| Ours · ara-diac-2.0 (r7) | 580M | 2.2864 | 1.3343 | best dedicated model measured |
| GLM-5.2 | — | 2.5060 | 1.5537 | our reproduction · raw |
| Gemini-Flash-2.0 | — | 3.1926 | 2.3783 | same protocol |
| GPT-4 | — | 3.8645 | 3.8645 | same protocol |
| Sadeed | 1.5B | 7.2915 | 5.2625 | prior dedicated state of the art |
| GLM-5.3-Flash | — | 8.7978 | 6.6368 | zero-skip · reasoning_effort=low |
| GLM-5.3 | — | 9.8971 | 7.8219 | zero-skip · reasoning_effort=low |
| glm-4.7-flash | — | 13.2256 | 10.3206 | zero-skip · thinking-disabled |
WER columns, decode protocols, and paired bootstrap CIs for every row live in rababa/docs/RESULTS.md. The GLM-5.3 family cannot disable thinking; low effort is its plainest protocol.
The client ladder 300M student, identical architecture and artifact size
- rung 1.0
AdamW · r6 labels · 3 ep8.26 the shipped baseline - + Muon
optimizer swap5.29 −2.96pp - + r7 labels
fresher teacher labels5.08 −0.18pp (corrected 2026-09-05) - + 6 epochs
ara-diac-small-2.14.57 −0.25pp · released
What didn't move it — every rung pre-registered, measured, and kept in the log: multi-token-prediction auxiliary 5.09 (+0.26pp as measured vs the then-published control — level with the corrected 5.08); classical-register swap at constant budget 5.81 (+0.98pp as measured; +0.72pp over the corrected control); register add at matched epochs 4.82 (statistically flat against news-only 4.57, intervals overlapping — it sits between the corrected control and the news-only rung); on-policy GKD 6.00 (+1.18pp as measured; +1.43pp over the rung it was meant to improve — the worst measured); depth-halved 5.78 (63% of the parameters — shipped anyway as the browser tier). At SFT convergence, supervision quality dominates. The ladder is closed. The control's originally published 4.8218 did not reproduce and was withdrawn on 2026-09-05; two independent re-measurements, one at the artifact level on the exact released bytes, agree on 5.08.
Hebrew, same discipline: 16.43% DER on Biblical Hebrew, where the modern-Hebrew state of the art degrades to 35.6% on the same test.
The instrument
How we measure.
Each of these rules exists because the naive version produced a wrong number that nearly shipped. Together they are why a number on this page means the same thing next month, on another machine.
- Full evaluation sets, only. Five measured instances where evaluating on a domain-neighborhood subset overstated student quality — worst case 3.2× (a claimed 0.72pp gap that was 2.28pp on the full set).
- The decode protocol is part of the number. Beam-4 with length normalization inflated a student's PER 4.2× over greedy on the same artifact (12.06 vs 2.85) — every published row names its decode.
- Identical numbers must mean identical data. Label provenance is content-hashed into every run record; a reproduced figure is only evidence of reproducibility when the input pipeline is versioned.
- CIs, not point estimates. Paired sentence-level bootstrap on every verdict, deterministic seed — deltas come with their intervals.
- Checksummed end to end. The index ships with a sha256 sidecar, every zip member is verified on load, and a margins gate watches what the CER gate cannot see — silent quantization flips (keeping the output head in fp32 cut them 36× at +0.4% size).
The contract
One artifact. Any runtime.
A model is a zip — the Interscript Model Format, IMF v1. Anything that can read a zip, hash a file, and run two ONNX sessions can serve it; no Interscript training code required. Every member is sha256-verified against metadata.yaml on load; tampering raises loudly. The tokenizer is raw UTF-8 bytes — no vocabulary to download, no sentencepiece to drift.
- Byte tokenizer — token id = byte + 3, trailing EOS
- Decoder emits KV-cache graphs for streaming decode
- opset 14, the floor set by the Ruby onnxruntime gem
- Optional int8 / fp16 zips, precision-aware parity gates
tha-g2p-small-1.0-int8.zip
├── metadata.yaml # id, metrics, parity, sha256 block
├── encoder.onnx
├── decoder.onnx
├── decoder-kv.onnx # streaming KV-cache decoder
└── README.md # model card The crystals
Three runtimes, same bytes out.
The neural layer is served by the runtimes themselves — the same cross-runtime contract as the map layer. Ruby, Python, and TypeScript resolve a model id against the index, fetch (or reuse the cache), verify every checksum, and decode locally — KV-cache streaming for the seq2seq family, mask-predict passes for the plane family. Golden sets pin the three implementations to each other; install lines and the three-line recipe are in Use the models below.
Point deployments at a mirror with INTERSCRIPT_ML_INDEX; pin the cache with INTERSCRIPT_ML_CACHE (the old SECRYST_* names still work as
aliases). Both are read at call time in all three runtimes.
Without installing anything: the same models answer the REST
endpoint POST https://api.interscript.org/v1/infer (open CORS, no key), and run in the
browser at the demo page. In a script with no build step, the map
layer loads from esm.sh — full recipe in the
package's docs/CDN.md.
Getting started
Use the models.
A model id resolves against the models.yaml index, downloads once, and is sha256-verified on every load — then it runs locally, no server involved. Three lines per runtime. The example restores the nikud a scribe left out; the input and output are a frozen conformance vector, and all three runtimes are gated to produce it byte-exactly.
# install — the neural layer ships inside the same package
npm install interscript # TypeScript / JavaScript
gem install interscript # Ruby (onnxruntime loads lazily)
pip install "interscript[ml]" # Python // TypeScript
import { imf, PlaneModel } from "interscript/ml"
const model = await PlaneModel.fromZip((await imf.resolve("heb-vocalized-plane-3.0")).bytes)
await model.transform("ואם הזה, כשר")
// → "וְאִם הִזָּה, כָּשֵׁר" # Ruby
require "interscript/ml"
model = Interscript::ML::PlaneModel.from_zip(
File.binread(Interscript::ML::IMF.resolve("heb-vocalized-plane-3.0")))
model.translate("ואם הזה, כשר")
# => "וְאִם הִזָּה, כָּשֵׁר" # Python
import interscript
interscript.transliterate("heb-vocalized-plane-3.0", "ואם הזה, כשר")
# → "וְאִם הִזָּה, כָּשֵׁר"
First use downloads the int8 artifact (about 416 MB for this model) and caches it —
point the cache at INTERSCRIPT_ML_CACHE (default ~/.cache/interscript-ml); every later load re-verifies the sha256, the cache is
never trusted blindly. Other model kinds share the same three steps: seq2seq ids load
through Interscript::ML::Translator.new(model_file:) in Ruby, Model.load(id) in Python, imf.IMFModel.load(id) in TypeScript.
The joint model one trained weight set, two languages, two index keys
multi-vocalized-base-1.0 is one ByT5-base trained on Hebrew niqqud and Urdu
haraqat gold together, with the language chosen by a prefix sentinel folded into the
exported encoder graph. The same weights ride the release as two folds under two index
keys — multi-vocalized-base-1.0 for Hebrew and multi-vocalized-base-1.0-ur for Urdu — and both are seq2seq ids, so they take
the seq2seq call shape above. Each example below is a frozen vector from the release's
conformance file (1,293 Hebrew windows + 600 Urdu rows).
// TypeScript — multi-vocalized-base-1.0 (he fold, one crown window)
import { imf } from "interscript/ml"
const model = await imf.IMFModel.load("multi-vocalized-base-1.0")
await model.translate("לעולם")
// → "\u05dc\u05b0\u05e2\u05d5\u05b9\u05dc\u05b8\u05dd" # Ruby — multi-vocalized-base-1.0 (he fold, one crown window)
require "interscript/ml"
model = Interscript::ML::Translator.new(
model_file: Interscript::ML::IMF.resolve("multi-vocalized-base-1.0"))
model.translate("לעולם")
# => "\u05dc\u05b0\u05e2\u05d5\u05b9\u05dc\u05b8\u05dd" # Python — multi-vocalized-base-1.0 (he fold, one crown window)
from interscript.ml import Model
model = Model.load("multi-vocalized-base-1.0")
model.translate("לעולם")
# → "\u05dc\u05b0\u05e2\u05d5\u05b9\u05dc\u05b8\u05dd" // TypeScript — multi-vocalized-base-1.0-ur (ur fold, WO37 whole row)
import { imf } from "interscript/ml"
const model = await imf.IMFModel.load("multi-vocalized-base-1.0-ur")
await model.translate("فاسد العقیدہ")
// → "\u0641\u0652\u0627\u0633\u0652\u062f\u0650 \u0627\u0644\u0652\u0639\u064f\u0642\u0652\u06cc\u062f\u0652\u06c1\u064e"
Two things the Hebrew example is not: it is not a whole row, and it is not a guess about
mark order. The Hebrew runtime conformance unit is the 230-byte crown window — the he fold
decodes word-boundary windows and stitches them back on the original separators — so the
unit a runtime is gated on is one window, and that is what is quoted here. The Urdu fold is
the other way round: WO37 whole-row greedy, one row in, one row out. The other two runtimes
take the -ur key the same way, changing nothing but the id. Both vectors are
machine-checked byte-exactly by the runtimes' conformance harnesses.
Version note: index-v19 is the index of record, and all three runtimes have
their index-v19 pin merged — interscript-ts#169, interscript-ruby#887, interscript-py#60. The pin is live in the published npm package (interscript 6.0.4) and
Ruby gem (interscript 3.8.4): both resolve multi-vocalized-base-1.0
and its -ur fold from index-v19 out of the box. The Python pin is on main only — PyPI's latest release (0.1.0) predates it — so Python users
install from git or point INTERSCRIPT_ML_INDEX at the index-v19 models-index.yaml URL; all three runtimes read the variable at call time. The
Rust runtime serves the map layer; neural inference ships in the TypeScript, Ruby, and
Python runtimes.
Provenance
Every number is measured.
Teachers are frozen before distillation and never LLM-generated — language-model teachers hallucinate diacritics. Every number in the ledger links to a protocol in the open results log. BSD-3-Clause, code and weights.
github.com/interscript/interscript-ml # contract + index
github.com/secryst # runtimes + training