Brain / QELM research system

Local intelligence with a quantum research core.

Brain coordinates hybrid model execution, persistent memory, continual learning, and QELM research on locally controlled infrastructure. The working system is in active development and is not open as a public chat or node download.

Active research trackPhase 37Z broad-capability repair

Research discipline

A bounded comparison, not a benchmark claim.

Phase 37Z fixes the architecture, corpus, optimizer, token budget, and seeds before training. QELM is compared with a conventional decoder-only control at nearly the same parameter scale, and public scores cannot be used to select or repair either model.

QELM route
29.93M
Matched control
30.85M
Parameter difference
3.09%

System atlas

One architecture, several explicit systems.

Brain separates routing, quantum execution, memory, learning, and governance so each path can be inspected and tested independently.

Control plane

A single controller coordinates cognition without hiding the route.

Brain binds tokenization, hybrid transformer blocks, sampling, model routing, memory, and the active quantum backend. Runtime modes keep local execution primary while optional teacher systems remain explicit and traceable.

01Input policy
02Model route
03Response state
Implementationcore/brain.pycore/model_router.pycore/runtime_modes.py
Local-first routing
Explicit runtime modes

Current experiment

Reclaiming inactive capacity for causal language work.

The sealed Phase 37X route retained 10,173,600 associative-memory parameters that its memory-free benchmark path did not read. Phase 37Z replaces that inactive table with a three-layer causal GRU and a residual MLP using the exact same parameter count.

  • 384Prompt tokens
  • 128Continuation tokens
  • 512Combined context
Fixed QELM budget29,930,048 parameters
BeforeActive language pathInactive table
37ZInherited pathCausal refinement

No parameters are added by the replacement.

Memory topology

Recall is layered, durable, and attributable.

Each store has a distinct role. Durable writes move through governance instead of treating every generated response as memory.

  1. 01

    Governed memory

    Canonical writes carry provenance, confidence, validation state, and an identified writer.

    memory/ + core/memory_governance.py
  2. 02

    Semantic memory

    SQLite FTS5 provides durable, searchable records for local semantic recall.

    core/memory_manager.py
  3. 03

    Quantum associative memory

    A separate associative path experiments with Grover-oriented retrieval.

    core/quantum_memory.py
  4. 04

    Sub-bit subspace memory

    QELM sub-bit state is retained through a dedicated memory and controller pair.

    core/subbit_subspace_memory.py
  5. 05

    Knowledge graph

    Extracted entities and relationships persist as structured graph data.

    core/knowledge_graph.py

Phase 37Z protocol

Evidence has to clear the gates in order.

The comparison contract is designed to fail closed when corpus, contamination, retention, or execution requirements are not met.

  1. 01

    Frozen before training

    Corpus contract

    Phase 37Z requires the checksum-pinned raw WikiText-103 source. Its smaller prepared cache is explicitly forbidden for this run.

  2. 02

    Required gate

    Contamination audit

    The exact training sources are audited against 91,008 examples across 74 expanded benchmark tasks before either model can train.

  3. 03

    One QELM + one control

    Bounded comparison

    Both routes share the corpus, optimizer contract, token budget, and context window. Seed searches and post-benchmark retraining are disabled.

  4. 04

    Reject on regression

    Retention check

    The QELM candidate must retain canonical behavior and structured-safety performance while the reclaimed parameters receive real gradients.

  5. 05

    No selection authority yet

    Public evaluation

    Public benchmarks run only after internal acceptance. The contract does not authorize a universal architecture-superiority claim.

Public access

Research records and connected open systems.

Brain's current quantum implementation is not distributed. The public record, related open repositories, lab tools, and later evidence remain accessible through the paths below.