tano2026/ai-vibe-toolkit/lmcache-skill

Claude Code and agent skill by tano2026/ai-vibe-toolkit

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Repo: github.com/LMCache/LMCache Apache 2.0 Stars: 8.6k Tích hợp với vLLM, SGLang, OpenAI API

Install

npx vskill@latest install tano2026/ai-vibe-toolkit/lmcache-skill

SKILL.md

The same SKILL.md was published earlier as tano2026/ai-vibe-toolkit/lmcache-skill.

lmcache — Cache LLM Context, Tăng Tốc + Tiết Kiệm Chi Phí (8.6k⭐)

Repo: github.com/LMCache/LMCache | Apache 2.0 Stars: 8.6k | Tích hợp với vLLM, SGLang, OpenAI API


Concept

LLM phải recompute KV cache mỗi lần dù context không đổi → tốn compute + chậm.

LMCache: lưu KV cache → lần sau dùng lại → tiết kiệm 40-70% latency, 50%+ chi phí.

Khi Nào LMCache Hữu Ích Nhất

✅ System prompt dài (dùng đi dùng lại nhiều lần) ✅ RAG với documents (same docs, different questions) ✅ Multi-turn conversations (context dài) ✅ Batch inference (same prefix khác nhau)

Setup Với vLLM

bash
pip install lmcache vllm
# Chạy vLLM với LMCache
python -m vllm.entrypoints.openai.api_server --model meta-llama/Llama-3.1-8B-Instruct --lmcache-config-file lmcache_config.yaml
yaml
# lmcache_config.yaml
chunk_size: 256
local_cpu:
enable: true
max_cache_size: 20 # GB

Tích Hợp OpenAI-Compatible API

python
from openai import OpenAI
# Point tới local server với LMCache
client = OpenAI(
base_url="http://localhost:8000/v1",
api_key="none"
)
# Lần 1: compute + cache
response = client.chat.completions.create(
model="llama-3.1-8b",
messages=[
{"role": "system", "content": LONG_SYSTEM_PROMPT}, # cache này
{"role": "user", "content": "Question 1"}
]
)
# Lần 2: dùng cache → nhanh hơn 40-70%
response = client.chat.completions.create(
model="llama-3.1-8b",
messages=[
{"role": "system", "content": LONG_SYSTEM_PROMPT}, # từ cache
{"role": "user", "content": "Question 2"} # chỉ cần compute cái này
]
)

Savings Thực Tế

Use CaseLatency ReductionCost Reduction
System prompt 2k tokens-50%-40%
RAG 10k context-65%-55%
Multi-turn 20k-70%-60%

Khi Nào KHÔNG Cần LMCache

❌ Simple one-shot queries (mỗi câu khác nhau hoàn toàn) ❌ Dùng Claude API (Anthropic tự handle caching) ❌ Context ngắn < 1k tokens

Note: Anthropic đã có prompt caching built-in → chỉ cần LMCache khi self-host vLLM.


skills/lmcache-skill.md | AI Vibe Toolkit | tháng 6/2026

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/tano2026/ai-vibe-toolkit/lmcache-skill/badge)](https://verified-skill.com/skills/tano2026/ai-vibe-toolkit/lmcache-skill)

Something wrong with this skill or its page? Tell us.