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
437f9162
Unverified
Commit
437f9162
authored
Mar 19, 2025
by
Julien Denize
Committed by
GitHub
Mar 19, 2025
Browse files
[Model] Pixtral: Remove layer instantiation duplication (#15053)
Signed-off-by:
Julien Denize
<
julien.denize@mistral.ai
>
parent
4f065f12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
vllm/model_executor/models/pixtral.py
vllm/model_executor/models/pixtral.py
+0
-9
No files found.
vllm/model_executor/models/pixtral.py
View file @
437f9162
...
...
@@ -365,16 +365,7 @@ class PixtralForConditionalGeneration(nn.Module, SupportsMultiModal,
spatial_merge_size
=
self
.
vision_args
.
spatial_merge_size
,
use_mlp_bias
=
False
,
)
if
self
.
vision_args
.
add_pre_mm_projector_layer_norm
:
self
.
pre_mm_projector_norm
=
RMSNorm
(
self
.
vision_args
.
hidden_size
,
eps
=
1e-5
)
if
self
.
vision_args
.
mm_projector_id
==
PATCH_MERGE
:
self
.
patch_merger
=
PatchMerger
(
vision_encoder_dim
=
self
.
vision_args
.
hidden_size
,
spatial_merge_size
=
self
.
vision_args
.
spatial_merge_size
,
use_mlp_bias
=
False
,
)
self
.
vision_language_adapter
=
VisionLanguageAdapter
(
self
.
vision_args
,
dim
=
config
.
text_config
.
hidden_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