Skip to main content

Mathematical Brain 8-Level architecture — full training library

Project description

MB-8: Mathematical Brain 8-Level Architecture

MB-8 — full-training library for a novel 8-level neural architecture combining SSM, Hopfield networks, working memory, predictive coding, and plasticity mechanisms.

Features

  • 8 architectural levels: Membrane → Synapse → Dendrites → SSM → Hopfield/Phase → Working Memory → Error → Plasticity/Consolidation
  • Multiple model variants: SingleStream, DualStream, MB8ForCausalLM (full 8-level)
  • Training modes: Pretrain (CLM), SFT (chat-style), GRPO (RL)
  • Notebook API: Transformers-style Trainer + TrainingArguments for Jupyter/Colab
  • CLI tools: mb8-train, mb8-sft, mb8-grpo, mb8-eval, mb8-inspect
  • Epistemic framework: Hypothesis-driven development with go/no-go criteria

Quickstart

from mb8 import MB8Config, MB8ForCausalLM, TrainingArguments, Trainer

model = MB8ForCausalLM(MB8Config.from_preset("tiny_10m"))
trainer = Trainer(
    model=model,
    args=TrainingArguments(output_dir="outputs", max_steps=100),
    train_dataset=...,
)
trainer.train()

Installation

pip install mb8

Documentation

See api-docs/ for full reference and quickstart guide.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mb8-0.1.0b1.tar.gz (77.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mb8-0.1.0b1-py3-none-any.whl (100.4 kB view details)

Uploaded Python 3

File details

Details for the file mb8-0.1.0b1.tar.gz.

File metadata

  • Download URL: mb8-0.1.0b1.tar.gz
  • Upload date:
  • Size: 77.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for mb8-0.1.0b1.tar.gz
Algorithm Hash digest
SHA256 9df62b402b012dc2b878048888b3916d916b18895263815595788459186df7f2
MD5 9eb5c8e2e4b9707aa6b8879c8720f7ee
BLAKE2b-256 04c8af5a912de209fbf602a236a2450a89060d34e50334fac892bc8dce0aabe0

See more details on using hashes here.

File details

Details for the file mb8-0.1.0b1-py3-none-any.whl.

File metadata

  • Download URL: mb8-0.1.0b1-py3-none-any.whl
  • Upload date:
  • Size: 100.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for mb8-0.1.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ecbfbe767f9c7f163c524e8bf267773b8e60bcca3f27aceda208f9c973cf90a
MD5 d2d3470f1552cad9dffbfc5fdb8fc980
BLAKE2b-256 b8405fc6eb16213e07c07d90ee254755914e3a211479e0e0bb8c81b816f4d5d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page