InternLM / InternLM/lmdeploy

[Feature] 是否有方法可以锁定部分kv-cache

Open
#3,595 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
8.1k
Forks
748
Avg merge
6d 2h
Merged PRs (30d)
54

Description

### Motivation

目前我们发现不同的请求prompt可能不同,为了保证部分请求的耗时,我们想锁定一部分prompt的kv-cache,这样达到优化耗时的目标。

请问是否有接口可以调用?如果没有,有更好的办法解决这种问题吗?

谢谢

### Related resources

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.