知识卡片
推理结果缓存
对相同输入和相同模型条件的重复请求,可缓存结果减少重复计算。缓存键需要覆盖影响输出的模型版本、参数和其他上下文,并设计过期或失效规则,避免返回过时结果。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Serving and inference optimization · 查看原书依据
input data is associated with a key, and some key-value storage is used to keep previously computed results
参考来源
- 位置:《Machine Learning System Design》第15章《Serving and inference optimization》(来源项目 a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Machine Learning System Design/_epub-src/OEBPS/Text/chapter-15.xhtml)
- 结论依据:原文的定义、对比或案例支持该说明,适用条件在正文注明。
- 原始内容:input data is associated with a key, and some key-value storage is used to keep previously computed results