Analysis updated 2026-05-18
Improve how a long-context AI chatbot remembers earlier topics after a brief distraction.
Benchmark memory-eviction strategies for large language model inference.
Reduce GPU memory use for long AI conversations without losing important context.
| unkcenter/ok-dmd | 0-bingwu-0/live-interpreter | 010zx00x1/faresnipe | |
|---|---|---|---|
| Stars | 2 | 2 | 2 |
| Language | Python | Python | Python |
| Setup difficulty | hard | moderate | easy |
| Complexity | 5/5 | 2/5 | 2/5 |
| Audience | researcher | general | general |
Figures from each repo's GitHub metadata at analysis time.
Requires GPU and familiarity with LLM inference internals to use meaningfully.
OK-DMD is a Python tool that helps large language models handle very long conversations without losing track of important earlier information. When an AI model reads a long document or chat, it keeps a running memory called a KV-cache. Because that memory is limited, older parts often get deleted to make room for new ones, and standard methods decide what to delete based only on recent attention, which can accidentally throw away something important if the topic briefly changes and then comes back later. This project takes a different approach. It treats the flow of a conversation like a river, using a mathematical method called Koopman Operator Theory to spot the steady underlying "current" of a topic instead of just watching moment to moment shifts. That lets it tell the difference between information that matters for the whole document and passing side comments that can be safely forgotten. The README gives an example: if a document about astronomy is briefly interrupted by an unrelated lasagna recipe, older methods can wipe out the astronomy memory to make room, while OK-DMD is designed to protect it. The project includes a benchmark script that reproduces this exact scenario and reports how well OK-DMD preserves memory compared to a common alternative method called H2O, showing improved results under a tight memory budget. The README is honest about a limitation: if something is mentioned only once and never brought up again, OK-DMD may treat it as unimportant and remove it, so it recommends pairing it with other filtering techniques in real production systems. Installation is done by cloning the repository and installing it locally with pip. The project is licensed under Apache 2.0.
A Python tool that helps AI language models decide which memories to keep or forget during long conversations, using math that tracks stable topics over time.
Mainly Python. The stack also includes Python, PyTorch.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated hard, with roughly 1h+ to a first successful run.
Mainly researcher.
This repo across BitVibe Labs
Verify against the repo before relying on details.