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
5d712571
Unverified
Commit
5d712571
authored
Dec 12, 2024
by
Jeff Cook
Committed by
GitHub
Dec 12, 2024
Browse files
[Bugfix] Quick fix to make Pixtral-HF load correctly again after
39e227c7
. (#11024)
parent
d4d5291c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
vllm/model_executor/models/llava.py
vllm/model_executor/models/llava.py
+1
-5
No files found.
vllm/model_executor/models/llava.py
View file @
5d712571
...
@@ -218,12 +218,8 @@ class LlavaProcessor(BaseMultiModalProcessor):
...
@@ -218,12 +218,8 @@ class LlavaProcessor(BaseMultiModalProcessor):
image_processor
=
hf_processor
.
image_processor
# type: ignore
image_processor
=
hf_processor
.
image_processor
# type: ignore
hf_inputs
=
image_processor
.
preprocess
(
data
[
'image'
],
hf_inputs
=
image_processor
.
preprocess
(
data
[
'image'
],
return_tensors
=
"pt"
)
return_tensors
=
"pt"
)
is_pixtral
=
isinstance
(
hf_processor
,
PixtralProcessor
)
return
MultiModalKwargs
(
return
MultiModalKwargs
(
**
hf_inputs
)
**
hf_inputs
,
is_pixtral
=
torch
.
tensor
(
is_pixtral
),
)
class
LlavaLikeConfig
(
Protocol
):
class
LlavaLikeConfig
(
Protocol
):
...
...
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