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
- Dedicated
Shoonya-CypherOpenCypher + ISO/IEC 39075 GPML Specialists (8.0xUnconstrainedCypher-Bench-100,22.0%Samyama-GPML-Bench-50,100%In-Process GPML at0.0%Leak): Built strictly forsamyama-graph(0%Neo4j scrape, co-verified against SIGMOD 2022 GPML reference semantics &SamyamaClient.embedded()),Shoonya-Cypher-1.3B-v2.2(1,065.1Mparams) lifts unconstrainedCypher-Bench-1008.0x(2.0% -> 16.00%Search-TTC /11.50%Std,100%valid syntax,with_having = 66.67%) and unconstrained witness-separatedSamyama-GPML-Bench-50from0.00% -> 22.00%(19.0%Std,0%ill-formed unboundedWALK *), whileShoonya-Cypher-350M-v1.3-AdvKD(312.1Mparams) sets all-time350Mrecords onCypher-Bench-100(7.00%Search-TTC) andSamyama-Ext-Bench-60(33.33%,73.33%algo.*). - Outperforming
39B–4,000BSub-500M Baselines on0.80B–1.18BPermissive Clean Tokens (0% NC-SA): Trained from scratch on strictly permissive, execution-verified corpora,Shoonya-Code-1.3B-v2.1(1,065.1Mparams,1.171Bclean tokens) reaches31.10%(51/164)Search-TTC(24.09%Std) onOpenAI HumanEval(surpassingQwen2.5-Coder-0.5B-Base28.0%) and38.13%(98/257) onMBPP-Sanitized(v2.0), whileShoonya-Code-350M(312.1Mparams) reaches26.22%(v0.9.1/v0.9.2) /21.34%(v1.2.0-AdvKD) onHumanEvaland33.85%onMBPP-Sanitized, outperformingPolyCoder-400M(39B),CodeGen-350M-mono(264B), andSmolLM2-360M(4,000B). - In-Process
Samyama Graph5-Surface Tier-0 Router (100%GPML,100%ToolPlanExec,100%Schema-FSM v4,0.0%Hallucination Leak): Paired in-process with&GraphStoreSchema-FSM v5(< 10 µs/step) and the Zero-Count + Reverse Question$\to$Literal MVCC Verifier Gate (< 55 µs),Shoonya-Cypher-1.3B-v2.2solves52.78%(19/36INT8) /50.00%(BF16) across the 3-domainSamyama-InProc-36benchmark (100.0%4/4ISO GPML path modes,66.7%powergrid-dispatch-kg,100.0%liveToolPlanMVCC exec,100.0%Schema-FSM v4) — complementing1.3B-v2.1(75.0%BF16onclinical-enterprise-kg) — at0.0%(0/144) false-positive leak across bothBF16andINT8. - 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 by74.5%–75.0%, dedicating95.8%–97.5%of model weights toSwiGLUreasoning layers. Atomic<|indent_4|>,<|indent_8|>,<|indent_12|>BPE tokens (V = 50,264) compress indented Python by37.9%and drive out-of-distributionIndentationErrors to0 / 421(0.0%). - Closed-Loop Random-Matrix Spectral Certificates (
20/20&24/24Collapse-Free Layers,4.75 msatd = 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.2:24/24 Ideal_HeavyTailed_SOTA,Mean HTSR α = 2.064,eRank = 78.9%;350M-v1.3-AdvKD:20/20 Ideal_HeavyTailed_SOTA,Mean HTSR α = 1.983,eRank = 76.9%). - Graph-Native Zero-Python Serving (
13.68xTTFTSpeedup,8KYaRN&-87.5%Cross-Layer KV): Pinning precomputedGQACopy-on-Write Paged KV blocks (PAGE_TOKENS = 16) per(tenant_id, schema_sha256)reducesOpenCypherTime-To-First-Token to154.4 ms(INT8AVX2+FMA,63.4–73.8 tok/son350Min390.4 MiBRSS;26.1 tok/son1.3Bin1,163.4 MiBRSS), while8,192-tokenYaRN(mscale) +2:1Cross-Layer KV Sharing cuts8KKV RAM by-87.5%(BF16) /-93.75%(INT8) vs. standardMHA.
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.2-Clean-GPML-Specialist, Recommended Samyama OpenCypher + ISO 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_v22_clean.safetensors (2,031.5 MiB BF16, + models/lora_shoonya_cypher_1p3b_v22_rank64.pt) |
Shoonya-Cypher-350M (v1.3.0-Clean-AdvKD, Recommended Samyama OpenCypher + ISO 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_v130_clean_advkd.safetensors (595.2 MiB BF16) |
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) |
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_cleanCommercial-Clean & Converged Samyama Shards (1,456,241,612totaluint16tokens across147train +1val shard;1,170.84Mcumulative clean tokens trained onStage 3 1.3B-v2.1,0% NC-SA/0% OpenRAIL/0% OpenWebText/0% Neo4j scrape): Execution-verified Python (CC-BY-4.0nvidia/OpenCodeInstruct,MITOpenCoderstage1/stage2/fineweb-code,Apache-2.0CodeFeedback,MITMagicoder-OSS,PSF-2.0Python3.12stdlib,CC-BY-4.0mbpp:train), Rust (Apache-2.0Strandset-Rust-v1,Tesslate/Rust_Dataset, first-party Rust crates), SQL (Apache-2.0gretelai/synthetic_text_to_sql), and first-partySamyama GraphOpenCypher+ ISOGPML+algo.*+$query_vec+Raooptimization documents.- Cryptographic Decontamination (
0Leaks Across703Held-Out Tasks): Every pretraining, SFT, andStep-GRPORLVR document passes normalized docstring/question SHA-256 and canonicalized AST/Rust/OpenCypher/Extension/GPML SHA-256 filtering againstStage-A(8),MBPP-Sanitized(257),OpenAI HumanEval(164),Rustc-Exec-64(64),Cypher-Bench-100(100),Samyama-Ext-Bench-60(60), andSamyama-GPML-Bench-50(50). Note:Samyama-Cypher-60Kraw shards remain internal (public_raw_shard_redistribution_allowed: falseperDATA-LICENSES.md) whileSamyama-GPML-Bench-50is openly published underApache-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_v22_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 (
HTSRheavy-tailed weight spectra,eRankdynamics, singular-subspaceLoRAmerging), sample-efficient code/RLVR & active-grounding research, and in-processSamyama GraphOpenCypher/ISOGPML/algo.*/$query_vec/RaoTier-0 routing & sandboxed Python/Rust completion prototypes. - Limitations & Out-of-Scope Boundaries: All
v0.9.0+,v1.x, andv2.xcheckpoints are100%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 behindSamyama's< 55 µsMVCC read-only verifier gate, and whileMilestone M8lifted unconstrained unseen-schemaCypher-Bench-1008.0x(2.0% -> 16.0%) andSamyama-GPML-Bench-50from0.0% -> 22.0%(100%syntax valid), unconstrained multi-hop quantifier (*lo..hi) and edge-vs-node property attribution without&GraphStoreSchema-FSM v5remain activeM8.1improvements (52.8%–75.0%solved locally in-process withSchema-FSM v5at0.0%leak). (Legacyv0.7.x–v0.8.5checkpoints included~17.5%CC-BY-NC-SA-4.0instructional share disclosed inDATA-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)
- Published Model Checkpoints & JSON Configs: Apache License 2.0 (
@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}
}