Anamnesis replaces the frozen MLPs in Qwen 2.5 7B with a Continuum Memory System (CMS) -- deep memory that learns during inference through gradient descent. Feed it conversations and it physically restructures its weights to become a specialist.
Architecture
Based on the complete feature set from Ali Behrouz's research at Google:
Optimizer: AdamW, lr=3e-4, warmup=5000 steps, cosine decay to 10%
Hardware: 1x A100 80GB
Steps: 25,000
Batch size: 4, sequence length: 512
Inner-Loop Specialization (Test Time)
After scaffold training, the memory updates during every forward pass via per-token gradient descent on the associative loss. No fine-tuning needed -- just feed it conversations.
Usage
python
1# Install2pip install anamnesis
34# Convert and load5from anamnesis.core.model import HopeModel, HopeConfig
6model = HopeModel(config)7model.load_state_dict(torch.load("anamnesis-vessel-7b.pt"))89# Enable learning10model.eval()11for layer in model.layers:12 layer.cms.levels[1].learning_enabled =True1314# Every forward pass updates the memory15with torch.no_grad():16 output = model(input_ids)17# The model just changed. It will never be exactly the same again.
The Vessel Concept
This model is an empty vessel. It has no identity, no persona, no system prompt baked in. Feed it code review conversations and it becomes a code reviewer. Feed it therapy sessions and it becomes a therapist. The identity emerges from the interaction, not from training.
Same base model. Different conversations. Different specialists. Each specialist is a checkpoint file that can be saved, loaded, and hot-swapped.
Limitations
The scaffold was trained on a vessel corpus, not general text. PPL on general benchmarks may be higher than base Qwen 2.5 7B.
Inner-loop specialization requires multiple conversations (50+) to show clear behavioral change.
No KV cache implementation yet -- generation is O(n^2) in sequence length.
Triton kernel optimizations not yet implemented -- inference uses standard PyTorch.
Citation
bibtex
1@software{anamnesis2026,
2 title={Anamnesis: Empty Vessels That Become Who They Talk To},
3 author={Poole, Aidan},
4 url={https://github.com/Relic-Studios/anamnesis},
5 year={2026}
6}
References
Behrouz et al., "ATLAS: Learning to Optimally Memorize the Context at Test Time" (2025)
Behrouz et al., "Nested Learning: The Illusion of Deep Learning Architecture" (NeurIPS 2025)
Behrouz & Zhong, "Titans: Learning to Memorize at Test Time" (2025)
Behrouz et al., "Memory Caching: RNNs with Growing Memory" (2026)