Alpa-Sense (अल्पार्थ) v0.3 — Sense-First Literary Sanskrit & Pāṇinian Meaning Model
Alpa-Sense v0.3 (Sense-First Alpa-Transfer) keeps the exact same 41.50M-parameter (40.22 MiB INT8 ONNX) single-thread phone-CPU footprint as v0.2 while delivering a major leap in natural literary English, space-free sandhi/compound splitting, and zero-truncation decoding on long stotra and epic verses.
What's New in v0.3 (onnx/v0.3/, recommended)
- Sense-First Atomic CoT (
<sandhi>→<phrase_sense>→<word>): Streams the plain English translation immediately after the sandhi split (~0.25 s on device) before the word-by-word Pāṇinian anatomy — eliminating mid-verse truncation (100.0%completion across all 370 blind Alpa-173 half-verses) and preventing noisy word-level dictionary dumps from degrading English fluency. - 5,798-Entry Classical Lexicon Audit & Compact Compound Glosses: Eliminates obscure secondary Monier-Williams homonym overwrites (
pARimarket → hand,waNkaborax → axe, chisel,kAyagod Ka → body,deva→ god, deity,suKarunning swiftly → happiness, joy) and caps compound member glosses to single primary terms. - 2.2× Literary & Epic Training Scale (
184,169train rows,110,273with<phrase_sense>, 0 leakage): Adds60,237strictly train-work-only literary rows spanning19,858Rāmāyaṇa + Mahābhārata gold DCS parses grounded in Apache-2.0 Itihāsa human reference translations,19,678Purāṇa / Stotra / Kāvya / Upaniṣad / Darśana lines,15,236hard space-free sandhi & multi-member compound chains, and5,465contrastivete/me/mA/negation/vocative drills. - Warm-Started Looped Encoder + SWA Cosine-Tail Soup: Warm-started the
3×4Pāṇinian Looped Encoder (7.89M) from v0.2, paired with a fresh RMS-reparameterizedgoogle/flan-t5-smallEnglish decoder (33.61M), trained34,000steps (batch_tokens=16,384,2.5×strictly masked<phrase_sense>weighting), and averaged (0.35 × step27k + 0.65 × step34k).
- Live browser theatre & code:
77ethers/Alpa(https://alpa.blog/sense/) - Archives preserved:
onnx/v0.2/(40.22 MiBv0.2 Alpa-Transfer) andonnx/v0.1/(22.17 MiBv0.1 scratchtarget_m_loop).
Headline Evaluation (Identical Untouched Phase 4 Held-Out Splits & Blind Alpa-173)
| Gate / Benchmark | v0.1 (19.7M) |
v0.2 (41.5M) |
v0.3 (41.5M, Sense-First) |
Delta vs v0.2 |
|---|---|---|---|---|
G4 Blind Alpa-173 vs PD Trans chrF / Word F1 (150 verses) |
0.4262 / 0.2855 | 0.4324 / 0.2975 | 0.4611 / 0.3381 | +2.87 / +4.06 |
G4 Blind Alpa-173 <phrase_sense> Completion (370 lines) |
82.2% | 91.62% | 100.00% (370/370) |
+8.38% (zero truncation) |
G1 Unseen-Work DCS English chrF / Word F1 (672, 13 works) |
0.5242 / 0.4663 | 0.5664 / 0.5156 | 0.5909 / 0.5355 | +2.45 / +1.99 |
| G1 Unseen-Work DCS Sandhi F1 / Lemma / Morph Tag Acc | 92.18% / 82.62% / 84.76% | 92.13% / 83.71% / 84.87% | 93.63% / 87.60% / 87.49% | +1.50% / +3.89% / +2.62% |
G1 Space-Free dcs_sandhi Sandhi F1 / Exact (greedy, 423) |
74.79% / 64.54% | 74.42% / 64.30% | 80.15% / 70.69% | +5.73% / +6.39% |
G2 Live Vidyut Round-Trip Proof (test, 1,405) |
94.88% | 94.66% | 93.95% (1,320/1,405) |
≥ 92% PASS |
G2 Live Vidyut Round-Trip Proof (test_yaugika, 2,138) |
87.28% | 88.12% | 86.11% (1,841/2,138) |
≥ 85% PASS |
G3 Unseen Yaugika chrF / Word F1 (2,138) |
0.8238 / 0.8132 | 0.8217 / 0.8105 | 0.8207 / 0.8094 | ≥ 80% PASS |
| INT8 ONNX Browser Bundle Size | 22.17 MiB | 40.22 MiB | 40.22 MiB (1t phone CPU) |
0 bytes added |
Files (onnx/v0.3/)
encoder_int8.onnx(11.01 MiB): 3×4 looped Pāṇinian encoder + precomputed decoder cross-attention K/V projections.decoder_step_int8.onnx(29.22 MiB): 8-layer KV-cached Flan-T5-small Sense-First decoder step.meta.json: Architecture config,sense_first: true, special token IDs (word_tag_id,phrase_sense_id), 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-small(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 lexicon auditing & literary phrase distillation:
Qwen/Qwen3-235B-A22B-Instruct-2507(Apache-2.0)
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support