[Bugfix][MRV2] Support encoder timing stats in model runner V2 - #50020
Conversation
|
cc @Isotr0py |
312a368 to
f452563
Compare
|
This pull request has merge conflicts that must be resolved before it can be |
| self, mm_kwargs: list[tuple[str, MultiModalKwargsItem]] | ||
| self, | ||
| mm_kwargs: list[tuple[str, MultiModalKwargsItem]], | ||
| request_ids: Collection[str] | None = None, | ||
| ) -> list[torch.Tensor]: |
There was a problem hiding this comment.
I would like to keep execute_mm_encoder only accept mm_kwargs to make sure the function is clean enough. Perhaps you can implement a context manager for timing instead of patching the function:
vllm/vllm/v1/worker/gpu_model_runner.py
Lines 7807 to 7849 in 7794b1e
There was a problem hiding this comment.
Good point. Reverted execute_mm_encoder to only accept mm_kwargs, and moved the timing into a timed_encoder_operation context manager on EncoderRunner, mirroring the V1 pattern you linked. Callers now wrap the encoder call with it. PTAL, thanks!
f452563 to
4cd9ef7
Compare
|
Hi @Isotr0py could you help trigger the buildkite ci? It seems to be inactive for a while. Thanks! |
|
/ci run |
|
✅ Triggered Buildkite CI #82663 for commit |
|
Thanks! |
|
/ci run |
|
✅ Triggered Buildkite CI #82774 for commit |
|
This pull request has merge conflicts that must be resolved before it can be |
Signed-off-by: Guan-Ming (Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
Signed-off-by: Guan-Ming (Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
Signed-off-by: Guan-Ming (Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
Head branch was pushed to by a user without write access
dbf9f47 to
e9b51dc
Compare
|
/ci run |
|
✅ Triggered Buildkite CI #82781 for commit |
|
Hi @Isotr0py I just pushed a commit to resolve the conflict. Could you help enable merge again? Thanks! |
|
/ci run |
|
✅ Triggered Buildkite CI #82983 for commit |
|
/ci run |
|
✅ Triggered Buildkite CI #83261 for commit |
|
/ci run |
|
Hi @Isotr0py just a gentle ping. I pushed a commit to resolve the conflict. Could you help enable merge again? Thanks! |
|
✅ Triggered Buildkite CI #83364 for commit |
|
Thanks! |
…project#50020) Signed-off-by: Guan-Ming (Wesley) Chiu <105915352+guan404ming@users.noreply.github.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Purpose
vllm bench mm-processorcrashes on model runner V2:get_encoder_timing_statsonly exists in V1EncoderRunner, gated onenable_mm_processor_stats;EncoderTimingStatsmoves toworker/utils.pyfor sharingTest Plan
pytest tests/v1/worker/test_encoder_runner.py— adds registry accumulate/clear testvllm bench mm-processor --model Qwen/Qwen2.5-VL-3B-Instruct --dataset-name random-mm --num-prompts 10on Modal L4 (MRV2 default)Test Result
AttributeError: 'GPUModelRunner' object has no attribute 'get_encoder_timing_stats'AI assistance was used for this change (Claude); every line was reviewed by the submitter.