VLMEvalKit supports testing VLM models deployed by LMDeploy. Below, we use InternVL2-8B as an example to show how to test the model.
pip install lmdeployFor other installation methods, you can refer to LMDeploy's documentation.
lmdeploy serve api_server OpenGVLab/InternVL2-8B --model-name InternVL2-8BImportant
Since models in VLMEvalKit may have custom behaviors when building prompts for different datasets, such as InternVL2's handling of HallusionBench, it is necessary to specify --model-name when starting the server. This allows the VLMEvalKit to select appropriate prompt construction strategy based on the name when using the LMDeploy API.
If --server-port, is specified, the corresponding environment variable LMDEPLOY_API_BASE needs to be set.
python run.py --data MMStar --model lmdeploy --verbose --api-nproc 64