InternLM / InternLM/lmdeploy

enable_prefix_caching LMDeploy vs vLLM

Open
#3,182 2 comments 0 reactions 1 assignee Claimed by @lvhan028 View on GitHub
Dominant language
Python
Stars
8.1k
Forks
748
Avg merge
6d 2h
Merged PRs (30d)
54

Description

I'm currently testing LMDeploy, and it just seems like `enable_prefix_caching` can't be zero-overhead/as performance as vLLM? with vLLM when `enable_prefix_caching` is enabled, the time to generate the same prompts, is almost free.

Is there an example of this that I might be missing for Turbomind engine? Given the same prompts? I know Turbomind Engine doesn't support prefix prompts/system prompts but this also does not work in user prompts?

# vLLM V1
![Image](https://github.com/user-attachments/assets/e81e861e-1d31-4f11-af9a-c14da016c779)
![Image](https://github.com/user-attachments/assets/c46bb4c4-a9cb-4254-81f0-7721efd5f2fc)

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.