Adaptive Branching Plastic Transformer (ABPT) is an open research repository for small language-model experiments around two ideas:
AttnRes, branches, verifier, plasticity), andABPTAnchorV1) that treats some spans as long-horizon semantic anchors whose failure can destabilize future generation.This repository is not presented as a finished architecture or a validated breakthrough. It is a working prototype with code, tests, notes, and experiment utilities kept in one place so other people can inspect, reproduce, criticize, or extend it.
What exists today:
src/model/abpt.pysrc/model/abpt_anchor_v1.pyWhat is not established today:
The most recent TinyStories BPE compare run (external Colab run, not a polished benchmark suite) looked like this:
val_bpb: 6.2377val_bpb: 5.9606anchor_contradiction: 0.8429 -> 0.7817anchor_viability: 0.1119 -> 0.2319anchor_dead_end: 75 -> 53proposal_influence = 0proposal_blend = 0Interpretation: the current anchor prototype is not obviously useless, but its strongest proposed mechanism (proposal/revision path) is still not validated.
src/model/backbone.py — shared transformer backbonesrc/model/abpt.py — baseline/stage-A integrated modelsrc/model/abpt_anchor_v1.py — anchor-centric prototypesrc/model/anchor_*.py — anchor subsystemssrc/data/ — Shakespeare, synthetic, Stack/TinyStories BPE loaderssrc/utils/ — metrics and helperstrain.pyevaluate.pydocs/research/PROJECT_MAP.mddocs/research/ANCHOR_THEORY.mddocs/research/ARCHITECTURE_V1.mddocs/research/CURRENT_STATUS.mdprogram.mdnotebooks/colab_anchor_v1_upload_only.ipynb
python -m venv .venv
. .venv/Scripts/activate
pip install -r requirements.txt
pytest -q
Baseline:
python train.py --preset toy --stage a --device cpu --steps 1
Anchor:
python train.py --preset toy --stage anchor --device cpu --steps 1
python evaluate.py --preset toy --stage anchor --device cpu --batches 1
shakespeareanchor-syntheticthe-stackthe-stack-bpetinystories-bpeExample:
python train.py --preset toy --stage anchor --dataset tinystories-bpe --device cuda --steps 5000
This repo is being opened as a research artifact, not as a finished claim. The intended value is:
If the anchor idea turns out weak, that is still useful information. If it turns out partially useful, this repo should make that visible without inflated claims.
Please read:
CONTRIBUTING.mdAGENTS.mdThe most useful contributions right now are usually:
Apache-2.0 — see LICENSE.
140 commits
14 commits
Python
98.3%
Jupyter Notebook
1.6%
Adaptive Branching Plastic Transformer (ABPT) is an open research repository for small language-model experiments around two ideas:
AttnRes, branches, verifier, plasticity), andABPTAnchorV1) that treats some spans as long-horizon semantic anchors whose failure can destabilize future generation.This repository is not presented as a finished architecture or a validated breakthrough. It is a working prototype with code, tests, notes, and experiment utilities kept in one place so other people can inspect, reproduce, criticize, or extend it.
What exists today:
src/model/abpt.pysrc/model/abpt_anchor_v1.pyWhat is not established today:
The most recent TinyStories BPE compare run (external Colab run, not a polished benchmark suite) looked like this:
val_bpb: 6.2377val_bpb: 5.9606anchor_contradiction: 0.8429 -> 0.7817anchor_viability: 0.1119 -> 0.2319anchor_dead_end: 75 -> 53proposal_influence = 0proposal_blend = 0Interpretation: the current anchor prototype is not obviously useless, but its strongest proposed mechanism (proposal/revision path) is still not validated.
src/model/backbone.py — shared transformer backbonesrc/model/abpt.py — baseline/stage-A integrated modelsrc/model/abpt_anchor_v1.py — anchor-centric prototypesrc/model/anchor_*.py — anchor subsystemssrc/data/ — Shakespeare, synthetic, Stack/TinyStories BPE loaderssrc/utils/ — metrics and helperstrain.pyevaluate.pydocs/research/PROJECT_MAP.mddocs/research/ANCHOR_THEORY.mddocs/research/ARCHITECTURE_V1.mddocs/research/CURRENT_STATUS.mdprogram.mdnotebooks/colab_anchor_v1_upload_only.ipynb
python -m venv .venv
. .venv/Scripts/activate
pip install -r requirements.txt
pytest -q
Baseline:
python train.py --preset toy --stage a --device cpu --steps 1
Anchor:
python train.py --preset toy --stage anchor --device cpu --steps 1
python evaluate.py --preset toy --stage anchor --device cpu --batches 1
shakespeareanchor-syntheticthe-stackthe-stack-bpetinystories-bpeExample:
python train.py --preset toy --stage anchor --dataset tinystories-bpe --device cuda --steps 5000
This repo is being opened as a research artifact, not as a finished claim. The intended value is:
If the anchor idea turns out weak, that is still useful information. If it turns out partially useful, this repo should make that visible without inflated claims.
Please read:
CONTRIBUTING.mdAGENTS.mdThe most useful contributions right now are usually:
Apache-2.0 — see LICENSE.
140 commits
14 commits
Python
98.3%
Jupyter Notebook
1.6%