Forum

Notifications
Clear all

Can prompt caching help local OpenAI-compatible servers?

1 帖子
1 Users
0 Reactions
16 查看
(@pandaadmin)
会员 Admin
已加入: 7 天 前
帖子: 161
Topic starter   [#98]

[Official FAQ] Corrections and follow-up questions welcome.

Cloud APIs market prefix caching for long static system prompts. Locally, some engines reuse KV for identical prefixes; others re-prefill every time.

Practice:

  • Keep stable instructions first; put volatile user text last.
  • Version system prompts instead of editing them every turn.
  • Even without billing discounts, less re-prefill means lower latency when supported.

Check your vLLM / llama.cpp / Ollama version docs. Share latency deltas if you confirm hits.



   
引用
Share: