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
c401c64b
Unverified
Commit
c401c64b
authored
Jul 23, 2025
by
Cyrus Leung
Committed by
GitHub
Jul 22, 2025
Browse files
[CI/Build] Fix model executor tests (#21387)
Signed-off-by:
DarkLight1337
<
tlleungac@connect.ust.hk
>
parent
b77c7d32
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
.buildkite/test-pipeline.yaml
.buildkite/test-pipeline.yaml
+0
-1
tests/model_executor/test_model_load_with_params.py
tests/model_executor/test_model_load_with_params.py
+9
-4
No files found.
.buildkite/test-pipeline.yaml
View file @
c401c64b
...
@@ -434,7 +434,6 @@ steps:
...
@@ -434,7 +434,6 @@ steps:
-
label
:
Model Executor Test
-
label
:
Model Executor Test
mirror_hardwares
:
[
amdexperimental
,
amdproduction
]
mirror_hardwares
:
[
amdexperimental
,
amdproduction
]
soft_fail
:
true
source_file_dependencies
:
source_file_dependencies
:
-
vllm/model_executor
-
vllm/model_executor
-
tests/model_executor
-
tests/model_executor
...
...
tests/model_executor/test_model_load_with_params.py
View file @
c401c64b
...
@@ -5,7 +5,8 @@ import os
...
@@ -5,7 +5,8 @@ import os
import
pytest
import
pytest
from
vllm.model_executor.layers.pooler
import
CLSPool
,
MeanPool
,
PoolingType
from
vllm.model_executor.layers.pooler
import
(
CLSPool
,
DispatchPooler
,
MeanPool
,
PoolingType
)
from
vllm.model_executor.models.bert
import
BertEmbeddingModel
from
vllm.model_executor.models.bert
import
BertEmbeddingModel
from
vllm.model_executor.models.roberta
import
RobertaEmbeddingModel
from
vllm.model_executor.models.roberta
import
RobertaEmbeddingModel
from
vllm.platforms
import
current_platform
from
vllm.platforms
import
current_platform
...
@@ -49,7 +50,8 @@ def test_model_loading_with_params(vllm_runner):
...
@@ -49,7 +50,8 @@ def test_model_loading_with_params(vllm_runner):
def
check_model
(
model
):
def
check_model
(
model
):
assert
isinstance
(
model
,
BertEmbeddingModel
)
assert
isinstance
(
model
,
BertEmbeddingModel
)
assert
isinstance
(
model
.
pooler
.
pooling
,
CLSPool
)
assert
isinstance
(
pooler
:
=
model
.
pooler
,
DispatchPooler
)
assert
isinstance
(
pooler
.
poolers_by_task
[
"embed"
].
pooling
,
CLSPool
)
vllm_model
.
apply_model
(
check_model
)
vllm_model
.
apply_model
(
check_model
)
...
@@ -87,7 +89,9 @@ def test_roberta_model_loading_with_params(vllm_runner):
...
@@ -87,7 +89,9 @@ def test_roberta_model_loading_with_params(vllm_runner):
def
check_model
(
model
):
def
check_model
(
model
):
assert
isinstance
(
model
,
RobertaEmbeddingModel
)
assert
isinstance
(
model
,
RobertaEmbeddingModel
)
assert
isinstance
(
model
.
pooler
.
pooling
,
MeanPool
)
assert
isinstance
(
pooler
:
=
model
.
pooler
,
DispatchPooler
)
assert
isinstance
(
pooler
.
poolers_by_task
[
"embed"
].
pooling
,
MeanPool
)
vllm_model
.
apply_model
(
check_model
)
vllm_model
.
apply_model
(
check_model
)
...
@@ -114,7 +118,8 @@ def test_facebook_roberta_model_loading_with_params(vllm_runner):
...
@@ -114,7 +118,8 @@ def test_facebook_roberta_model_loading_with_params(vllm_runner):
def
check_model
(
model
):
def
check_model
(
model
):
assert
isinstance
(
model
,
RobertaEmbeddingModel
)
assert
isinstance
(
model
,
RobertaEmbeddingModel
)
assert
not
hasattr
(
model
,
"lm_head"
)
assert
not
hasattr
(
model
,
"lm_head"
)
assert
isinstance
(
model
.
pooler
.
pooling
,
CLSPool
)
assert
isinstance
(
pooler
:
=
model
.
pooler
,
DispatchPooler
)
assert
isinstance
(
pooler
.
poolers_by_task
[
"embed"
].
pooling
,
CLSPool
)
vllm_model
.
apply_model
(
check_model
)
vllm_model
.
apply_model
(
check_model
)
...
...
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