Skip to content

Revert "[None] Add sink/sliding window support for Triton" - #92

Merged
lucaslie merged 1 commit into
feat/ad-2025-07-07from
revert-77-chenghao/triton-backend-0708
Jul 17, 2025
Merged

Revert "[None] Add sink/sliding window support for Triton"#92
lucaslie merged 1 commit into
feat/ad-2025-07-07from
revert-77-chenghao/triton-backend-0708

Conversation

@lucaslie

@lucaslie lucaslie commented Jul 17, 2025

Copy link
Copy Markdown

Reverts #77

I am getting a couple of cuda device assertions when running the unit tests - I am assuming it is related to the numerical stability of the updated triton kernel

@lucaslie
lucaslie requested review from Copilot and nvchenghaoz July 17, 2025 15:33
@lucaslie
lucaslie enabled auto-merge (squash) July 17, 2025 15:34
@lucaslie
lucaslie disabled auto-merge July 17, 2025 15:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR reverts the addition of sink tokens and sliding window support for Triton attention kernels due to CUDA device assertions encountered during unit tests. The revert removes the new eager implementation of torch attention that was causing numerical stability issues.

  • Removes sink token support from Triton attention kernels and test infrastructure
  • Removes sliding window attention functionality from all kernel implementations
  • Simplifies function signatures by removing optional sink and sliding window parameters

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
test_attention_with_kv_cache.py Removes test parameterization for sliding window and sink tokens, simplifies test functions
attention_with_kv_cache.py Removes sliding window logic and sink token handling from Triton kernels
triton_attention.py Removes sink and sliding window parameters from public API functions
_triton_attention_internal.py Removes sink and sliding window parameters from internal kernel calls

@lucaslie
lucaslie enabled auto-merge (squash) July 17, 2025 15:34
@lucaslie
lucaslie disabled auto-merge July 17, 2025 15:37
@lucaslie
lucaslie merged commit c47c1dc into feat/ad-2025-07-07 Jul 17, 2025
1 check passed
@lucaslie
lucaslie deleted the revert-77-chenghao/triton-backend-0708 branch July 17, 2025 15:40
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 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.

2 participants