b10-tv/speculative-encoding
Library
Can I trust it?
Worth a closer look before you use it.
Warnings Check
Very new: it was created 7 days ago. Wait a little before installing it.
Stars from real accounts No data
We haven't checked its stars for fakes yet.
Active OK
Last change yesterday.
Licence OK
Apache-2.0: you can use it for free, also in a commercial product. Keep the licence notice.
Quick checks from public data. They help, but they are no guarantee.
What it is
Translates the per-layer hidden states of a source LLM that has read a document into the KV cache of a different target LLM, so the target can answer questions without reading the document itself. An optional query-aware compressor shrinks the cache by 16x, 64x or 128x. Answers…
Who it's for
ML engineers and researchers building long-document question answering with LLM KV cache reuse across different models
How to use it
Install
uv syncFrom its README. Check it there before running it.
Ask your AI to set it up
Paste this into Claude, ChatGPT or your coding assistant.
Help me install and set up b10-tv/speculative-encoding in my project. Follow its README: https://github.com/b10-tv/speculative-encoding. Explain each step and check it is safe before running anything.
Star curve
Get alerts for repos like this
We'll email you when something in Models & inference starts rising. Free, once a week, only what matches.
What arrives: one email on Mondays with the repos that match, never more. See last week's. Privacy
For maintainers
Add this badge to your README. It shows the repo's place on the radar, updates every hour and links back to this page.
[](https://repoalerts.com/repo/b10-tv/speculative-encoding?ref=badge)Similar repos
- dayuwang401/SCR-VL
Research code for SCR-VL, a method that reuses the KV cache after mid-context edits in long-video LLMs using M-RoPE positions. A relocated segment's cached keys are rotated by a position offset instea
- Robot2050/Awesome-Speculative-Inference
A curated list of papers and resources on speculative inference for language models, organized by topics such as drafting and verification, long-context decoding, and speculative execution for agents.
- datawhalechina/zero-to-sglang
A free, bilingual (English and Chinese) tutorial course on LLM inference. It covers inference concepts such as KV Cache, prefill and decode, then guides readers through building a mini-sglang step by
- Tencent-Hunyuan/Hy4-flash
Hy4 flash is an open-weight Mixture-of-Experts language model from Tencent Hunyuan with 220B total parameters, 12B active per token, and a 1M-token context window. It accepts text and image inputs and
- snap-stanford/memorilla
Research code for Memorilla, a memory system that compresses an entire document collection into a fixed set of 16 query-dependent memory tokens fed to a frozen LLM. It includes training recipes, evalu
- FutureMLS-Lab/FlashStates
Inference serving for hybrid attention models (attention plus linear-attention or state-space layers) that reuses cached prefixes for coding-agent sessions. It saves recurrent checkpoints at any token