Skip to content

[fix] Fix Llama4 allgather error due to None tensor - #4511

Merged
jinyangyuan-nvidia merged 4 commits into
NVIDIA:release/0.20from
jinyangyuan-nvidia:dev/fix_llama_adp
May 24, 2025
Merged

[fix] Fix Llama4 allgather error due to None tensor#4511
jinyangyuan-nvidia merged 4 commits into
NVIDIA:release/0.20from
jinyangyuan-nvidia:dev/fix_llama_adp

Conversation

@jinyangyuan-nvidia

Copy link
Copy Markdown
Collaborator

Fix a bug of Llama4 when enabling attention DP (introduced by #3439). None tensors are handled in a more general way. The test of attention DP for LLama4 is also added to unittest (waived by now due to an existing issue). Local tests show that the error caused by None tensor has been solved.

@jinyangyuan-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #5944 [ run ] triggered by Bot

Comment thread tensorrt_llm/_torch/modules/fused_moe.py Outdated
Comment thread tensorrt_llm/_torch/modules/fused_moe.py Outdated
@jinyangyuan-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot kill

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #5952 [ kill ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #5944 [ run ] completed with state ABORTED

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #5952 [ kill ] completed with state SUCCESS
Successfully killed previous jobs for commit f5b1065

@jinyangyuan-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #5970 [ run ] triggered by Bot

@jinyangyuan-nvidia
jinyangyuan-nvidia changed the base branch from main to release/0.20 May 21, 2025 08:24
@jinyangyuan-nvidia
jinyangyuan-nvidia requested review from a team as code owners May 21, 2025 08:24
@jinyangyuan-nvidia
jinyangyuan-nvidia removed the request for review from a team May 21, 2025 08:48
@jinyangyuan-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #5993 [ run ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #5970 [ run ] completed with state ABORTED

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #5993 [ run ] completed with state SUCCESS
/LLM/release-0.20/L0_MergeRequest_PR pipeline #16 completed with status: 'FAILURE'

@jinyangyuan-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #6020 [ run ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #6020 [ run ] completed with state FAILURE
/LLM/release-0.20/L0_MergeRequest_PR pipeline #17 completed with status: 'FAILURE'

@jinyangyuan-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #6030 [ run ] triggered by Bot

@djns99 djns99 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, one minor nit

Comment thread tensorrt_llm/_torch/distributed/ops.py Outdated
@jinyangyuan-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #6240 [ run ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #6192 [ run ] completed with state ABORTED
/LLM/release-0.20/L0_MergeRequest_PR pipeline #49 completed with status: 'FAILURE'

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #6240 [ run ] completed with state SUCCESS
/LLM/release-0.20/L0_MergeRequest_PR pipeline #52 completed with status: 'FAILURE'

@jinyangyuan-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #6273 [ run ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #6273 [ run ] completed with state SUCCESS
/LLM/release-0.20/L0_MergeRequest_PR pipeline #56 completed with status: 'FAILURE'

Signed-off-by: Jinyang Yuan <154768711+jinyangyuan-nvidia@users.noreply.github.com>
Signed-off-by: Jinyang Yuan <154768711+jinyangyuan-nvidia@users.noreply.github.com>
Signed-off-by: Jinyang Yuan <154768711+jinyangyuan-nvidia@users.noreply.github.com>
Signed-off-by: Jinyang Yuan <154768711+jinyangyuan-nvidia@users.noreply.github.com>
@jinyangyuan-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot run

@jinyangyuan-nvidia
jinyangyuan-nvidia enabled auto-merge (squash) May 24, 2025 01:12
@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #6342 [ run ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #6342 [ run ] completed with state SUCCESS
/LLM/release-0.20/L0_MergeRequest_PR pipeline #63 completed with status: 'FAILURE'

@jinyangyuan-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #6353 [ run ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #6353 [ run ] completed with state ABORTED

@jinyangyuan-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #6354 [ run ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #6354 [ run ] completed with state SUCCESS
/LLM/release-0.20/L0_MergeRequest_PR pipeline #65 completed with status: 'SUCCESS'

@jinyangyuan-nvidia
jinyangyuan-nvidia merged commit f9a9a1a into NVIDIA:release/0.20 May 24, 2025
@jinyangyuan-nvidia
jinyangyuan-nvidia deleted the dev/fix_llama_adp branch May 24, 2025 11:52
amirkl94 pushed a commit to amirkl94/TensorRT-LLM that referenced this pull request May 28, 2025
* [fix] Fix Llama4 allgather error due to None tensor

Signed-off-by: Jinyang Yuan <154768711+jinyangyuan-nvidia@users.noreply.github.com>

* Refactor modifications

Signed-off-by: Jinyang Yuan <154768711+jinyangyuan-nvidia@users.noreply.github.com>

* Minor modification

Signed-off-by: Jinyang Yuan <154768711+jinyangyuan-nvidia@users.noreply.github.com>

* Minor fix

Signed-off-by: Jinyang Yuan <154768711+jinyangyuan-nvidia@users.noreply.github.com>

---------

Signed-off-by: Jinyang Yuan <154768711+jinyangyuan-nvidia@users.noreply.github.com>
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.

4 participants