Skip to content

Conversation

Funatiq
Copy link
Collaborator

@Funatiq Funatiq commented Jun 18, 2025

Description

Remove DraftBuffers class and integrate components into DecoderInputBuffers and DecoderOutputBuffers.

Please see commit messages for details.

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.

@Funatiq Funatiq changed the title refactor: Speculative decoding buffers 2 refactor: Speculative decoding buffers part 2 Jun 18, 2025
@Funatiq Funatiq requested a review from yweng0828 June 18, 2025 06:59
@Funatiq
Copy link
Collaborator Author

Funatiq commented Jun 18, 2025

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #9356 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

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

@Funatiq Funatiq force-pushed the dev/refactor_spec_decode_buffers_2 branch from ffee1b4 to 702261d Compare June 19, 2025 12:19
@Funatiq
Copy link
Collaborator Author

Funatiq commented Jun 19, 2025

/bot run --only-multi-gpu-test

@tensorrt-cicd
Copy link
Collaborator

PR_Github #9512 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #9512 [ run ] completed with state SUCCESS
/LLM/main/L0_MergeRequest_PR pipeline #6978 (Partly Tested) completed with status: 'FAILURE'

@Funatiq
Copy link
Collaborator Author

Funatiq commented Jun 19, 2025

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

@tensorrt-cicd
Copy link
Collaborator

PR_Github #9541 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #9541 [ run ] completed with state SUCCESS
/LLM/main/L0_MergeRequest_PR pipeline #7001 (Partly Tested) completed with status: 'SUCCESS'
Pipeline passed with automatic retried tests. Check the rerun report for details.

@Funatiq
Copy link
Collaborator Author

Funatiq commented Jun 20, 2025

/bot run

@Funatiq Funatiq marked this pull request as ready for review June 20, 2025 07:03
@Funatiq Funatiq requested a review from a team as a code owner June 20, 2025 07:03
@Funatiq Funatiq requested review from schetlur-nv and dcampora and removed request for schetlur-nv June 20, 2025 07:03
@tensorrt-cicd
Copy link
Collaborator

PR_Github #9550 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

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

@Funatiq
Copy link
Collaborator Author

Funatiq commented Jun 20, 2025

/bot run --disable-fail-fast

@tensorrt-cicd
Copy link
Collaborator

PR_Github #9556 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

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

@Funatiq
Copy link
Collaborator Author

Funatiq commented Jun 21, 2025

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #9571 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

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

@Funatiq Funatiq force-pushed the dev/refactor_spec_decode_buffers_2 branch from 702261d to 2fe91ba Compare June 24, 2025 08:02
@Funatiq
Copy link
Collaborator Author

Funatiq commented Jun 24, 2025

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #9659 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

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

@tensorrt-cicd
Copy link
Collaborator

PR_Github #9700 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

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

@Funatiq Funatiq force-pushed the dev/refactor_spec_decode_buffers_2 branch from 3071315 to 6793077 Compare June 24, 2025 14:09
@Funatiq
Copy link
Collaborator Author

Funatiq commented Jun 24, 2025

/bot run --disable-fail-fast

@tensorrt-cicd
Copy link
Collaborator

PR_Github #9720 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

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

@Funatiq
Copy link
Collaborator Author

Funatiq commented Jun 24, 2025

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #9742 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

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

Funatiq added 4 commits June 25, 2025 08:13
- Introduced `setupMedusaLogits` method in `DecoderInputBuffers` to initialize logits for speculative decoding.
- Updated `HandleContextLogits`, `HandleGenerationLogits` and `MakeDecodingBatchInputOutput` to utilize the new Medusa logits structure.
- Removed draft logits handling from `DraftBuffers`, streamlining the management of logits.

Signed-off-by: Robin Kobus <[email protected]>
- Removed indirect references to device buffers in favor of methods from `DecoderState`, streamlining buffer management.
- Updated `DecoderStepAsyncSend` to utilize `DecoderState` for managing draft token buffers, enhancing clarity and maintainability.
- Adjusted related functions and Python bindings to reflect these changes, ensuring compatibility with existing interfaces.

These modifications improve the organization of the decoding process within the batch manager.

Signed-off-by: Robin Kobus <[email protected]>
- Introduced `setupSpeculativeDecoding` method in `DecoderOutputBuffers` to streamline speculative decoding setup.
- Removed `DraftBuffers` from `DecoderBuffers`, simplifying buffer management and enhancing clarity.
- Updated `UpdateDecoderBuffers` to reflect changes in buffer handling, ensuring compatibility with the new structure.
- Adjusted `TrtGptModelInflightBatching` to utilize the updated `DecoderOutputBuffers`.

These changes improve the organization and maintainability of the decoding process within the batch manager.

Signed-off-by: Robin Kobus <[email protected]>
@Funatiq Funatiq force-pushed the dev/refactor_spec_decode_buffers_2 branch from 6793077 to 98f99f2 Compare June 25, 2025 06:13
@Funatiq
Copy link
Collaborator Author

Funatiq commented Jun 25, 2025

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #9822 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

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

@dcampora dcampora merged commit a8141a4 into NVIDIA:main Jun 27, 2025
3 checks passed
@Funatiq Funatiq deleted the dev/refactor_spec_decode_buffers_2 branch June 30, 2025 15:00
Shunkangz pushed a commit to Shunkangz/TensorRT-LLM that referenced this pull request Jul 2, 2025
dominicshanshan pushed a commit to dominicshanshan/TensorRT-LLM that referenced this pull request Jul 9, 2025
dominicshanshan pushed a commit to dominicshanshan/TensorRT-LLM that referenced this pull request Jul 10, 2025
dominicshanshan pushed a commit to dominicshanshan/TensorRT-LLM that referenced this pull request Jul 10, 2025
dominicshanshan pushed a commit to dominicshanshan/TensorRT-LLM that referenced this pull request Jul 10, 2025
dominicshanshan pushed a commit to dominicshanshan/TensorRT-LLM that referenced this pull request Jul 10, 2025
dominicshanshan pushed a commit to dominicshanshan/TensorRT-LLM that referenced this pull request Jul 11, 2025
dominicshanshan pushed a commit to dominicshanshan/TensorRT-LLM that referenced this pull request Jul 11, 2025
dominicshanshan pushed a commit to dominicshanshan/TensorRT-LLM that referenced this pull request Jul 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.

4 participants