Skip to content

Commit c992ea3

Browse files
Some style changes
- Improved formatting around - made is_pooling_model a @Property in ModelConfig Signed-off-by: Christian Pinto <christian.pinto@ibm.com>
1 parent 5fe55fd commit c992ea3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/models/multimodal/pooling/test_prithvi_mae.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ def _run_test(
3333
skip_tokenizer_init=True) as vllm_model:
3434
vllm_model.encode(prompt)
3535

36+
3637
MODELS = ["christian-pinto/Prithvi-EO-2.0-300M-TL-VLLM"]
3738

39+
3840
@pytest.mark.parametrize("model", MODELS)
3941
def test_models_image(
4042
hf_runner,

vllm/config.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,8 +642,6 @@ def __post_init__(self) -> None:
642642
self.original_max_model_len = self.max_model_len
643643
self.max_model_len = self.get_and_verify_max_len(self.max_model_len)
644644
self.multimodal_config = self._init_multimodal_config()
645-
self.is_pooling_model = self.registry.is_pooling_model(
646-
self.architectures)
647645
self.model_supports_multimodal_raw_input = (
648646
self._init_model_supports_multimodal_raw_input())
649647
if not self.skip_tokenizer_init:
@@ -1516,6 +1514,10 @@ def uses_mrope(self) -> bool:
15161514
@property
15171515
def is_multimodal_model(self) -> bool:
15181516
return self.multimodal_config is not None
1517+
1518+
@property
1519+
def is_pooling_model(self) -> bool:
1520+
return self.registry.is_pooling_model(self.architectures)
15191521

15201522
@property
15211523
def is_cross_encoder(self) -> bool:

0 commit comments

Comments
 (0)