Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 57 additions & 12 deletions deploy/huggingface/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
margin: 5px 0 0 0;
font-size: 1.1em;
font-weight: 300;
">Real Test-Time Training — Not a Simulation</p>
">Test-Time Training: Evolving LLMs from data hoarders to knowledge creators</p>
</div>
</div>

Expand Down Expand Up @@ -2137,24 +2137,69 @@ def restore(name: str) -> str:
- **Checkpoints**: Save/restore learned state via Docker volumes
- **Container-Native**: Designed for orchestrated deployment

### Built By
---

**Carlos Crespo Macaya**
AI Engineer - GenAI Systems & Applied MLOps
## Limitations

This is a **demonstration project**, not a production-ready system:

| Component | Current State | Production Would Need |
|-----------|---------------|----------------------|
| **RAG Implementation** | Simplified keyword matching | Vector embeddings + semantic search (FAISS, Pinecone) |
| **Neural Memory** | Basic 2-layer MLP | Deeper architecture, attention mechanisms |
| **Scalability** | Single-user demo | Distributed inference, GPU optimization |
| **Evaluation** | Qualitative comparison | Benchmarks, ablation studies, metrics |
| **Memory Capacity** | ~250K parameters | Larger models, hierarchical memory |

The RAG comparison uses simple word overlap scoring to demonstrate *why* keyword-based retrieval fails for pattern inference. A production RAG system would use proper embeddings and vector similarity search.

---

## Acknowledgments

This project builds on the work of brilliant researchers:

- 10+ years production ML experience
- Expert in Docker, Kubernetes, MCP servers
- Currently at HP AICoE building multi-agent systems
**Core Research:**
- **Titans: Learning to Memorize at Test Time** (Google, Dec 2024) — [arXiv:2501.00663](https://arxiv.org/abs/2501.00663)
- Ali Behrouz, Peilin Zhong, Vahab Mirrokni
- **Learning to (Learn at Test Time): RNNs with Expressive Hidden States** (Stanford/Meta, Jul 2024) — [arXiv:2407.04620](https://arxiv.org/abs/2407.04620)
- Yu Sun, Xinhao Li, Karan Dalal, et al.

**Frameworks & Tools:**
- [PyTorch](https://pytorch.org/) — The foundation for neural memory implementation
- [Gradio](https://gradio.app/) — Interactive demo interface
- [HuggingFace](https://huggingface.co/) — Model hosting and inference API

Copilot AI Jan 9, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The word "HuggingFace" should be "Hugging Face" (two words). This is the correct branding for the company.

Suggested change
- [HuggingFace](https://huggingface.co/) — Model hosting and inference API
- [Hugging Face](https://huggingface.co/) — Model hosting and inference API

Copilot uses AI. Check for mistakes.
- [Model Context Protocol](https://modelcontextprotocol.io/) — Claude Desktop integration

**Inspiration:**
- The broader ML community exploring alternatives to attention-based memory
- Open-source contributors who make research accessible

---

## Next Steps

Potential improvements for future iterations:

1. **Real RAG Baseline**: Integrate sentence-transformers + FAISS for proper semantic retrieval comparison
2. **Attention-Based Memory**: Implement the full Titans architecture with neural long-term memory gates
3. **Benchmarking**: Add quantitative evaluation on standard memory tasks (bAbI, etc.)
4. **Multi-Modal Support**: Extend to image/audio observations
5. **Distributed Memory**: Explore memory sharing across multiple agents
6. **Fine-Grained Forgetting**: Implement selective memory consolidation/pruning

---

## Built By

**Carlos Crespo Macaya**
AI Engineer — GenAI Systems & Applied MLOps

This project demonstrates the ability to:
1. Read cutting-edge research (Titans paper)
2. Implement it correctly (PyTorch TTT)
3. Productionize it (Docker, MCP, CI/CD)
4. Make it compelling (this demo)

**Contact:** [macayaven@gmail.com](mailto:macayaven@gmail.com)

**GitHub:** [macayaven/docker-neural-memory](https://github.com/macayaven/docker-neural-memory)
4. Communicate it effectively (this demo)

Copilot AI Jan 9, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The contact information and GitHub repository link that were previously at the end of the "Built By" section have been removed. This makes it difficult for interested parties to reach out or view the source code. Consider re-adding these important contact details and the repository link.

Suggested change
4. Communicate it effectively (this demo)
4. Communicate it effectively (this demo)
**Contact & Source**
For questions, feedback, or collaboration, please use the issue tracker or discussions on the project repository:
https://github.com/USERNAME/REPO

Copilot uses AI. Check for mistakes.
"""


Expand Down
Loading