[Test] UT for linear method patch#281
Closed
rjg-lyh wants to merge 1 commit intovllm-project:v0.7.3-devfrom
rjg-lyh:pr-ut-linear
Closed
[Test] UT for linear method patch#281rjg-lyh wants to merge 1 commit intovllm-project:v0.7.3-devfrom rjg-lyh:pr-ut-linear
rjg-lyh wants to merge 1 commit intovllm-project:v0.7.3-devfrom
rjg-lyh:pr-ut-linear
Conversation
Signed-off-by: rjg-lyh <1318825571@qq.com>
Collaborator
Collaborator
Currently, all our unit tests are run on a single NPU. and we now have multiple NPU runners but cannot flexibly allocate them according to test requirements. here is a solution: mark a test as single or multiple to adapt to the runner's filtering, just like the example following: @pytest.mark.multi
@pytest.mark.parametrize(
"model, distributed_executor_backend", [
("Qwen/QwQ-32B", "mp"),
])
def test_models_distributed(
vllm_runner,
example_prompts,
model: str,
distributed_executor_backend: str,
) -> None:
dtype = "half"
max_tokens = 5
with vllm_runner(model,
dtype=dtype,
tensor_parallel_size=2,
distributed_executor_backend=distributed_executor_backend
) as vllm_model:
vllm_model.generate_greedy(example_prompts, max_tokens)and then we will run the multi-npu test case with command |
46 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it?
UT for linear method patch.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
None.