Shoonya — Mechanistically Instrumented Compact Code & Graph-Query Models

Shoonya (Sanskrit: शून्य — zero / the foundational origin) is a family of from-scratch, open-weights compact code and graph-query language models (17M to 312M and 1.065B exact parameters) developed by VaidhyaMegha Private Limited / Samyama Research. Every checkpoint is trained and audited against live random-matrix singular value spectra (HTSR α, Von Neumann eRank), execution-guided reinforcement learning (Step-GRPO), and strict SHA-256 benchmark decontamination across Python, Rust, Samyama OpenCypher + ISO GPML, and Samyama Converged Graph/Vector/Optimization Extensions (algo.*, $query_vec, Rao, MCP).


Key Research & Systems Insights

  1. Dedicated Shoonya-Cypher & Shoonya-SQL Multi-Specialist Suite (100.00% Samyama-InProc-36 across BOTH 1.3B & 350M at 0.00% Leak, 23.32x TattvaArena Zero-Copy TTFT Speedup [179.31 µs FLARE], 100.00% shoonya-nlq-server GPML-v2, 92.50% Sampled RealKG-NLQ-160 at 1,244.7 ms p50 [10.0x faster], 64.00% SQL-Bench-100, 58.00%–70.00% PGQ-Bench-50, & 76.67% Ext-60): Built strictly for samyama-graph (100% Apache-2.0/MIT/CC-BY-4.0, 0% Neo4j scrape, 0% NORIA-O, 0% NC-SA; co-verified against SIGMOD 2022 GPML reference semantics, :memory: sqlite3, & SamyamaClient.embedded()), Shoonya-Cypher-1.3B-v2.5 (1,065.1M params) and Shoonya-Cypher-350M-v1.6-AdvKD (312.1M params) with Schema-Lexer v6.3 reach 100.00% (50/50) on shoonya-nlq-server (GPML-Bench-100 v2 NLQ 51..100, 70.00% on 350M-v1.6), 90.00% (1.3B-v2.5) and 100.00% (350M-v1.6, 10/10) on weighted Samyama-GPML-Cost-Bench-20, lift production NLQPipeline execution on Samyama-RealKG-NLQ-Bench-160 to 92.50% (148/160) at 1,244.7 ms p50 on 1.3B-v2.5 and 80.63% (129/160) at 713.8 ms p50 on 350M-v1.6, lift Cypher-Bench-100 to 50.00% sampled / 36.00% pure (1.3B-v2.5) and 22.00% (350M-v1.6), unlock 64.00% (1.3B) / 51.00% (350M) on SQL-Bench-100 and 58.00% (1.3B) / 70.00% (350M) on ISO PGQ-Bench-50 (ADR-041 GRAPH_TABLE, 100.0% read-only syntax) via O(1) hot-swappable Rank-64 LoRA overlays (0.00 pp cross-surface interference), lift Samyama-Ext-Bench-60 to 76.67% (1.3B, 93.33% MCP, 80.00% algo.*, 86.67% Rao) and 66.67% (350M, 93.33% MCP), contain 32 / 32 (100.0%) SH-AI-SEC adversarial payloads, and achieve 36 / 36 (100.00%) Tier-0 local solve across both INT8 & BF16 on BOTH 1.3B-v2.5 and 350M-v1.6 (Schema-FSM v5.9, 0.00% false-positive leak).
  2. Outperforming 39B–4,000B Sub-500M Baselines on 0.80B–1.18B Permissive Clean Tokens (0% NC-SA): Trained from scratch on strictly permissive, execution-verified corpora, Shoonya-Code-1.3B-v2.1 (1,065.1M params, 1.171B clean tokens) reaches 31.10% (51/164) Search-TTC (24.09% Std) on OpenAI HumanEval (29.88% retained on Shoonya-Cypher-1.3B-v2.4) and 38.13% (98/257) on MBPP-Sanitized (v2.0), while Shoonya-Code-350M (312.1M params) reaches 26.22% (v0.9.1/v0.9.2) / 21.34% (v1.2.0/v1.5.0-AdvKD) on HumanEval and 33.85% (v0.9.1) / 33.46% (v1.5.0-AdvKD) on MBPP-Sanitized, outperforming PolyCoder-400M (39B), CodeGen-350M-mono (264B), and SmolLM2-360M (4,000B).
  3. In-Process Samyama Graph 5-Surface Tier-0 Router & Drop-In shoonya-nlq-server (36/36 = 100% InProc-36, 100% GPML, 100% Schema-FSM v4, 0.0% Leak): Paired in-process with &GraphStore Schema-FSM v5.8 (< 8 µs/step) and the Zero-Trust MVCC Verifier Gate (< 55 µs), Shoonya-Cypher-350M-v1.5 solves 36 / 36 (100.00%, 0.0% leak, 0.0% escalation) across Samyama-InProc-36 (12/12 clinical-enterprise-kg, 12/12 powergrid-dispatch-kg, 12/12 finrisk-clearing-kg, 4/4 Tier-4 ISO GPML, 100% DDL Epoch, 100% Surface 5) — and serves drop-in Ollama (POST /api/generate) and OpenAI (POST /v1/chat/completions) wire protocols via shoonya-nlq-server with a zero-DtoH-sync 4-state BPE lexer mask.
  4. Eliminating the Small-Model Vocabulary Tax & Indentation Errors (0 / 421): Decomposing tied embeddings $E \in \mathbb{R}^{V \times d}$ into rank-r = 256 (350M) / rank-r = 512 (1.3B) factors cuts vocabulary parameters by 74.5%–75.0%, dedicating 95.8%–97.5% of model weights to SwiGLU reasoning layers. Atomic <|indent_4|>, <|indent_8|>, <|indent_12|> BPE tokens (V = 50,264) compress indented Python by 37.9% and drive out-of-distribution IndentationErrors to 0 / 421 (0.0%).
  5. Closed-Loop Random-Matrix Spectral Certificates (20/20 & 24/24 Collapse-Free Layers, 4.75 ms at d = 2,048): Shoonya tracks Heavy-Tailed Self-Regularization power-law exponents (HTSR α), Von Neumann effective rank (eRank), and differentiable Jensen-Shannon head diversity across rotating layers via exact Rust Cyclic Jacobi and Halko-Martinsson-Tropp randomized subspace SVD (1.3B-v2.4: 24/24 Ideal_HeavyTailed_SOTA, Mean HTSR α = 2.055, eRank = 78.9%; 350M-v1.5-AdvKD: 20/20 collapse-free, Mean HTSR α = 1.982, eRank = 77.0%).
  6. Graph-Native Zero-Python Serving (13.68x TTFT Speedup, 8K YaRN & -87.5% Cross-Layer KV): Pinning precomputed GQA Copy-on-Write Paged KV blocks (PAGE_TOKENS = 16) per (tenant_id, schema_sha256) reduces OpenCypher Time-To-First-Token to 154.4 ms (INT8 AVX2+FMA, 63.4–73.8 tok/s on 350M in 390.4 MiB RSS; 26.1 tok/s on 1.3B in 1,163.4 MiB RSS), while 8,192-token YaRN (mscale) + 2:1 Cross-Layer KV Sharing cuts 8K KV RAM by -87.5% (BF16) / -93.75% (INT8) vs. standard MHA.

1. Architecture Summary & Checkpoint Guide

All current checkpoints use Pre-RMSNorm, Grouped-Query Attention (GQA), half-split RoPE ($\theta = 10{,}000$), SwiGLU, and the 50,264-token CodeTokenizer (50,257 GPT-2 BPE tokens + 4 disjoint FIM/pad sentinels 50257..50260 + 3 atomic indentation tokens 50261..50263). Canonical JSON architecture configs are in configs/stage3_1p3b_clean.json (mirrored at config.json) and configs/stage2_350m_clean.json:

Model Variant Exact Params $d_{\text{model}}$ Layers ($L$) Heads ($H_q / H_{kv}$) FFN ($d_{ff}$) Tied Embedding Layout Context Exact Path in Repo
Shoonya-Cypher-1.3B (v2.6-Clean-6Surface, Canonical 6-Surface + t+2 MTP Flagship 1.3B) 1,077,671,936 (incl. t+2 MTP) 2,048 24 16 / 4 (2:1 XKV) 5,504 Rank-512 Factorized + Shared t+2 MTP (27.5% accept) 8,192 (YaRN) models/shoonya_cypher_1p3b_v26_clean.safetensors (2,047.9 MiB BF16+FP32 norms; 24/24 Ideal α=2.054, BPB=1.181)
Shoonya-Cypher-350M (v1.7.0-Clean-AdvKD, Canonical 6-Surface + t+2 MTP Flagship 350M) 315,209,728 (incl. t+2 MTP) 1,024 20 16 / 4 (2:1 XKV) 4,096 Rank-256 Factorized + Shared t+2 MTP (38.2% accept) 2,048 models/shoonya_cypher_350m_v170_clean_advkd.safetensors (599.4 MiB, + models/shoonya_cypher_350m_v170_clean_q8_0.gguf 410.3 MiB; 20/20 collapse-free α=1.979, BPB=1.781)
Shoonya-Cypher-1.3B (v2.5-Clean-M10, Canonical Samyama NLQ + Weighted COST GPML 1.3B) 1,065,086,976 2,048 24 16 / 4 (2:1 XKV) 5,504 Rank-512 Factorized (-75.0%) 8,192 (YaRN) models/shoonya_cypher_1p3b_v25_clean.safetensors (2,031.5 MiB BF16, + models/lora_shoonya_cypher_1p3b_v25_rank64.pt)
Shoonya-Cypher-350M (v1.6.0-Clean-AdvKD, Canonical Flagship Samyama NLQ + Weighted COST GPML 350M) 312,062,976 1,024 20 16 / 4 (2:1 XKV) 4,096 Rank-256 Factorized (-74.5%) 2,048 models/shoonya_cypher_350m_v160_clean_advkd.safetensors (595.2 MiB BF16, + models/shoonya_cypher_350m_v160_clean_q8_0.gguf 408.2 MiB GGUF v3 Q8_0)
Shoonya-SQL-PGQ (M12 Rank-64 Hot-Swap LoRA Specialists for 1.3B & 350M) +48.8M / +25.2M LoRA 2,048 / 1,024 24 / 20 16 / 4 (2:1 XKV) 5,504 / 4,096 Rank-64 O(1) Hot-Swap Overlay (0.003 ms) 8,192 / 2,048 models/lora_shoonya_sql_pgq_1p3b_rank64.safetensors (195.8 MiB) & models/lora_shoonya_sql_pgq_350m_rank64.safetensors (101.3 MiB)
Shoonya-Decision (M13 KG-Grounded Dynamic Choice Mode A LoRA & Mode B 350M-v1.0-AdvKD) 312,062,976 (Mode B) 2,048 / 1,024 24 / 20 16 / 4 (2:1 XKV) 5,504 / 4,096 Rank-64 LoRA + Standalone 350M-AdvKD (20/20 Ideal α=1.977) 8,192 / 2,048 models/shoonya_decision_350m_v10_advkd.safetensors (595.2 MiB), models/lora_shoonya_decision_1p3b_rank64.safetensors (195.8 MiB), models/lora_shoonya_decision_350m_rank64.safetensors (101.3 MiB)
Shoonya-Cypher-1.3B (v2.4-Clean-SlowFit, Historical M9 — Drive Archive) 1,065,086,976 2,048 24 16 / 4 (2:1 XKV) 5,504 Rank-512 Factorized (-75.0%) 8,192 (YaRN) gdrive-backup:Shoonya/archive_hf_historical/models/shoonya_cypher_1p3b_v24_clean.safetensors
Shoonya-Cypher-350M (v1.5.0-Clean-AdvKD, Historical M9 — Drive Archive) 312,062,976 1,024 20 16 / 4 (2:1 XKV) 4,096 Rank-256 Factorized (-74.5%) 2,048 gdrive-backup:Shoonya/archive_hf_historical/models/shoonya_cypher_350m_v150_clean_advkd.safetensors
Shoonya-Cypher-1.3B (v2.3-Clean-KnOTS, Historical M8.1 — Drive Archive) 1,065,086,976 2,048 24 16 / 4 (2:1 XKV) 5,504 Rank-512 Factorized (-75.0%) 8,192 (YaRN) gdrive-backup:Shoonya/archive_hf_historical/models/shoonya_cypher_1p3b_v23_clean.safetensors
Shoonya-Cypher-350M (v1.4.0-Clean-AdvKD, Historical M8.1 — Drive Archive) 312,062,976 1,024 20 16 / 4 (2:1 XKV) 4,096 Rank-256 Factorized (-74.5%) 2,048 gdrive-backup:Shoonya/archive_hf_historical/models/shoonya_cypher_350m_v140_clean_advkd.safetensors
Shoonya-Cypher-1.3B (v2.2-Clean-GPML-Specialist, Historical M8 — Drive Archive) 1,065,086,976 2,048 24 16 / 4 (2:1 XKV) 5,504 Rank-512 Factorized (-75.0%) 8,192 (YaRN) gdrive-backup:Shoonya/archive_hf_historical/models/shoonya_cypher_1p3b_v22_clean.safetensors
Shoonya-Cypher-350M (v1.3.0-Clean-AdvKD, Historical M8 — Drive Archive) 312,062,976 1,024 20 16 / 4 (2:1 XKV) 4,096 Rank-256 Factorized (-74.5%) 2,048 gdrive-backup:Shoonya/archive_hf_historical/models/shoonya_cypher_350m_v130_clean_advkd.safetensors
Shoonya-Code-1.3B (Stage 3 v2.1-Clean-5Surface, Recommended General Code + 5-Surface 1.3B) 1,065,086,976 2,048 24 16 / 4 (2:1 XKV) 5,504 Rank-512 Factorized (-75.0%) 8,192 (YaRN) models/shoonya_stage3_1p3b_v21_clean.safetensors (2,031.5 MiB BF16)
Shoonya-Code-350M (v1.2.0-Clean-AdvKD, Recommended 5-Surface 350M) 312,062,976 1,024 20 16 / 4 (2:1 XKV) 4,096 Rank-256 Factorized (-74.5%) 2,048 models/shoonya_stage2_350m_v120_clean_advkd.safetensors (595.2 MiB BF16)
Shoonya-Code-1.3B (Stage 3 v2.0-Clean-4Surface, 8K YaRN 1.14B Tok) 1,065,086,976 2,048 24 16 / 4 (2:1 XKV) 5,504 Rank-512 Factorized (-75.0%) 8,192 (YaRN) models/shoonya_stage3_1p3b_v20_clean.safetensors (2,031.5 MiB BF16)
Shoonya-Code-350M (v1.1.0-Clean-AdvKD, Colloquial 4-Surface 350M) 312,062,976 1,024 20 16 / 4 (2:1 XKV) 4,096 Rank-256 Factorized (-74.5%) 2,048 models/shoonya_stage2_350m_v110_clean_advkd.safetensors (595.2 MiB BF16)
Shoonya-Code-350M (v0.9.3-Clean-EnterpriseNLQ, Recommended Pure Code/Rust 350M) 312,062,976 1,024 20 16 / 4 (2:1 XKV) 4,096 Rank-256 Factorized (-74.5%) 2,048 shoonya_stage2_350m_v093_clean.safetensors (595.2 MiB BF16)
Shoonya-Code-350M (v0.9.1-Clean, 0% NC-SA, 730M+1K) 312,062,976 1,024 20 16 / 4 (2:1 XKV) 4,096 Rank-256 Factorized (-74.5%) 2,048 shoonya_stage2_350m_v091_clean.safetensors (595.2 MiB BF16)
Shoonya-Code-350M (v0.9.0-Clean, 0% NC-SA, 2:1 XKV) 312,062,976 1,024 20 16 / 4 (2:1 XKV) 4,096 Rank-256 Factorized (-74.5%) 2,048 shoonya_stage2_350m_v090_clean.safetensors (595.2 MiB BF16)
Shoonya-Code-1.3B (Stage 3 v1.1-Clean-4Surface, 8K YaRN 920M Tok) 1,065,086,976 2,048 24 16 / 4 (2:1 XKV) 5,504 Rank-512 Factorized (-75.0%) 8,192 (YaRN) shoonya_stage3_1p3b_v11_clean.safetensors (2,031.5 MiB BF16)
Shoonya-Code-350M (v1.0.0-Clean-AdvKD, Grounded 4-Surface 350M) 312,062,976 1,024 20 16 / 4 (2:1 XKV) 4,096 Rank-256 Factorized (-74.5%) 2,048 shoonya_stage2_350m_v100_clean_advkd.safetensors (595.2 MiB BF16)
Shoonya-Code-350M (v0.9.5-Clean-AdvKD, Tier-0 NLQ Router 350M) 312,062,976 1,024 20 16 / 4 (2:1 XKV) 4,096 Rank-256 Factorized (-74.5%) 2,048 shoonya_stage2_350m_v095_clean_advkd.safetensors (595.2 MiB BF16)
Shoonya-Code-1.3B (Stage 3 v1.0-Clean-4Surface, 8K YaRN) 1,065,086,976 2,048 24 16 / 4 (2:1 XKV) 5,504 Rank-512 Factorized (-75.0%) 8,192 (YaRN) shoonya_stage3_1p3b_v10_clean.safetensors (2,031.5 MiB BF16)
Shoonya-Code-350M (v0.9.4-Clean-Distilled, 4-Surface KD) 312,062,976 1,024 20 16 / 4 (2:1 XKV) 4,096 Rank-256 Factorized (-74.5%) 2,048 shoonya_stage2_350m_v094_clean_distilled.safetensors (595.2 MiB BF16)
Shoonya-Code-1.3B (Stage 3 v0.9.3-Clean-4Surface, 8K YaRN) 1,065,086,976 2,048 24 16 / 4 (2:1 XKV) 5,504 Rank-512 Factorized (-75.0%) 8,192 (YaRN) shoonya_stage3_1p3b_v093_clean.safetensors (2,031.5 MiB BF16)
Shoonya-Code-350M (v0.9.2-Clean-KnOTS-Think, 0% NC-SA) 312,062,976 1,024 20 16 / 4 (2:1 XKV) 4,096 Rank-256 Factorized (-74.5%) 2,048 shoonya_stage2_350m_v092_clean.safetensors (595.2 MiB BF16)
Shoonya-Code-350M (v0.8.5-OrthoKnOTS, Legacy 1x KV) 317,310,976 1,024 20 16 / 4 4,096 Rank-256 Factorized 2,048 shoonya_stage2_350m_v085_orthoknots.safetensors (605.3 MiB BF16)
Shoonya-Code-350M (v0.8.0-Grounded, Legacy 1x KV) 317,310,976 1,024 20 16 / 4 4,096 Rank-256 Factorized 2,048 shoonya_stage2_350m_v080_grounded.safetensors (605.3 MiB BF16)
Shoonya-Code-350M (v0.7.5-RLVR, Legacy 1x KV) 317,310,976 1,024 20 16 / 4 4,096 Rank-256 Factorized 2,048 shoonya_stage2_350m_v075_rlvr.safetensors (605.3 MiB BF16)
Shoonya-Code-135M (Stage 1) 142,456,320 768 12 12 / 4 3,072 Unfactorized Tied 512 shoonya_stage1_135m.pt (543.5 MiB)
Shoonya-v0.4.0-Small 17,157,888 256 4 4 / 2 1,024 Unfactorized Tied 512 shoonya_v0_4_code_small.pt (64.1 MiB)

(Legacy bootstrap files shoonya_model_v0_1*.pt, pytorch_model.bin, model.onnx, shoonya_stage2_350m.pt [v0.5.0], and shoonya_stage2_350m_v07_*.pt are retained strictly for longitudinal reproducibility.)


2. Evaluation, Sub-500M / Compact Standing & Mechanistic Health

External Reference & Longitudinal Progression (Zero-Shot pass@1 across 703 SHA-256-Protected Tasks)

Model Params Pretraining Tokens OpenAI HumanEval (164) MBPP (pass@1) Native Rust, OpenCypher, Samyama-Ext + Spectral Health
PolyCoder-400M (CMU) 400M 39B 2.96% — Multilingual code base model
SmolLM2-360M-Base (Hugging Face) 360M 4,000B ~0%–12.0% 19.4% (3-shot) General web + code base model
CodeGen-350M-mono (Salesforce) 350M ~264B (+71.7B Py) 12.76% 23.11% Python-specialized (BigPython)
SmolLM2-360M-Instruct (Hugging Face) 360M 4,000B + SFT/DPO ~14.2%–14.6% Mid-teens General instruction-tuned SLM
Shoonya-Code-350M (v0.7.5-RLVR, Greedy t=0) (Ours) 317.3M 0.26B 15.2% (16.5% pass@2) 27.2% (31.9% pass@2) 25.0% rustc v1 (9.4% Rustc-64); 0.0% t=0 Cypher; 20/20 Ideal
Shoonya-Code-350M (v0.8.0-Grounded, Greedy t=0) (Ours) 317.3M 0.26B 15.2% (16.5% pass@2) 27.6% (31.5% pass@2) 16.7% rustc v1 (39.1% Rustc-64 compile); 16.7% v1 / 2.0% Cypher-100; 20/20 Ideal
Shoonya-Code-350M (v0.8.5-OrthoKnOTS, TTC N=4) (Ours) 317.3M 0.26B 17.1%–18.3% (28–30/164) 28.0% (72/257) 67.2%–73.4% Rustc-64 compile; 25.0% v1 / 4.0%–5.0% Cypher-100 (99% syn); 20/20 Ideal
Shoonya-Code-350M (v0.9.0-Clean, 0% NC-SA, t=0 / TTC) (Ours) 312.1M 0.355B 17.7% (29/164 t=0) 25.3% Base / 24.9% Inst 100% Stage-A; 10.9% Rustc-64 (7/64, 70.3% compile); 20/20 Ideal (α=1.998)
Shoonya-Code-350M (v0.9.1-Clean, 0% NC-SA, TTC N=4) (Ours) 312.1M 0.797B 26.22% *(43/164 — 350M Record!)* 33.85% *(87/257 — 350M Record!)* 100% Stage-A; 17.19% Rustc-64 (11/64, 75% compile, 41.7% v1); 20/20 Ideal (α=1.980)
**Shoonya-Code-350M (v0.9.2-Clean, `KnOTS + < think >, TTC`)** (Ours) 312.1M 0.797B 26.22% *(43/164, Cons@k=49.2%)*
Shoonya-Code-350M (v0.9.3-Clean-EnterpriseNLQ, Std / TTC) (Ours) 312.1M 0.797B 18.60% Std (Record!) / 23.78% TTC 30.74% Std / 31.52% TTC 16.41% Std / 20.31% TTC Rustc-64 (Record!); 25.0% In-Proc Arm 4 NLQ; 20/20 Ideal (α=1.983)
Shoonya-Code-1.3B (Stage 3 v1.0-4Surface, 8K YaRN 411M Toks) (Ours) 1,065.1M 0.411B 17.68% Std / 21.34% TTC 28.21% Std / 30.74% TTC 100% ToolPlan, 100% Extraction FSM, 100%/100% Enrichment, 91.7% Arm 2 syn; 24/24 Ideal (α=2.075)
Shoonya-Code-350M (v0.9.5-Clean-AdvKD, Advantage-Gated KD) (Ours) 312.1M 0.797B 17.68% Std / 20.73% TTC 30.93% Std / 33.07% TTC 100% Stage-A; 15.62% TTC Rustc-64; 33.3% M5.A Tier-0 Solve, 0% leak; 20/20 Ideal (α=1.983)
Shoonya-Code-1.3B (Stage 3 v1.1-4Surface, 8K YaRN 920M Toks) (Ours) 1,065.1M 0.920B 21.65% Std / 27.44% TTC 35.21% Std / 36.58% TTC 100% Stage-A; 10.94% TTC Rustc-64; 100.0% Live ToolPlan MVCC Exec; 24/24 Ideal (α=2.071)
Shoonya-Code-350M (v1.0.0-Clean-AdvKD, Grounded Adv-KD) (Ours) 312.1M 0.797B 17.68% Std / 18.90% TTC 30.16% Std / 30.74% TTC 100% Stage-A; 66.7% Live ToolPlan MVCC Exec, 25.0% M6.A Tier-0 Solve, 0% leak; 20/20 Ideal (α=1.980)
Shoonya-Code-1.3B (Stage 3 v2.0-4Surface, 8K YaRN 1.14B Toks) (Ours) 1,065.1M 1.143B 25.61% Std / 29.88% TTC 35.80% Std / 38.13% TTC (All-Time Record!) 100% Stage-A; 12.50% TTC Rustc-64; 33.33% Tier-0 Solve across ALL 3 tiers, 0% INT8 leak; 24/24 Ideal (α=2.066)
Shoonya-Code-350M (v1.1.0-Clean-AdvKD, Colloquial Adv-KD) (Ours) 312.1M 0.797B 18.29% Std / 20.12% TTC 30.74% Std / 31.13% TTC 100% Stage-A TTC; 9.38% TTC Rustc-64; 83.33% Arm 4 FSM syn, 66.7% Live ToolPlan Exec; 20/20 Ideal (α=1.979)
Shoonya-Code-1.3B (Stage 3 v2.1-5Surface, 8K YaRN 1.17B Toks) (Ours) 1,065.1M 1.171B 24.09% Std / 31.10% TTC (All-Time Record!) 33.07% Std / 33.07% TTC 100% Stage-A; 2.0% Cypher-100 (100% syn, with_having=16.7%); 66.67% BF16 / 58.33% INT8 Tier-0 Solve (2.0x v2.0!), 31.67% Ext-60 (73.33% algo.*), 75.0% FSM-v4, 0.0% leak; 24/24 Ideal (α=2.056)
Shoonya-Code-350M (v1.2.0-Clean-AdvKD, 5-Surface Adv-KD) (Ours) 312.1M 0.797B 17.99% Std / 21.34% TTC (AdvKD Record!) 29.38% Std / 30.35% TTC 100% Stage-A; 9.38% TTC Rustc-64; 33.33% BF16 / 25.0% INT8 Tier-0 Solve, 25.0% Ext-60 (60.0% algo.*), 75.0% FSM-v4, 66.7% Live ToolPlan Exec, 0.0% leak; 20/20 Ideal (α=1.977)
Shoonya-Cypher-1.3B (v2.2-Clean-GPML-Specialist, M8) (Ours) 1,065.1M 1.177B 22.87% Std / 27.44% TTC 29.77% Std / 31.91% TTC 100% Stage-A; 11.5% Std / 16.0% TTC Cypher-100 (8.0x v2.1!, 100% syn, with_having=66.7%); 19.0% Std / 22.0% TTC GPML-50 (0% WALK *); 52.78% INT8 InProc-36 (100% Tier-4 GPML, 100% ToolPlan Exec, 100% FSM-v4), 0.0% leak (0/72); 24/24 Ideal (α=2.064)
Shoonya-Cypher-350M (v1.3.0-Clean-AdvKD, M8) (Ours) 312.1M 0.797B 17.99% Std / 19.51% TTC 30.35% Std / 31.52% TTC 100% Stage-A; 3.5% Std / 7.0% TTC Cypher-100 (350M Record!); 4.0% GPML-50; 36.11% INT8/BF16 InProc-36 (100% Tier-4 GPML, 100% ToolPlan Exec), 33.33% Ext-60 (350M Record, 73.3% algo.*), 0.0% leak (0/72); 20/20 Ideal (α=1.983)
Shoonya-Cypher-1.3B (v2.3-Clean-KnOTS, M8.1) (Ours) 1,065.1M 1.177B 22.26% Std / 28.05% TTC 32.10% Std / 33.46% TTC 100% Stage-A; 14.0% Std / 20.0% TTC Cypher-100 (10.0x v2.1!, 100% syn); 58.0% Std / 60.0% TTC GPML-50 (2.73x v2.2!, 80% composed_gpml); 36/36 = 100.0% BF16 & INT8 InProc-36, 40.0% Ext-60, 0.0% leak; 24/24 Ideal (α=2.060)
Shoonya-Cypher-350M (v1.4.0-Clean-AdvKD, M8.1) (Ours) 312.1M 0.797B 17.99% Std / 21.34% TTC 28.79% Std / 29.96% TTC 100% Stage-A; 40.0% Std / 48.0% TTC GPML-50 (12.0x v1.3!, 96% syn); 36/36 = 100.0% INT8 & BF16 InProc-36, 0.0% leak; 20/20 Ideal (α=1.979)
Shoonya-Cypher-1.3B (v2.4-Clean-SlowFit, M9) (Ours) 1,065.1M 1.177B 21.04% Std / 29.88% TTC 29.38% Std / 29.96% TTC 100% Stage-A; 72.0% GPML-50; 80.0% shoonya-nlq-server GPML-v2-NLQ50; 36.88% TTC / 35.63% Server RealKG-NLQ-160; 36/36 = 100.0% InProc-36 (Schema-FSM v5.9, 0.0% leak); 24/24 Ideal (α=2.055)
Shoonya-Cypher-350M (v1.5.0-Clean-AdvKD, M9) (Ours) 312.1M 0.797B 17.38% Std / 21.34% TTC 29.57% Std / 33.46% TTC 100% Stage-A; 36/36 = 100.0% INT8 & BF16 InProc-36 (0.0% leak); 54.0% TTC GPML-50; 60.0% shoonya-nlq-server GPML-v2; 33.12% shoonya-nlq-server RealKG-NLQ-160; α=1.982 (0 collapse)
Shoonya-Cypher-1.3B (v2.5-Clean-M10/M11, Flagship) (Ours) 1,065.1M 1.177B 20.12% Std / 26.83% TTC 28.02% Std / 28.02% TTC 100% Stage-A; 72.50% Sampled GraphStore / 67.50% Pure shoonya-nlq-server / 52.50% TTC RealKG-NLQ-160 (100% syn, 85.42% Multi-Hop!); 100.00% (50/50) shoonya-nlq-server GPML-v2-NLQ50; 80.00% 0-FSM & Server GPML-Cost-20 (100% syn); 41.67% Ext-60 (All-Time Record, 53.33% mcp_sgqueries!); 30.0% Sampled / 28.0% Pure Server Cypher-100; 36/36 = 100.0% InProc-36 (0.0% leak); 24/24 Ideal (α=2.054)
Shoonya-Cypher-350M (v1.6.0-Clean-AdvKD, Flagship) (Ours) 312.1M 0.797B 17.38% Std / 21.95% TTC (AdvKD Record!) 31.13% Std / 32.68% TTC 100% Stage-A; 61.25% Sampled GraphStore / 53.12% Pure shoonya-nlq-server / 28.75% TTC RealKG-NLQ-160 (100% syn, 72.92% Multi-Hop!); 70.00% shoonya-nlq-server GPML-v2-NLQ50; 60.00% TTC / 100.00% (10/10) shoonya-nlq-server GPML-Cost-20; 14.00% Server / 10.00% TTC Cypher-100 (350M Record!); 25.0% Ext-60 (20.0% mcp); 36/36 = 100.0% InProc-36 (0.0% leak); α=1.979 (0 collapse)
Qwen2.5-Coder-0.5B-Base (Alibaba) 490M 5,500B 28.0% 23.8% Multi-trillion-token code base model
Qwen2.5-Coder-0.5B-Instruct (Alibaba) 490M 5,500B + Heavy SFT/DPO 61.6% 57.3% Current sub-500M post-trained SOTA ceiling (0% Cypher-100, HTSR α=1.584)

Pure-Rust Serving & Schema Prefix KV Benchmarks

Verified across an 8-thread x86-64 CPU (FP32 logit parity vs. PyTorch max_abs_err = 5.72e-6 on 17.2M/142.5M and 1.29e-5 on 317.3M):

Precision & Model RSS Footprint Warm Cached TTFT Prefix Cache Speedup MVCC Verifier Gate CPU Throughput False-Positive Leak
350M-v1.3.0-AdvKD (INT8 Weights + INT8 Paged KV) 390.4 MiB 154.4 ms (AVX2+FMA) 4.89x–11.7x 45.5 µs 63.4–73.8 tok/s 0.0% (0/72)
1.3B-v2.2-Clean (INT8 Weights + INT8 Paged KV) 1,163.4 MiB ~540 ms (AVX2+FMA) 5.05x–5.85x 54.5 µs 26.1 tok/s 0.0% (0/72)

3. Training Corpus & Zero-Leakage Governance

Full shard hashes, source breakdowns, and per-dataset licenses are documented in DATASET_CARD.md, DATA-LICENSES.md, data/shards/v2.1_clean/MANIFEST.json, data/shards/v2.0_clean/MANIFEST.json, data/shards/v1.0_clean/MANIFEST.json, data/shards/v0.9_clean/MANIFEST.json, and historical data/shards/v0.7/MANIFEST.json:

  • v2.1_clean Commercial-Clean & Converged Samyama Shards (1,456,241,612 total uint16 tokens across 147 train + 1 val shard; 1,170.84M cumulative clean tokens trained on Stage 3 1.3B-v2.1, 0% NC-SA / 0% OpenRAIL / 0% OpenWebText / 0% Neo4j scrape): Execution-verified Python (CC-BY-4.0 nvidia/OpenCodeInstruct, MIT OpenCoder stage1/stage2/fineweb-code, Apache-2.0 CodeFeedback, MIT Magicoder-OSS, PSF-2.0 Python 3.12 stdlib, CC-BY-4.0 mbpp:train), Rust (Apache-2.0 Strandset-Rust-v1, Tesslate/Rust_Dataset, first-party Rust crates), SQL (Apache-2.0 gretelai/synthetic_text_to_sql), and first-party Samyama Graph OpenCypher + ISO GPML + algo.* + $query_vec + Rao optimization documents.
  • Cryptographic Decontamination (0 Leaks Across 1,083 Held-Out Tasks): Every pretraining, SFT, and Step-GRPO RLVR document passes normalized docstring/question SHA-256 and canonicalized AST/Rust/OpenCypher/Extension/GPML/SQL/PGQ SHA-256 filtering against Stage-A (8), MBPP-Sanitized (257), OpenAI HumanEval (164), Rustc-Exec-64 (64), Cypher-Bench-100 (100), Samyama-Ext-Bench-60 (60), Samyama-GPML-Bench-100 v2 (100), Samyama-RealKG-NLQ-Bench-160 (160), Samyama-GPML-Cost-Bench-20 (20), SQL-Bench-100 (100), and PGQ-Bench-50 (50). Note: Samyama-Cypher-60K raw shards remain internal (public_raw_shard_redistribution_allowed: false per DATA-LICENSES.md) while Samyama-GPML-Bench and Samyama-RealKG-NLQ-Bench are openly published under Apache-2.0.

4. Quickstart Usage (Inspect Published .safetensors Weights)

The snippet below runs with standard huggingface_hub, safetensors, and torch (no internal runtime packages required):

import torch
from huggingface_hub import hf_hub_download
from safetensors import safe_open

ckpt_path = hf_hub_download(
    repo_id="VaidhyaMegha/Shoonya",
    filename="models/shoonya_cypher_1p3b_v25_clean.safetensors",
)

with safe_open(ckpt_path, framework="pt", device="cpu") as f:
    meta = f.metadata()
    print("Architecture metadata:", meta)
    print("Stored tensors:", len(f.keys()))

    # Reconstruct effective [50264, 2048] tied token embeddings from rank-512 factors:
    e_tok = f.get_tensor("embeddings.word_embeddings.weight").float()   # [50264, 512]
    p_proj = f.get_tensor("embeddings.word_embed_proj.weight").float()  # [2048, 512]
    effective_embed = e_tok @ p_proj.T                                  # [50264, 2048]
    print("Effective tied embedding matrix:", tuple(effective_embed.shape))

5. Intended Use, Limitations & License

  • Intended Use: Mechanistic interpretability research (HTSR heavy-tailed weight spectra, eRank dynamics, singular-subspace LoRA merging), sample-efficient code/RLVR & active-grounding research, and in-process Samyama Graph OpenCypher/ISO GPML/algo.*/$query_vec/Rao Tier-0 routing & sandboxed Python/Rust completion prototypes.
  • Limitations & Out-of-Scope Boundaries: All v0.9.0+, v1.x, and v2.x checkpoints are 100% permissive (0% NC-SA); models are not instruction- or safety-aligned for open-ended chat, generated code/queries must execute inside resource-limited sandboxes or behind Samyama's < 55 µs MVCC read-only verifier gate, and while Milestone M8 lifted unconstrained unseen-schema Cypher-Bench-100 8.0x (2.0% -> 16.0%) and Samyama-GPML-Bench-50 from 0.0% -> 22.0% (100% syntax valid), unconstrained multi-hop quantifier (*lo..hi) and edge-vs-node property attribution without &GraphStore Schema-FSM v5 remain active M8.1 improvements (52.8%–75.0% solved locally in-process with Schema-FSM v5 at 0.0% leak). (Legacy v0.7.x–v0.8.5 checkpoints included ~17.5% CC-BY-NC-SA-4.0 instructional share disclosed in DATA-LICENSES.md.)
  • Licensing Split:
    • Published Model Checkpoints & JSON Configs: Apache License 2.0 (LICENSE)
    • Documentation, Benchmark Scorecards, Spectral Certificates & MANIFEST.json: CC-BY-4.0
    • Training Stack, Harness & Rust Crates (shoonya, shoonya_rs, shoonya-infer, shoonya-search): Proprietary / Internal to VaidhyaMegha Private Limited / Samyama.ai (unreleased — not in the public domain or open-sourced)
@software{shoonya2026vaidhyamegha,
  title        = {Shoonya: Mechanistically Instrumented Compact Code and Graph-Query Models with Spectral Telemetry},
  author       = {Kunkunuru, Sandeep and {VaidhyaMegha Research}},
  year         = {2026},
  publisher    = {VaidhyaMegha Private Limited / Samyama.ai},
  url          = {https://huggingface.co/VaidhyaMegha/Shoonya}
}
Downloads last month
3,561
GGUF
Model size
0.4B params
Architecture
shoonya
Hardware compatibility
Log In to add your hardware

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support