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
87b836ba
Unverified
Commit
87b836ba
authored
Apr 11, 2025
by
Michael Goin
Committed by
GitHub
Apr 11, 2025
Browse files
Bugfix for PixtralHF models without spatial_merge_size (#16513)
Signed-off-by:
mgoin
<
mgoin64@gmail.com
>
parent
56c76c2e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vllm/model_executor/models/pixtral.py
vllm/model_executor/models/pixtral.py
+3
-2
No files found.
vllm/model_executor/models/pixtral.py
View file @
87b836ba
...
...
@@ -926,8 +926,9 @@ class PixtralHFEncoderInfo(VisionEncoderInfo[PixtralVisionConfig]):
return
self
.
vision_config
.
image_size
def
get_patch_size
(
self
)
->
int
:
return
(
self
.
vision_config
.
patch_size
*
self
.
vision_config
.
spatial_merge_size
)
spatial_merge_size
=
getattr
(
self
.
vision_config
,
"spatial_merge_size"
,
1
)
return
(
self
.
vision_config
.
patch_size
*
spatial_merge_size
)
def
get_patch_grid_length
(
self
)
->
int
:
image_size
,
patch_size
=
self
.
get_image_size
(),
self
.
get_patch_size
()
...
...
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