snap-stanford / memorilla
git clone https://github.com/snap-stanford/memorilla.git
Trains and evaluates Memorilla, a system that compresses a document collection into 16 query-dependent memory tokens for a frozen LLM.
Why you might care
Lets a frozen LLM answer questions over more text than its context window holds, such as a user's past chats or a long book. Reports better average accuracy than Mem0 and MemoRAG on the paper's benchmarks, and uses about 2,000 times fewer tokens than feeding all documents. Requires Linux with CUDA GPUs (an 80 GB GPU for the example) and Python 3.11.
+9
stars, 24h · #4,453
+72
stars, 7 days · #5,587
+~1.5k
stars, 30 days · #714
1.7k
★ total · +5% this week
124
forks · 4 open issues
Star history (as recorded here)
LanguagePython
LicenseApache-2.0
Created2026-06-23 (5mo ago)
Last push2d ago
Watchers7
OwnerOrganization
Seen on GitHub Trending
- 2026-11-10 — #15 daily in python · +62 ★
GitHub topics
context-compressioncontinual-learningllmlong-contextmemorypersonalizationreinforcement-learningretrieval-augmented-generation
Links
- GitHub: github.com/snap-stanford/memorilla
- Homepage: https://memory.stanford.edu
- Releases · Issues · Hacker News mentions
README
Loading README…
Blurb generated by claude-haiku-5-5 13d ago. Star deltas marked ~ are extrapolated from partial history.