Closed
【缺陷】重复请求时cache-indexer查看的kv cache hit rate一直是0 #3
shichangzhang064Add on  Mar 10Closed at  Mar 12
shichangzhang064Collaborators
Mar 10 Create

注意事项/ Notes

环境信息/ Environment

192.168.201.15

问题简述/ Brief Description

cache-indexer的match_sort接口一直返回hit rate 0

问题详情&复现步骤 / Details & Reproduction Steps

  1. 默认配置部署infernex
  2. 发送138token长度的推理请求给网关,预计cache indexer会有一个128token长度的块缓存
  3. 再次发送相同推理请求给网关。
  4. 查看cache-indexer日志,第一次请求后正常收到kv event并构建index tree,第二次请求到来时正常查找index tree但是不匹配
  5. tokenizer的解析后的tokens数据结构为dict[List[int, List[int]]],但是预计数据结构为list[int]。发现是transformer包5.0.0之后的版本修改了AutoTokenizer接口返回的数据结构。

期望结果/ Expected Results

在requirements.txt中固定依赖版本。
重复请求时希望能够通过cache-indexer查看正确的kv cache hit rate

实际结果/Actual Results

重复请求时cache-indexer查看的kv cache hit rate一直是0

likedislike
Sshichangzhang064Collaborators
Mar 10 Associated milestone: v26.03
Sshichangzhang064Collaborators
Mar 10 associated Kanban: openFuyao - v26.03问题单
openFuyao-botopenFuyao-botCollaborators
Mar 10 Added label: sig/sig-ai-inference
openFuyao-bot
openFuyao-botCollaborators
Mar 10 Comments:

欢迎来到 openFuyao 社区

Hey @shichangzhang064 , 感谢你对社区的贡献.

机器人使用手册

有关指令的使用,可以点击 此处 查看详情。开发人员可以在每个PR或Issue下方评论特定指令来触发机器人任务。

联系指引

有疑问可以联系 SIG: sig-ai-inference ,
维护者是: @foxbit, @javadoors, @regandy, @zhangxyjlu ,
审核者是: @ShiroChen, @piamposer-li, @qinwenzh .

likedislike
Sshichangzhang064Collaborators
Mar 10 Associated pull request
Sshichangzhang064Collaborators
Mar 12 Assign shichangzhang064 as responsible person
Sshichangzhang064Collaborators
Mar 12 Associated pull request
Sshichangzhang064Collaborators
Mar 12 changed custom state from 开启 to 待测试
Sshichangzhang064Collaborators
Mar 12 changed custom state from 待测试 to 已完成
Sshichangzhang064Collaborators
Mar 12 Close issue