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
231c2c63
Unverified
Commit
231c2c63
authored
Sep 23, 2025
by
Isotr0py
Committed by
GitHub
Sep 23, 2025
Browse files
[Bugfix] Fix idefics3 `tie_word_embeddings` (#25454)
Signed-off-by:
Isotr0py
<
mozf@mail2.sysu.edu.cn
>
parent
4322c553
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/model_executor/models/idefics3.py
vllm/model_executor/models/idefics3.py
+1
-1
No files found.
vllm/model_executor/models/idefics3.py
View file @
231c2c63
...
...
@@ -608,7 +608,7 @@ class Idefics3ForConditionalGeneration(nn.Module, SupportsMultiModal,
prefix
=
maybe_prefix
(
prefix
,
"lm_head"
),
)
if
self
.
config
.
text_config
.
tie_word_embeddings
:
self
.
lm_head
.
weight
=
self
.
model
.
text_model
.
wte
.
weight
self
.
lm_head
.
weight
=
self
.
model
.
text_model
.
embed_tokens
.
weight
self
.
logits_processor
=
LogitsProcessor
(
config
.
text_config
.
vocab_size
)
def
_parse_and_validate_image_input
(
...
...
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