vllm
vllm copied to clipboard
[Bugfix][Model] Add base class for vision-language models
This PR adds a base class VLMBase
to avoid importing LlavaForConditionalGeneration
in vllm/model_executor/model_loader/loader.py
, thus solving #4807.
Along the way, I have also ported the improved error handling logic regarding image_feature_size
for LLaVA model.
FIX #4807
@simon-mo The models-test
keeps getting interrupted, causing the CI to fail.
@DarkLight1337 @ywang96 @rkooo567 Is this PR ready for merge?
@DarkLight1337 @ywang96 @rkooo567 Is this PR ready for merge?
Yes.