Skip to content

fix: Fix an error related to dummy request when MTP is used - #3146

Merged
Shixiaowei02 merged 6 commits into
NVIDIA:mainfrom
jinyangyuan-nvidia:dev/fix_mtp_dummy_request
Apr 3, 2025
Merged

Shixiaowei02 merged 6 commits into
NVIDIA:mainfrom
jinyangyuan-nvidia:dev/fix_mtp_dummy_request

Conversation

@jinyangyuan-nvidia

Copy link
Copy Markdown
Contributor

The error is fixed by setting max_num_draft_tokens when creating dummy requests.

@jinyangyuan-nvidia

Copy link
Copy Markdown
Contributor Author

/bot run --add-multi-gpu-test

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #687 [ run ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

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

@jinyangyuan-nvidia
jinyangyuan-nvidia force-pushed the dev/fix_mtp_dummy_request branch from b5e5a3d to cee8ad3 Compare March 30, 2025 03:08
@jinyangyuan-nvidia

Copy link
Copy Markdown
Contributor Author

/bot run --add-multi-gpu-test

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #695 [ run ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

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

@jinyangyuan-nvidia

Copy link
Copy Markdown
Contributor Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #698 [ run ] triggered by Bot

@jinyangyuan-nvidia

Copy link
Copy Markdown
Contributor Author

/bot kill

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #700 [ kill ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #698 [ run ] completed with state ABORTED

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #700 [ kill ] completed with state SUCCESS
Successfully killed previous jobs for commit cee8ad3

@Shixiaowei02
Shixiaowei02 force-pushed the dev/fix_mtp_dummy_request branch from cee8ad3 to b6c4e55 Compare March 31, 2025 02:06
@Shixiaowei02

Copy link
Copy Markdown
Collaborator

/bot run --add-multi-gpu-test --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #718 [ run ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

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

@lfr-0531 lfr-0531 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!

@jinyangyuan-nvidia
jinyangyuan-nvidia force-pushed the dev/fix_mtp_dummy_request branch from b6c4e55 to 031c31e Compare March 31, 2025 15:20
@jinyangyuan-nvidia

Copy link
Copy Markdown
Contributor Author

/bot run --add-multi-gpu-test --disable-fail-fast

1 similar comment
@jinyangyuan-nvidia

Copy link
Copy Markdown
Contributor Author

/bot run --add-multi-gpu-test --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #811 [ run ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

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

@jinyangyuan-nvidia
jinyangyuan-nvidia force-pushed the dev/fix_mtp_dummy_request branch from 031c31e to 526f535 Compare April 1, 2025 04:59
@jinyangyuan-nvidia

Copy link
Copy Markdown
Contributor Author

/bot run --add-multi-gpu-test --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #1007 [ kill ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #966 [ run ] completed with state ABORTED

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #1007 [ kill ] completed with state SUCCESS
Successfully killed previous jobs for commit fc215b7

Signed-off-by: Jinyang Yuan <[email protected]>
…_attention_dp_one_mtp[DeepSeek-V3-Lite-fp8]

Signed-off-by: Jinyang Yuan <[email protected]>
…_attention_dp_one_mtp[DeepSeek-V3-Lite-fp8]

Signed-off-by: Jinyang Yuan <[email protected]>
@jinyangyuan-nvidia
jinyangyuan-nvidia force-pushed the dev/fix_mtp_dummy_request branch from fc215b7 to 4f025fe Compare April 2, 2025 15:16
@jinyangyuan-nvidia

Copy link
Copy Markdown
Contributor Author

/bot run --add-multi-gpu-test

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #1029 [ run ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #1029 [ run ] completed with state SUCCESS
/LLM/main/L0_MergeRequest_PR pipeline #793 completed with status: 'SUCCESS'

@Shixiaowei02

Copy link
Copy Markdown
Collaborator

/bot reuse-pipeline

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #1057 [ reuse-pipeline ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #1057 [ reuse-pipeline ] completed with state SUCCESS
Reusing PR_Github #1029 for commit 1e5bd9d

@Shixiaowei02
Shixiaowei02 merged commit 2fdfa39 into NVIDIA:main Apr 3, 2025
@jinyangyuan-nvidia
jinyangyuan-nvidia deleted the dev/fix_mtp_dummy_request branch April 3, 2025 05:35
@chzblych

chzblych commented Apr 6, 2025 •

Copy link
Copy Markdown
Collaborator

@Shixiaowei02 @jinyangyuan-nvidia Could you elaborate on why you increased CPP_TEST_TIMEOUT_OVERRIDDEN to 7200 in this PR? The previous value 3600 has been working well for months.

Or you were trying to roll back pytestTestTimeout from 5400 to 7200?

CC @QiJune

@jinyangyuan-nvidia

Copy link
Copy Markdown
Contributor Author

@Shixiaowei02 @jinyangyuan-nvidia Could you elaborate on why you increased CPP_TEST_TIMEOUT_OVERRIDDEN to 7200 in this PR? The previous value 3600 has been working well for months.

Or you were trying to roll back pytestTestTimeout from 5400 to 7200?

CC @QiJune

IIRC, https://nv/trt-llm-cicd/job/main/job/L0_MergeRequest_PR/582/ (or 576) failed at test_cpp.py::test_multi_gpu_disagg[90] due to timeout error. test_cpp.py::test_multi_gpu_disagg[90] can pass local test and CI after CPP_TEST_TIMEOUT_OVERRIDDEN is changed to 7200 (same as pytestTestTimeout at that time). Maybe 5400 also works since the longest local run takes 5074.16s to finish.

@chzblych

chzblych commented Apr 7, 2025 •

Copy link
Copy Markdown
Collaborator

@Shixiaowei02 @jinyangyuan-nvidia Could you elaborate on why you increased CPP_TEST_TIMEOUT_OVERRIDDEN to 7200 in this PR? The previous value 3600 has been working well for months.
Or you were trying to roll back pytestTestTimeout from 5400 to 7200?
CC @QiJune

IIRC, https://nv/trt-llm-cicd/job/main/job/L0_MergeRequest_PR/582/ (or 576) failed at test_cpp.py::test_multi_gpu_disagg[90] due to timeout error. test_cpp.py::test_multi_gpu_disagg[90] can pass local test and CI after CPP_TEST_TIMEOUT_OVERRIDDEN is changed to 7200 (same as pytestTestTimeout at that time). Maybe 5400 also works since the longest local run takes 5074.16s to finish.

In this case, we should roll back pytestTestTimeout from 5400 to 7200, rather than changing the CPP_TEST_TIMEOUT_OVERRIDDEN value.

@QiJune This is another case that some CPP tests execution time may be at the margin and vary significantly.

@jinyangyuan-nvidia

Copy link
Copy Markdown
Contributor Author

Do you mean that pytestTestTimeout should be able to control the timeout of test_cpp.py::test_multi_gpu_disagg[90]? If yes, then maybe this is the issue that needs to be fixed.

As shown in 031c31e#diff-3efa8a6083a90a6f716e4d4bc81710c8104f8bfc5ae642e9fef44df8061e6b7dR689, pytestTestTimeout was 7200 at the time test_cpp.py::test_multi_gpu_disagg[90] failed in the CI. This test failed due to timeout error after 3600s because the timeout was controlled by CPP_TEST_TIMEOUT_OVERRIDDEN instead.

@chzblych

chzblych commented Apr 7, 2025

Copy link
Copy Markdown
Collaborator

Do you mean that pytestTestTimeout should be able to control the timeout of test_cpp.py::test_multi_gpu_disagg[90]? If yes, then maybe this is the issue that needs to be fixed.

As shown in 031c31e#diff-3efa8a6083a90a6f716e4d4bc81710c8104f8bfc5ae642e9fef44df8061e6b7dR689, pytestTestTimeout was 7200 at the time test_cpp.py::test_multi_gpu_disagg[90] failed in the CI. This test failed due to timeout error after 3600s because the timeout was controlled by CPP_TEST_TIMEOUT_OVERRIDDEN instead.

@jinyangyuan-nvidia Thanks for the info! Then modifying CPP_TEST_TIMEOUT_OVERRIDDEN to 7200 sounds correct. However, as the previous value 3600 has been working well for months, do the code changes in this PR impact the timeout threshold?

CPP_TEST_TIMEOUT_OVERRIDDEN is only used for controlling the sub-command in the CPP test execution. It doesn't make sense to have such a large threshold even if considering the env variability.

Background on why the timeout threshold is important. First, we need a threshold to detect possible hang as early as possible. Second, a large timeout threshold would make the CI hardware utilization become worse if any hang issue actually happens. We also don't want a test running too long in the pipeline, so that we could keep the timeout threshold as low as possible. It's more important for the multi-GPU tests since we only have very few multi-GPU machines in the CI pipeline.

@jinyangyuan-nvidia

Copy link
Copy Markdown
Contributor Author

Hi @chzblych, thanks for the detailed explanation. I think the code changes in this PR do not impact the performance much. Maybe the timeout in the CI of this PR is caused by hardware performance instability.

@Shixiaowei02 has suggested me to test three commits prior to this PR to investigate the timeout error. In local tests, commits 82edd903, 644a01cb, and 45134d70 finished in 5074.16s, 3489.76s, and 3544.64s, respectively.

To ensure that the timeout error does not occur unexpectedly, CPP_TEST_TIMEOUT_OVERRIDDEN is changed in this PR. Maybe we can change it back to 3600 and let developers to rerun multi-GPU tests if timeout error occurs.

wu1du2 pushed a commit to wu1du2/TensorRT-LLM that referenced this pull request May 11, 2025
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.

6 participants