Repository navigation
docs: improve headline and add Limitations/Acknowledgments #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -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> | ||||||||||||||||
|
|
||||||||||||||||
|
|
@@ -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 | ||||||||||||||||
| - [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) | ||||||||||||||||
|
||||||||||||||||
| 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 |
There was a problem hiding this comment.
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.