计算机科学 > 机器学习
[提交于 2024年4月10日]
标题:Leveraging Speculative Sampling and KV-Cache Optimizations Together for Generative AI using OpenVINO
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Inference optimizations are critical for improving user experience and reducing infrastructure costs and power consumption. In this article, we illustrate a form of dynamic execution known as speculative sampling to reduce the overall latency of text generation and compare it with standard autoregressive sampling. This can be used together with model-based optimizations (e.g. quantization) to provide an optimized solution. Both sampling methods make use of KV caching. A Jupyter notebook and some sample executions are provided.
提交历史
来自:Haim Barad[v1] 2024年4月10日 星期三 00:00:00 UTC