-
Notifications
You must be signed in to change notification settings - Fork 484
[CI] Minor fix to multistream_overlap_shared_expert
test
#3157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
from tests.e2e.model_utils import check_outputs_equal | ||
|
||
MODELS = [ | ||
"Qwen/Qwen3-0.6B", | ||
"deepseek-ai/DeepSeek-V2-Lite", | ||
] | ||
|
||
|
||
|
@@ -39,15 +39,19 @@ def test_models_with_multistream_overlap_shared_expert( | |
max_tokens: int, | ||
) -> None: | ||
prompts = [ | ||
"Hello, my name is", "The president of the United States is", | ||
"The capital of France is", "The future of AI is" | ||
"Hello, my name is", | ||
"The president of the United States is", | ||
"The capital of France is", | ||
"The future of AI is", | ||
] | ||
|
||
sampling_params = SamplingParams(max_tokens=max_tokens, temperature=0.0) | ||
with VllmRunner( | ||
model, | ||
max_model_len=1024, | ||
enforce_eager=True, | ||
data_parallel_size=2, | ||
enable_expert_parallel=True, | ||
Comment on lines
+53
to
+54
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These parameters are duplicated across the three To improve robustness, I recommend refactoring to remove the duplication. You can define a dictionary with the common parameters and reuse it for each Example: common_args = {
"model": model,
"max_model_len": 1024,
"data_parallel_size": 2,
"enable_expert_parallel": True,
}
with VllmRunner(
**common_args,
enforce_eager=True,
additional_config={
"multistream_overlap_shared_expert": True,
},
) as runner:
# ...
with VllmRunner(
**common_args,
enforce_eager=False,
additional_config={
"multistream_overlap_shared_expert": True,
},
) as runner:
# ...
with VllmRunner(**common_args, enforce_eager=True) as runner:
# ... |
||
additional_config={ | ||
"multistream_overlap_shared_expert": True, | ||
}, | ||
|
@@ -59,6 +63,8 @@ def test_models_with_multistream_overlap_shared_expert( | |
model, | ||
max_model_len=1024, | ||
enforce_eager=False, | ||
data_parallel_size=2, | ||
enable_expert_parallel=True, | ||
additional_config={ | ||
"multistream_overlap_shared_expert": True, | ||
}, | ||
|
@@ -70,6 +76,8 @@ def test_models_with_multistream_overlap_shared_expert( | |
model, | ||
max_model_len=1024, | ||
enforce_eager=True, | ||
data_parallel_size=2, | ||
enable_expert_parallel=True, | ||
) as runner: | ||
vllm_eager_outputs = runner.model.generate(prompts, sampling_params) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dp works in this case?