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
e53b1350
Unverified
Commit
e53b1350
authored
Mar 17, 2025
by
Cyrus Leung
Committed by
GitHub
Mar 16, 2025
Browse files
[Bugfix] Explicitly disable Phi-4-multimodal in V1 (#14889)
Signed-off-by:
DarkLight1337
<
tlleungac@connect.ust.hk
>
parent
d30aa7e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vllm/model_executor/models/phi4mm.py
vllm/model_executor/models/phi4mm.py
+3
-2
No files found.
vllm/model_executor/models/phi4mm.py
View file @
e53b1350
...
...
@@ -33,7 +33,7 @@ from vllm.sequence import IntermediateTensors, SequenceData
from
vllm.transformers_utils.tokenizer
import
cached_tokenizer_from_config
from
.idefics2_vision_model
import
Idefics2VisionTransformer
from
.interfaces
import
SupportsLoRA
,
SupportsMultiModal
from
.interfaces
import
SupportsLoRA
,
SupportsMultiModal
,
SupportsV0Only
from
.phi4mm_audio
import
AudioEmbedding
from
.utils
import
AutoWeightsLoader
,
WeightsMapper
,
maybe_prefix
...
...
@@ -1433,7 +1433,8 @@ def cat_with_pad(tensors, dim, padding_value=0):
"image"
,
get_max_phi4mm_image_tokens
)
@
INPUT_REGISTRY
.
register_dummy_data
(
dummy_data_for_phi4mm
)
@
INPUT_REGISTRY
.
register_input_processor
(
input_processor_for_phi4mm
)
class
Phi4MMForCausalLM
(
nn
.
Module
,
SupportsLoRA
,
SupportsMultiModal
):
class
Phi4MMForCausalLM
(
nn
.
Module
,
SupportsLoRA
,
SupportsMultiModal
,
SupportsV0Only
):
"""
Implements the Phi-4-multimodal-instruct model in vLLM.
"""
...
...
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