ModelCache
codefuse-ai/ModelCache · Public GitHub repository
A LLM semantic caching system aiming to enhance user experience by reducing response time via cached query-result pairs.
Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

About this project
Author-written excerpt from the project README.
Codefuse-ModelCache is a semantic cache for large language models (LLMs). By caching pre-generated model results, it reduces response time for similar requests and improves user experience. This project aims to optimize services by introducing a caching mechanism. It helps businesses and research institutions reduce the cost of inference deployment, improve model performance and efficiency, and provide scalable services for large models. Through open-source, we aim to share and exchange technologies related to large model semantic cache.
- Embedding model\&inference
- In ModelCache, we incorporated the core principles of GPTCache. ModelCache has four modules: adapter, embedding, similarity, and datamanager.
- The adapter module orchestrates the business logic for various tasks, integrate the embedding, similarity, and datamanager modules.
- The embedding module converts text into semantic vector representations, and transforms user queries into vectors.
- The rank module ranks and evaluate the similarity of recalled vectors.
Requirements and intended audience
Codefuse-ModelCache is a semantic cache for large language models (LLMs). By caching pre-generated model results, it reduces response time for similar requests and improves user experience. This project aims to optimize services by introducing a caching mechanism. It helps businesses and research institutions reduce the cost of inference deployment, improve model performance and efficiency, and provide scalable services for large models. Through open-source, we aim to share and exchange technologies related to large model semantic cache.
Codefuse-ModelCache is a semantic cache for large language models (LLMs). By caching pre-generated model results, it reduces response time for similar requests and improves user experience. This project aims to optimize services by introducing a caching mechanism. It helps businesses and research institutions reduce the cost of inference deployment, improve model performance…
- Paid service · Required
It helps businesses and research institutions reduce the cost of inference deployment, improve model performance and efficiency, and provide scalable services for large models.
Not recorded: account, external api key, self-hosting. Missing information does not mean there are no requirements.
Statements extracted from the author’s documentation · Checked 2026-10-30. Source: https://github.com/codefuse-ai/ModelCache/blob/main/README.md
Recorded maintenance information
Last recorded source update: 2025-06-30. Saved release: release-v0.2.0 · 2024-05-15. These dates do not guarantee ongoing maintenance.
- Technologies
- Python
- Licence
- No licence detected. No recognised licence was detected in the saved metadata. A public repository does not automatically grant permission to reuse its code. Review the repository terms before reusing its code.
- Demo check
- A public page loaded on 2026-11-12. This does not test every feature.
Browse related categories
More projects to explore
DeepSite v4
hf:enzostvs/deepsite
Generate any application by Vibe Coding it
Open LLM Leaderboard
hf:open-llm-leaderboard/open_llm_leaderboard
Track, rank and evaluate open LLMs and chatbots
AI Comic Factory
hf:jbilcke-hf/ai-comic-factory
Create your own AI comic with a single prompt
MiroFish
666ghj/MiroFish
A Simple and Universal Swarm Intelligence Engine, Predicting Anything. 简洁通用的群体智能引擎,预测万物