Skip to content
The Daily Repo

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

Repos similar to this one
RepoStarsLast commitLicenceDownloads for
liguodongiot / llm-action25,26827 days agoApache-2.0No downloads
bentoml / BentoML8,93512 days agoApache-2.0No downloads
thu-pacman / chitu2,9993 days agoApache-2.0No 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

Type to search.

Try