Alpa-Sense (अल्पार्थ) v0.5 — Unseen-Śloka Mastery (134.2M Alpa-Transfer-Base)
Alpa-Sense v0.5 scales the English decoder from Flan-T5-small (41.5M, 8 layers) to a vocab-pruned Flan-T5-base (134.18M, 12 layers, d_model=768, 128.80 MiB INT8 ONNX) paired with Alpa's 3×4 Pāṇinian Phoneme Looped Encoder (d_enc=512, 384-phoneme RoPE window) via a learned linear bridge (enc_to_dec). Trained in pure Sense-First order (<sandhi> → <phrase_sense> → <word>) on Zero-Loss dataset-v5-r2 (254,949 rows, 0 leakage), v0.5 sweeps 12 / 12 quantitative and blind-judge gates over v0.4 with zero regressions while running locally on CPU in ~1.14s / śloka.
What's New in v0.5 (onnx/v0.5/, recommended)
- 3.2× Decoder Capacity (
Flan-T5-base,134.18M,128.80 MiBINT8 ONNX): Asymmetric encoder-decoder (512-dim Pāṇinian phoneme looped encoder →768-dim 12-layer GEGLU Flan-T5-base decoder, 8,192 vocab-pruned SentencePiece + Atomic Pāṇinian CoT tokens). Verified bit-exact PyTorch ↔ ONNX parity (max logit diff 2.98e-06). - Teacher Upgrade (
DeepSeek-V4-Pro,5.5/6on Sanskrit Shootout): Following a 14-model open-weight Sanskrit teacher shootout, upgraded11,453unique śāstra, kāvya, and full-śloka rows (14,823matched via ID + exactsandhi_words,26,256total rows with2×emphasis on verified high-density śāstra/kāvya/śloka rows) replacing weaker legacy glosses. - Zero-Loss Dataset Assembly (
dataset-v5-r2,254,949rows,0leaks): Preserves 100% of all235,776dataset-v4-r2rows (including all39,909space-freedcs_sandhirows) plus7,740Pāṇinian Kāraka & enclitic drills (māacc."me"vs prohibitive"do not",naḥ/teenclitics, causatives, passives, gerundives, locative absolutes,nañprivatives, and elliptical śāstra definitions). - Refrain-Safe 5-Gram Anti-Repetition Guard + 3-Point SWA Cosine-Tail Soup: Replaced the windowed 2-token content-bigram ban (which could chop repeated multi-subword nouns like
righteous|ness) with a clean global 5-gram + local 8-token 3-gram + immediate duplicate content-token guard — preserving parallel Vedic refrains like 3-line Asato Mā Sadgamaya verbatim while blocking loops. Averaged 3 cosine-tail checkpoints (step 15k + 17.5k + 20k → soup.pt), adding+0.175stars overlast.pton blind judging.
- Live browser theatre & code:
77ethers/Alpa(https://alpa.blog/sense/) - Archives preserved:
onnx/v0.4/(40.26 MiB),onnx/v0.3/(40.22 MiB),onnx/v0.2/(40.22 MiB), andonnx/v0.1/(22.17 MiB).
Headline Evaluation (Exact Untouched Phase 4 Held-Out Splits, Blind Alpa-173 & Blind Alpa-Unseen-40)
| Gate / Benchmark | v0.2 (41.5M) |
v0.3 (41.5M) |
v0.4 (41.5M) |
v0.5 (134.2M soup.pt) |
Delta vs v0.4 |
|---|---|---|---|---|---|
Overall TEST chrF / Word F1 (2,500) |
— | — | 0.7125 / 0.6790 | 0.7198 / 0.6829 | +0.73 / +0.39 |
G4 Blind Alpa-173 LINE chrF / F1 (150 verses) |
0.4324 / 0.2975 | 0.4611 / 0.3381 | 0.4745 / 0.3459 | 0.4779 / 0.3472 (100%) |
+0.34 / +0.13 |
G6 Blind Alpa-173 JOINT chrF (150 verses / 144 multi-line) |
— | — | 0.4485 (99.42%) |
0.4488 (0.4531 multi-line, 99.42%) |
+0.03 |
G1 Unseen-Work DCS(13) chrF / Word F1 (672) |
0.5664 / 0.5156 | 0.5909 / 0.5355 | 0.5947 / 0.5389 | 0.5988 / 0.5401 | +0.41 / +0.12 |
G1 Unseen Śāstra(5 works) chrF / Morph Acc (316) |
— | — | 0.5934 / 91.35% | 0.5990 / 91.55% | +0.56 / +0.20% |
G1 Space-Free dcs_sandhi F1 / Exact (423) |
74.42% / 64.30% | 80.15% / 70.69% | 80.93% / 71.87% | 83.00% / 74.94% | +2.07% / +3.07% |
G1 Space-Free dcs_sandhi Lemma / Morph Acc |
— | — | 83.20% / 80.61% | 86.16% / 83.98% | +2.96% / +3.37% |
G2 Live Vidyut Round-Trip (test, 1,405) |
94.66% | 93.95% | 94.23% (1,324/1,405) |
95.09% (1,336/1,405) |
+0.86% |
G2 Live Vidyut Round-Trip (test_yaugika, 2,138) |
88.12% | 86.11% | 86.30% (1,845/2,138) |
88.96% (1,902/2,138) |
+2.66% |
G3 Unseen Yaugika chrF / F1 (2,138) |
0.8217 / — | 0.8207 / — | 0.8235 / 0.8122 | 0.8320 / 0.8226 | +0.85 / +1.04 |
Blind Alpa-Unseen-40 L / J chrF (40 stress verses) |
— | — | 0.5818 / 0.5733 | 0.6575 / 0.6314 | +7.57 / +5.81 |
Blind Judge Nemotron-3-Ultra-550B Primary / Line (/5) |
— | — | 2.025 / — | 2.325 / 2.400 (72.5% Pol, 35.0% Kāraka) |
+0.300 |
| INT8 ONNX Browser Bundle Size | 40.22 MiB | 40.22 MiB | 40.26 MiB | 128.80 MiB (~1.14s on 2 CPU threads) |
+88.54 MiB |
Known Limitations
- Dense technical śāstra aphorisms (Vyākaraṇa, Nyāya, Alaṅkāra kārikās such as Vaiyākaraṇabhūṣaṇasāra and Kāvyaprakāśa) remain challenging (
1.13–1.25 / 5under the strict 550B judge;fb-001improved1 → 2 / 5). - Rare prohibitive
māclauses inside dense multi-line verses can still occasionally drop negation in joint mode (tapping an individual line for line-by-line decoding helps).
Files (onnx/v0.5/)
encoder_int8.onnx(21.93 MiB): 3×4 looped Pāṇinian encoder (d_enc=512,max_src_len=384) +enc_to_decbridge + precomputed 12-layer decoder cross-attention K/V projections.decoder_step_int8.onnx(106.87 MiB): 12-layer KV-cachedFlan-T5-base(d_model=768, 12 heads) Sense-First decoder step (max_tgt_len=576).meta.json& rootconfig.json: Architecture config (max_src_len: 384,max_tgt_len: 576,sense_first: true,anvaya_first: false), special token IDs, and canonical 62-symbol frontend fingerprint.tokenizer.json: Vocab-pruned 8,192-token SentencePiece + Atomic Pāṇinian CoT lookup table (sense_first: true).
Provenance & Licenses
- Pretrained decoder weights:
google/flan-t5-base(Apache-2.0) - Morphology & live verification oracle: Vidyut by Ambuda (MIT)
- Classical Sanskrit gold parses: Digital Corpus of Sanskrit (DCS) by Oliver Hellwig (CC-BY-4.0)
- Epic human English reference hints:
pari-kulkarni/itihasa-sanskrit-en-filtered(Apache-2.0) - Lexical definitions: Cologne Digital Sanskrit Dictionaries / Monier-Williams (Public Domain)
- Offline śāstra/kāvya/śloka phrase upgrades & legacy distillation:
deepseek/deepseek-v4-pro(open-weight) &Qwen/Qwen3-235B-A22B-Instruct-2507(Apache-2.0)
- Downloads last month
- 1,341
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support