ELI5: What is Weight Programming?
Imagine an LLM as a mixing console with 1.5 billion dimmer switches (floating-point weights). Normally, you treat that console as a sealed black box: retrain everything or ship a multi-gigabyte binary blob.
Omnispherepop opens the box and treats neural weights like source code:
- Dimmer switches → 3-way switches (
{-1, 0, +1}): Compress weights to 5 trits per byte (1.6 bits/weight) — 95.0% smaller than FP32 / 88.4% smaller than FP16 with zerounsafeRust. - Smooth outlier spikes first (
--hadamard/--hadamard-2d): An exact self-inverse Walsh-Hadamard rotation spreads giant outlier channels evenly across each 128-weight group before snapping to trits (cutting PTQ KL by up to 13×, and 4.0× full-model when fused with SmoothQuant). - Git diffs for fine-tuning, RLVR & MARL (
trit-diff,pack-delta,apply-delta): Compress only what RL changed (ΔW) into a portable.ospop.safetensors1.58-bit patch you can inspect, stack orthogonally across skills, and reverse with a receipt. - Evidence-first directional surgery (
ospop dwm— wired with Ablagent / DWMIP): Project out a single unit direction (W' = W - α d̂ (d̂ᵀ W)) with independent replay verification, fail-closed policy gates (--strict-gate), and 1.58-bit patch export.
trit-diff layer14.o_proj.base -> layer14.o_proj.s3_marl (group 128): 57 / 65536 changed (0.087% flip, 0 direct sign flips)
pack-delta (ospop.delta.pack5.v1): 15478 B vs 262144 B f32 (94.1% smaller vs f32, 88.2% vs fp16) energy_retained 82.3% round_trip true
apply-delta layer14.o_proj.base: stacked 2 patch(es) [math + s3_marl] (30956 B total) ok=true
dwm layer.weight [16x32] (dense.rank_one_output.v0, alpha=0.60): attenuation 60.0% (1.58b patch 45.8%) rel_frob 0.232 replay_ok=true
gate=eligible authorization=not_granted trit_flip=9.375% (sign_flips=0) 1.58b_patch=408 B round_trip=true
No account, no telemetry, no model download required to start. The demo snapshot is generated deterministically so your terminal, browser sandbox, MCP agent, and CI see the exact same numbers.
Install
One-liner (macOS & Linux)
|
Cargo (crates.io — Rust 1.78+)
Homebrew (macOS & Linux)
Agent Skill (npx skills) & MCP Server
# Install the Omnispherepop skill for Claude Code, OpenCode, Codex, Cursor, etc.
30-Second Tour
# Real safetensors checkpoints: 2D Hadamard, RLVR/MARL trit-diff, and multi-skill 1.58b stacking
Architecture: Harness → Loop → Graph
Reliable AI weight engineering isn't a better prompt — it's three distinct layers (read our full guide: docs/articles/02-harness-loop-graph-for-weight-engineering.md):
| Layer | Role | Inside Omnispherepop |
|---|---|---|
| Harness (Environment & Walls) | Gives humans & agents narrow tools, memory on disk, and unbypassable guardrails | One Program enum across CLI, 12-tool ospop-mcp, and browser; #![forbid(unsafe_code)] zero-dependency ospop-core; AGENTS.md + llms.txt |
| Loop (Evidence, Not Vibes) | Replaces self-report with deterministic checks, replay receipts, and hard exits | round_trip_ok, hadamard_orthogonal_ok, replay_ok, Rust↔JS check-parity.mjs, and fail-closed ospop dwm --strict-gate (exit 2) |
| Graph (Composable Flow) | Splits independent work into frozen, reversible, stackable artifacts | Ultra-graph set-to-set edges (ospop_core::graph) and orthogonal 1.58-bit .ospop.safetensors multi-skill patch stacking |
Directional Weight Modification (Ablagent / DWMIP)
Omnispherepop natively integrates the evidence-first DWMIP contract pioneered by Blackfrost-AI/Ablagent (Apache-2.0) in zero-unsafe Rust (crates/ospop-core/src/dwm.rs, ospop dwm, ospop_dwm):
- Exact rank-one projection:
W' = W - α d̂ (d̂ᵀ W)(dense.rank_one_output.v0) or input-spaceW' = W - α (W d̂) d̂ᵀ, computed in FP64 accumulation with strict unit-norm binding (dwmip.bound-direction.v0). - Independent replay & fail-closed gate: Every run replays the transform, checks perturbation bounds (
rel_frobenius_delta), audits trit flips, and with--strict-gateexits2(status: "blocked",authorization: "not_granted") whenever external behavioral redline evidence is absent. - 1.58-bit DWM patch bridge: Export any directional intervention directly to
.ospop.safetensors(--out dwm.ospop.safetensors) and stack it alongside RLVR or MARL skill patches!
Operations & 13 MCP Tools
| CLI Operation | MCP Tool | What it does | Measured Evidence |
|---|---|---|---|
inspect |
ospop_inspect |
snapshot identity & tensor shapes | SHA-256 snapshot id, tensor count |
quantize |
ospop_quantize |
ternary or A6P qdelta, optional --hadamard / --hadamard-2d |
sparsity, 4/5-trit bytes, MSE, hadamard_orthogonal_ok |
any-rate |
ospop_any_rate |
Any-Rate progressive residual ternary (arXiv:2611.34402, 1..4 planes in ONE file) |
progressive curve (bpw, MSE, RMSE), mse_improvement_x, round_trip_ok |
trit-diff |
ospop_trit_diff |
compare base vs RLVR/MARL weights through the ternary lens | flip_rate, sign_flips, delta_mse, delta_energy_retained |
pack-delta / apply-delta |
ospop_pack_delta |
serialize & stack .ospop.safetensors, optional --jnsp (arXiv:2611.17103) |
artifact_bytes, compression_vs_fp16, jnsp.order_invariant, round_trip_ok |
dwm |
ospop_dwm |
Ablagent/DWMIP rank-1 directional edit + deployed-precision audit (arXiv:2611.00665) |
directional_attenuation, deployed_precision_drift, replay_ok, decision |
lens |
ospop_lens |
ternary, heatmap, graph, diff, sparsity-histogram views | rendered output, round-trip flag |
diff / prune |
ospop_diff / ospop_prune |
reversible snapshot edit / ultra-graph reachability | round_trip_ok, kept/dropped counts |
learn / explain |
ospop_learn / ospop_explain |
17 observed-checkpoint labs & ELI5 explainer | per-lesson runtime checkpoint verdict |
--file / load |
ospop_load_safetensors / ospop_load_demo |
dense F32/F16/BF16 safetensors loader | strict rejection of malformed files |
Empirical Highlights (Free Colab T4 · Verified Against Rust CLI)
Full reproducible numbers live in docs/BENCHMARKS.md and public artifacts/patches on Hugging Face at https://huggingface.co/datasets/eightb/omnispherepop-benchmarks:
- Live
0.00 ppzero-interference dual-skill stacking (Qwen/Qwen3-1.7B): StackingΔ_math_1.58b + Δ_marl_1.58bsimultaneously onto one base reproduced exact single-patch Countdown Math (33.3%, 4× zero-shot 4-num transfer4.2% → 16.7%) AND exacts3-mazeswarm solve (50.0%atN=4&N=6,8.0steps) — backed byglobal cos = -0.00001across all 28 layers (196matrices), and verified triple-stacking[Math RLVR + InfoGain MARL + Ablagent DWM]in Rustospop v1.3.0(46,434 Btotal vs262,144 Bf32). - 1.58-bit Math RLVR diffs beat dense FP16 Dr. GRPO (
Qwen2.5-1.5B): On 48 held-out Countdown tasks,FP16 Base + ospop(ΔW)hit25.0%(100%format, −88.4% vs FP16) vs20.8%for full FP16 Dr. GRPO and12.5%for FP16 Base. - 1.58-bit
s³Cooperative MARL diffs beat dense FP16 MARL (HuggingFaceSwarms/s3-maze): Trained only onN=2swarms (6.5 minon T4),FP16 Base + ospop 1.58b MARL Diffreached100.0%solve (5.2steps,44.3%redundancy,+1.520reward) atN=4(beating FP16 MARL95.8%) and100.0%atN=6(3× team-size scaling!). - Math RLVR and Cooperative MARL are near-exact orthogonal: Peak trit-flip bands separate by depth (
L12–L14vsL14–L19), and even on shared Layer 14cos(ΔW_math, ΔW_marl) = -0.00015(o_proj) /+0.00038(down_proj). - SmoothQuant + Walsh-Hadamard fusion (
SQ(α=0.5) + had1): Cuts full28/28zero-shot 1.6-bpw PTQ KL 4.0× (11.76 → 2.94).
Notebooks & Educational Articles
Runnable Colab / Jupyter Notebooks (notebooks/)
| Notebook | Topic | Launch |
|---|---|---|
01_weight_programming_158bit_ptq.ipynb |
1.58-bit PTQ, outlier Walsh-Hadamard (W H), Rust CLI parity |
|
02_rlvr_trit_diff_and_dual_skill_stacking.ipynb |
HF checkpoints, Math vs MARL orthogonality, .ospop.safetensors stacking |
|
03_dwm_abliteration_evidence_first.ipynb |
Ablagent / DWMIP rank-one surgery, --strict-gate, 1.58b patch export |
Educational Articles (docs/articles/)
- From Floating-Point Blobs to Weight Programming — ELI5 → SOTA guide to LLM training, RLVR, MARL, Walsh-Hadamard, SmoothQuant, and 1.58-bit diffs.
- Harness, Loop, Graph for Weight Engineering — Applying the 3-layer agent architecture (environment, verifiable evidence, dependency flow) to reliable weight systems.
- Evidence-First Directional Weight Modification (DWM / DWMIP) — How Ablagent's rank-one projection and fail-closed gates bridge to stackable 1.58-bit
.ospop.safetensorspatches. - November 2026 Research Frontier → Applied Roadmap — Deep dive into JNSP (
arXiv:2611.17103), Deployed-Precision Auditing (arXiv:2611.00665), Any-Rate coded bit-planes, NAPO, PACE, and TTT-Consolidate.
Repository Layout
crates/ospop-core zero-unsafe core: trits, PTQ, 1D/2D Hadamard, .ospop.safetensors, DWM/DWMIP, ultragraphs, snapshots
crates/ospop-runtime Program enum and Runtime::execute (single truth for CLI, MCP, browser)
crates/ospop-academy 17 lessons across 5 tracks with observed checkpoints
crates/ospop-cli binary `ospop`
crates/ospop-mcp binary `ospop-mcp`, 12-tool MCP over stdio
notebooks/ 3 runnable Colab / Jupyter notebooks
docs/articles/ educational deep-dives on LLM training, weight-programming, Harness/Loop/Graph, DWMIP
skills/omnispherepop/ `npx skills add 8b-is/omnispherepop` agent skill
packaging/homebrew/ Homebrew formula (`ospop.rb`)
scripts/ one-liner `install.sh`, site build, owner drift check, Rust<->JS parity check
site/ GitHub Pages landing page, live ternary sandbox, academy pages
third_party/ultra-graph git submodule: zerocpu kernels (5-trit packing, A6P)
Star History
Publishing & Mirrors
Three homes, because ownership is joint. Codeberg is canonical (codeberg.org/8b-is/omnispherepop); GitHub carries two mirrors for reach, one per owner account.
| Host | Repository | Role |
|---|---|---|
| Codeberg | https://codeberg.org/8b-is/omnispherepop | canonical, receives tags first |
| GitHub | https://github.com/8b-is/omnispherepop | mirror |
| GitHub | https://github.com/peterlodri-sec/omnispherepop | mirror |
scripts/sync-owners.sh --check fails CI if a URL drifts or a mirror is dropped from this table or from OWNERS.toml.
Governance, Acknowledgments & License
Built with 8b.is and Standard Galactic. See ACKNOWLEDGMENTS.md, GOVERNANCE.md, TRADEMARK.md, CLA.md, docs/STATUS.md, CONTRIBUTING.md, and SECURITY.md. Licensed MIT OR Apache-2.0.