[Feature] Support logprob in VLM api server
Open
- Dominant language
- Python
- Stars
- 8.1k
- Forks
- 748
- Avg merge
- 6d 2h
- Merged PRs (30d)
- 54
Description
### Motivation
I found that the input token logprob is supported by Offline Inference Pipeline, as mentioned in [doc](https://lmdeploy.readthedocs.io/en/latest/inference/vl_pipeline.html#calculate-logits).
However, when I deployed a VLM server, I found that this feature was not supported. How to enable this on the server? Thanks.
### Related resources
The code I deploy a server is `lmdeploy serve api_server openbmb/MiniCPM-Llama3-V-2_5 --server-port 23333 --session-len 4096`
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.