A Python tool that translates hidden document states from one LLM into another model's compressed KV cache for vLLM inference.
PythonCreated
What is b10-tv/speculative-encoding?
speculative-encoding is a Python library that translates a source LLM's hidden document states into a target LLM's KV cache, allowing another model to answer questions from the injected cache via vLLM or Hugging Face.
A single shared translator supports seven models—Qwen3 14B, Qwen3.5 9B, Llama 3.1 8B, Gemma 3 12B, Gemma 4 12B, and Ministral 3 8B and 14B—across all 42 translation pairs, with an optional query-aware compressor that shrinks the cache by 16x, 64x, or 128x.
ML engineers building multi-model inference pipelines or low-latency RAG systems can use speculative-encoding to share precomputed document context across heterogeneous LLMs.
A categorized catalog of free APIs you can call from your own projects, covering weather, finance, music, government data, games, machine learning and more. Each entry notes whether it needs an API key, supports HTTPS and allows CORS.
A massive, community-maintained list of legally free programming books, courses, interactive tutorials and podcasts, organized by programming language and by spoken language. A first stop when you want to learn a topic without paying.
A study guide for designing scalable systems, covering caching, load balancing, databases, queues and consistency trade-offs, with worked interview problems and Anki flashcards. Widely used to prepare for system design interviews.
An opinionated, curated list answering "I want to do X in Python, which tool should I use?" It groups trusted frameworks, libraries and tools by job, from web frameworks and data science to testing and command-line apps.