Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
c21b99b9
Unverified
Commit
c21b99b9
authored
Mar 21, 2025
by
Mengqing Cao
Committed by
GitHub
Mar 21, 2025
Browse files
[Bugfix][VLM] fix llava processor (#15285)
Signed-off-by:
Mengqing Cao
<
cmq0113@163.com
>
parent
93a00d7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
vllm/model_executor/models/llava.py
vllm/model_executor/models/llava.py
+7
-1
No files found.
vllm/model_executor/models/llava.py
View file @
c21b99b9
...
...
@@ -233,7 +233,13 @@ class LlavaDummyInputsBuilder(BaseDummyInputsBuilder[_I]):
class
LlavaProcessingInfo
(
BaseLlavaProcessingInfo
):
def
get_hf_processor
(
self
,
**
kwargs
:
object
):
return
self
.
ctx
.
get_hf_processor
(
LlavaProcessor
,
**
kwargs
)
hf_processor
=
self
.
ctx
.
get_hf_processor
(
LlavaProcessor
,
**
kwargs
)
# In case patch_size is omitted from `processor_config.json`
# e.g. for E5-V: https://huggingface.co/royokong/e5-v
if
hf_processor
.
patch_size
is
None
:
patch_size
=
self
.
get_vision_encoder_info
().
get_patch_size
()
hf_processor
.
patch_size
=
patch_size
return
hf_processor
class
BaseLlavaMultiModalProcessor
(
BaseMultiModalProcessor
[
_I
]):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment