Generalised Meta-Attention Architecture — reimagined as a usable SDK, model zoo, evaluation suite, and demo to make reasoning-first AI ideas practical for engineers, researchers, and product teams.
Description
MART (Meta-Attention Reasoning Toolkit) packages the repository's reasoning-first concepts (meta-attention, epistemic confidence, rule induction, and self-critique) into an approachable Python SDK, example models, and demo applications so you can: experiment quickly, evaluate epistemic confidence and hallucination, and build safer interpretable systems.
Key goals
- Provide a compact, well-documented Python API to integrate meta-attention into transformer models.
- Offer reference implementations and small configs for rapid experimentation and reproducible demos.
- Ship a lightweight demo (Gradio/Streamlit) and Colab quickstart so anyone can try MART in <15 minutes.
- Include evaluation tools for confidence calibration, hallucination detection, and reasoning benchmarks.
Features (MVP)
- Core SDK: MetaAttentionLayer, ConfidenceHead, SelfCritic module (lightweight, framework-friendly).
- Hugging Face adapter: easy adapter-style integration into existing Transformers models.
- Inference utilities: run models and get predictions + epistemic confidence and self-critique traces.
- Small example configs & demo scripts for quick experiments.
- Evaluation harness for basic hallucination and confidence tests.
Quickstart (developer preview)
Install (developer mode):
pip install -e .
Or (once released):
pip install mart-reasoning-toolkit
Minimal example (API preview)
from mart import load_demo_model, run_inference
# load a small demo configuration (random weights / toy checkpoint)
model = load_demo_model("small-meta")
prompt = "Explain why the sky appears blue."
result = run_inference(model, prompt, return_confidence=True, return_self_critique=True)
print("Answer:\n", result.answer)
print("Confidence:\n", result.confidence)
print("Self-critique notes:\n", result.self_critique)Planned repository layout
- src/mart/ — core package
- examples/ — quickstart scripts & Colab notebooks
- demos/ — Gradio/Streamlit demo app
- configs/ — small meta-attention configs
- tests/ — unit tests and CI
- docs/ — usage and API docs
- LICENSE — recommended Apache-2.0
- CONTRIBUTING.md
Roadmap & next steps
- Add Apache-2.0 LICENSE and CONTRIBUTING.md
- Create package skeleton (src/mart) with core class stubs and unit tests
- Implement HF adapter and inference utilities
- Add Colab quickstart and Gradio demo
- CI: tests, linters, build/publish pipeline
Ethics & model data
- Document provenance and licensing for any pretrained checkpoints.
- Provide a model card and risk statement explaining limitations, failure modes, and mitigation strategies.
Maintainers
- Owner: Anurag1 (GitHub)
Get involved
If you'd like, I can now create the package skeleton (src/mart) with core stubs, tests, and a CI workflow. Reply with "B" and I'll add the code and tests directly to the repository.