Skip to content

Conversation

yechank-nvidia
Copy link
Collaborator

Description

This PR adds mm_data element so that we could transfer easily mm_related_data.
Also, refactor the Qwen2/2.5-VL & HyperCLOVAX-Vision accordingly.
Especially, moving Qwen2/2.5-VL's encoder into the LLM.

Test Coverage

GitHub Bot Help

/bot [-h] ['run', 'kill', 'skip', 'reuse-pipeline'] ...

Provide a user friendly way for developers to interact with a Jenkins server.

Run /bot [-h|--help] to print this help message.

See details below for each supported subcommand.

run [--disable-fail-fast --skip-test --stage-list "A10-1, xxx" --gpu-type "A30, H100_PCIe" --add-multi-gpu-test --only-multi-gpu-test --disable-multi-gpu-test --post-merge --extra-stage "H100_PCIe-[Post-Merge]-1, xxx"]

Launch build/test pipelines. All previously running jobs will be killed.

--disable-fail-fast (OPTIONAL) : Disable fail fast on build/tests/infra failures.

--skip-test (OPTIONAL) : Skip all test stages, but still run build stages, package stages and sanity check stages. Note: Does NOT update GitHub check status.

--stage-list "A10-1, xxx" (OPTIONAL) : Only run the specified test stages. Examples: "A10-1, xxx". Note: Does NOT update GitHub check status.

--gpu-type "A30, H100_PCIe" (OPTIONAL) : Only run the test stages on the specified GPU types. Examples: "A30, H100_PCIe". Note: Does NOT update GitHub check status.

--only-multi-gpu-test (OPTIONAL) : Only run the multi-GPU tests. Note: Does NOT update GitHub check status.

--disable-multi-gpu-test (OPTIONAL) : Disable the multi-GPU tests. Note: Does NOT update GitHub check status.

--add-multi-gpu-test (OPTIONAL) : Force run the multi-GPU tests. Will also run L0 pre-merge pipeline.

--post-merge (OPTIONAL) : Run the L0 post-merge pipeline instead of the ordinary L0 pre-merge pipeline.

--extra-stage "H100_PCIe-[Post-Merge]-1, xxx" (OPTIONAL) : Run the ordinary L0 pre-merge pipeline and specified test stages. Examples: --extra-stage "H100_PCIe-[Post-Merge]-1, xxx".

For guidance on mapping tests to stage names, see docs/source/reference/ci-overview.md.

kill

kill

Kill all running builds associated with pull request.

skip

skip --comment COMMENT

Skip testing for latest commit on pull request. --comment "Reason for skipping build/test" is required. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.

reuse-pipeline

reuse-pipeline

Reuse a previous pipeline to validate current commit. This action will also kill all currently running builds associated with the pull request. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.

@yechank-nvidia yechank-nvidia requested review from a team as code owners June 26, 2025 15:02
@yechank-nvidia yechank-nvidia self-assigned this Jun 26, 2025
@yechank-nvidia yechank-nvidia changed the title feat: transfer mm_data and refactor HyperCLOVAX & Qwen2/2.5-VL [DRAFT] feat: transfer mm_data and refactor HyperCLOVAX & Qwen2/2.5-VL Jun 26, 2025
@yechank-nvidia yechank-nvidia marked this pull request as draft June 26, 2025 15:10
@yechank-nvidia yechank-nvidia changed the title [DRAFT] feat: transfer mm_data and refactor HyperCLOVAX & Qwen2/2.5-VL [DRAFT] feat: transfer multimodal_data and refactor HyperCLOVAX & Qwen2/2.5-VL Jun 30, 2025
@yechank-nvidia
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #10815 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #10815 [ run ] completed with state FAILURE
/LLM/main/L0_MergeRequest_PR pipeline #7989 completed with status: 'FAILURE'

@yechank-nvidia yechank-nvidia changed the title [DRAFT] feat: transfer multimodal_data and refactor HyperCLOVAX & Qwen2/2.5-VL feat: transfer multimodal_data and refactor HyperCLOVAX & Qwen2/2.5-VL Jul 3, 2025
@yechank-nvidia
Copy link
Collaborator Author

/bot run

@yechank-nvidia yechank-nvidia marked this pull request as ready for review July 3, 2025 11:35
@tensorrt-cicd
Copy link
Collaborator

PR_Github #10820 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #10820 [ run ] completed with state SUCCESS
/LLM/main/L0_MergeRequest_PR pipeline #7994 completed with status: 'FAILURE'

@yechank-nvidia
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #10842 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #10842 [ run ] completed with state FAILURE
/LLM/main/L0_MergeRequest_PR pipeline #8011 completed with status: 'FAILURE'

Copy link
Collaborator

@symphonylyh symphonylyh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yechank-nvidia
Copy link
Collaborator Author

/bot run

@yechank-nvidia
Copy link
Collaborator Author

/bot kill

@tensorrt-cicd
Copy link
Collaborator

PR_Github #10949 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #10950 [ kill ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #10949 [ run ] completed with state ABORTED

@yechank-nvidia
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #11166 [ run ] triggered by Bot

@yechank-nvidia
Copy link
Collaborator Author

/bot kill

Signed-off-by: yechank <[email protected]>
@tensorrt-cicd
Copy link
Collaborator

PR_Github #11170 [ kill ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #11166 [ run ] completed with state ABORTED

@tensorrt-cicd
Copy link
Collaborator

PR_Github #11170 [ kill ] completed with state SUCCESS
Successfully killed previous jobs for commit dcf6ab1

Signed-off-by: yechank <[email protected]>
@yechank-nvidia
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #11173 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #11173 [ run ] completed with state SUCCESS
/LLM/main/L0_MergeRequest_PR pipeline #8264 completed with status: 'SUCCESS'
Pipeline passed with automatic retried tests. Check the rerun report for details.

@symphonylyh symphonylyh merged commit 5bc3a15 into NVIDIA:main Jul 8, 2025
3 checks passed
if len(multimodal_params) > 0:
if not DISAGG:
mm_embeds = self.mm_encoder.forward(
multimodal_params[:num_context_requests])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @yechank-nvidia, here if some of the ctx requests do not have multimodal items (non-mm request), would it crash?

Copy link
Collaborator Author

@yechank-nvidia yechank-nvidia Jul 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will not. If there is no mm_data found, I retuned input_ids directly so that the len(multimodal_params) = 0, in this case. So that, it skips calling Vision Encoder's forward() and do only LLM-forward.

extra_processed_inputs is None, is multimodal_params is None here

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I mean in one batch of all context requests, len(multimodal_parms) maybe less than num_context_requests right? (as some of the ctx request may pure text prompts)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Then naively truncating to num_context_requests is not the right solution. Maybe in this case, it will crash. I just assumed there will be case of all text_prompts or all multimodal_prompts.

Let me think how I could handle this.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if it is a common or meaningful scenario though...

zhou-yuxin pushed a commit to zhou-yuxin/TensorRT-LLM that referenced this pull request Jul 15, 2025
…d refactor HyperCLOVAX & Qwen2/2.5-VL (NVIDIA#5522)

Signed-off-by: yechank <[email protected]>
Signed-off-by: Yuxin <[email protected]>
@Aze1999
Copy link

Aze1999 commented Jul 24, 2025

Hi, may I ask whether this means Qwen2.5-VL will be supported or have already been? Thanks for your patience!

@yechank-nvidia
Copy link
Collaborator Author

Hi @Aze1999, you can query either text-only prompts or multimodal-only prompts(meaning has image or video contents). It is fine unless you query mixture of these two.

I will file a PR to resolve this issue later!

@Aze1999
Copy link

Aze1999 commented Jul 24, 2025

Hi @yechank-nvidia , big thanks for the fast response! Looking forward to the upcoming PR. Meanwhile, I will try to learn what I can help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants