Skip to content

MetaCortex-Dynamics/Axiom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Axiom

A Governed Language Model trained on public semiconductor data.

Axiom is a reference implementation of the Governed Generation Pipeline (GGP) — a four-phase architecture that produces structurally governed language output. Unlike conventional LLMs where safety is a runtime filter on an ungoverned substrate, Axiom's governance IS the architecture.

Architecture

PROPOSE (diffusion) → crystallize governed structures from noise
DECIDE  (G₁-G₇)    → admissibility gates with three-valued semantics
PROMOTE (witnesses)  → unanimous attestation, cryptographic commitment
EXECUTE (decoder)    → governed prose within committed validity envelope

What Makes This Different

Conventional language models apply safety as a runtime filter on an ungoverned substrate. Axiom's governance is the substrate. The output space is structurally constrained — not by post-hoc filtering, but by architectural design.

Training Data

Trained exclusively on public, Apache-2.0 licensed semiconductor RTL:

2,088 governance-decomposed training examples. Zero proprietary data in weights.

Getting Started

pip install torch tokenizers

Quick Run

python demo_simple.py
10/10 outputs passed all governance gates

  G: ['THIS', 'BECAUSE']  S: ['INSIDE/OUTSIDE', 'TOGETHER/ALONE']  F: ['CAN/CANNOT', 'MUST/LET']

Full Pipeline with Governance Trace

python demo.py
  PHASE 1: PROPOSE — Crystallizing structure from noise...
  PHASE 2: DECIDE  — 7/7 admissibility gates passed
  PHASE 3: PROMOTE — 7/7 witnesses attested, commitment locked
  PHASE 4: EXECUTE — Generating within committed envelope...

    module prim_secded_64_57_bind_fpv;

      bind prim_secded_64_57_tb
        prim_secded_64_57_assert_fpv prim_secded_64_57_assert_fpv (
        .clk_i,
        .rst_ni,
        .data_i,
        .data_o,

  GOVERNANCE TRACE
    Gates passed:      7/7
    Witnesses:         7/7 unanimous
    Phases completed:  PROPOSE -> DECIDE -> PROMOTE -> EXECUTE

Saves a machine-verifiable governance_trace.json with every output.

Colab Notebooks

Open In Colab General Demo — Full 4-phase governed generation pipeline
Open In Colab Semiconductor Verification — RTL module → governed formal properties. Upload your own SystemVerilog

Retrain from Scratch

mkdir -p corpus/public
git clone --depth 1 https://github.com/lowRISC/ibex.git corpus/public/ibex
git clone --depth 1 https://github.com/lowRISC/opentitan.git corpus/public/opentitan
git clone --depth 1 https://github.com/chipsalliance/Cores-SweRV.git corpus/public/Cores-SweRV

python scripts/build_decoder_v2.py

Results

Variant Final Loss Converges?
A (hierarchical) 0.107 Yes
B (flat) 0.181 Yes
C (uniform) 0.110 Yes
D (inverted) 0.094 No (memorization)

A beats B by 41%. D achieves lowest loss but never converges structurally — the convergence diagnostic correctly identifies memorization.

100% pipeline admission rate. Decoder generates valid SystemVerilog from governed structures.

License

MIT. See LICENSE.

Organization

MetaCortex Dynamics DAO

About

Axiom is the world's first Governed Language Model (GLM). 12.9M parameters. Runs on a phone. Every output is structurally witnessed, traceable, and committed through phased governance. No jailbreak surface exists because governance is the architecture, not a filter. 140,000x smaller than GPT-4.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors