Skip to content

[None] Add sink/sliding window support for Triton - #77

Merged
nvchenghaoz merged 4 commits into
feat/ad-2025-07-07from
chenghao/triton-backend-0708
Jul 16, 2025
Merged

[None] Add sink/sliding window support for Triton#77
nvchenghaoz merged 4 commits into
feat/ad-2025-07-07from
chenghao/triton-backend-0708

Conversation

@nvchenghaoz

Copy link
Copy Markdown

Description

This PR adds the sliding window and attention sink feature for triton backend. Also update the attention interface for these new parameters. Update tests accordingly.

Test Coverage

Update the existing test. Will add the test after the torch backend PR is merged.

Signed-off-by: nvchenghaoz <211069071+nvchenghaoz@users.noreply.github.com>
@nvchenghaoz nvchenghaoz self-assigned this Jul 9, 2025
Comment thread tensorrt_llm/_torch/auto_deploy/custom_ops/torch_attention.py
Comment thread tensorrt_llm/_torch/auto_deploy/custom_ops/torch_attention.py
Comment thread tensorrt_llm/_torch/auto_deploy/custom_ops/triton_attention.py
Signed-off-by: nvchenghaoz <211069071+nvchenghaoz@users.noreply.github.com>
Signed-off-by: nvchenghaoz <211069071+nvchenghaoz@users.noreply.github.com>
@nvchenghaoz
nvchenghaoz enabled auto-merge (squash) July 16, 2025 19:55
@nvchenghaoz
nvchenghaoz merged commit a37797b into feat/ad-2025-07-07 Jul 16, 2025
1 check passed
lucaslie added a commit that referenced this pull request Jul 17, 2025
lucaslie added a commit that referenced this pull request Jul 17, 2025
This reverts commit a37797b.

Signed-off-by: Lucas Liebenwein <11156568+lucaslie@users.noreply.github.com>
lucaslie pushed a commit that referenced this pull request Jul 18, 2025
* Add sink/sliding window support for Triton

Signed-off-by: nvchenghaoz <211069071+nvchenghaoz@users.noreply.github.com>

* Add the test and fix the functional implementations

Signed-off-by: nvchenghaoz <211069071+nvchenghaoz@users.noreply.github.com>

---------

Signed-off-by: nvchenghaoz <211069071+nvchenghaoz@users.noreply.github.com>
lucaslie added a commit that referenced this pull request Jul 18, 2025
This reverts commit a37797b.

Signed-off-by: Lucas Liebenwein <11156568+lucaslie@users.noreply.github.com>
lucaslie pushed a commit that referenced this pull request Jul 21, 2025
* Add sink/sliding window support for Triton

Signed-off-by: nvchenghaoz <211069071+nvchenghaoz@users.noreply.github.com>

* Add the test and fix the functional implementations

Signed-off-by: nvchenghaoz <211069071+nvchenghaoz@users.noreply.github.com>

---------

Signed-off-by: nvchenghaoz <211069071+nvchenghaoz@users.noreply.github.com>
lucaslie added a commit that referenced this pull request Jul 21, 2025
This reverts commit a37797b.

Signed-off-by: Lucas Liebenwein <11156568+lucaslie@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.

3 participants