Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Usage]: prefix caching support for multimodal models #9790

Open
1 task done
mearcstapa-gqz opened this issue Oct 29, 2024 · 0 comments
Open
1 task done

[Usage]: prefix caching support for multimodal models #9790

mearcstapa-gqz opened this issue Oct 29, 2024 · 0 comments
Labels
usage How to use vllm

Comments

@mearcstapa-gqz
Copy link

mearcstapa-gqz commented Oct 29, 2024

Your current environment

The output of `python collect_env.py`

How would you like to use vllm

Hi I want to perform offline batch inference with prefix caching to accelerate inference.
But It looks like it is not supported yet when I initialize LLM with enable_prefix_caching=True

--enable-prefix-caching is currently not supported for multimodal models and has been disabled.
Would it be supported in near future and/or can I get some reference on how to implement it myself?
Currently I'm trying to make batch inference with prefix cache work using huggingface transformers, but it looks like I can't get padding and/or cache position and/or attention_mask right so I get gibberish outputs.

ref:
https://docs.vllm.ai/en/stable/getting_started/examples/offline_inference_with_prefix.html
https://docs.vllm.ai/en/stable/getting_started/examples/offline_inference_vision_language.html
huggingface/transformers#34232 (comment)

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usage How to use vllm
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant