cacheMon / PrefixSim
A simulator for LLM Inference prefix cache
Why this job: topics: llm-inference, llm-serving, llm inference
What it does
Engines such as vLLM and SGLang keep the KV cache of finished requests, so a new request that shares a prefix with an earlier one skips recomputing it. When the cache is full, an eviction policy decides which blocks to drop, and that choice decides how much prefill compute the cache saves. prefixsim replays real LLM request traces through such a cache and compares eviction policies by what matters: the compute saving ratio (prefill compute avoided), not just the block hit ratio.
Get started
./_build/bin/traceConvLLM --input my_trace.jsonl --output my_trace.lcp
./_build/bin/prefixsim --trace my_trace.lcp.zst --cache-size 64k --algo lru,s3fifo - Maintenance
- Active
- Last commit 4 days ago
- Stars
- 68
- +68 this week
- Licence
- Apache-2.0
- Allows business use
- Downloads for
- None listed
- No release files
- Latest version
- None yet
- No releases
- Built with
- C++
- 97% of the code
Is it looked after?
- Contributors
- 3
- Last 90 days
- Issues
- 0% closed
- 1 still open
- Pull requests
- 2 merged
- 1 waiting
- Releases
- None
- Never published
- No contributing guide
- No security policy
- No code of conduct
Similar repos
| Repo | Stars | Last commit | Licence | Downloads for |
|---|---|---|---|---|
| liguodongiot / llm-action | 25,268 | 27 days ago | Apache-2.0 | No downloads |
| bentoml / BentoML | 8,935 | 12 days ago | Apache-2.0 | No downloads |
| thu-pacman / chitu | 2,999 | 3 days ago | Apache-2.0 | No downloads |
More: languages, topics and project record
Languages
- C++ 97%
- CMake 3%
Topics
- cache
- llm
- llm-inference
- llm-serving
- prefix-cache
Project record
- JobLocal LLMs
- StatusNew to our list
- Commits15
- Forks9
- Watching2
- CreatedNov 4, 2026
- First seen by usNov 10, 2026
- CheckedNov 10, 2026
