Repository navigation
add sliding window to varlen - #172238
Closed
liangel-02 wants to merge 16 commits into
Closed
add sliding window to varlen#172238liangel-02 wants to merge 16 commits into
liangel-02 wants to merge 16 commits into
Conversation
[ghstack-poisoned]
liangel-02
requested review from
albanD,
jbschlosser and
mikaylagawarecki
as code owners
January 12, 2026 17:17
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/172238
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 5b80f9a with merge base fb5eb91 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
[ghstack-poisoned]
[ghstack-poisoned]
original pr: #171578 adding sliding window attention to `varlen_attn`. modifying optional args to be positional instead for future proofing [ghstack-poisoned]
liangel-02
added a commit
that referenced
this pull request
Jan 12, 2026
deprecating `is_causal` flag since this can be expressed with `window_size = (-1, 0)` Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #172245 * #172238 [ghstack-poisoned]
liangel-02
added a commit
that referenced
this pull request
Jan 12, 2026
deprecating `is_causal` flag since this can be expressed with `window_size = (-1, 0)` Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #172245 * #172238 [ghstack-poisoned]
mikaylagawarecki
removed their request for review
January 12, 2026 21:38
drisspg
reviewed
Jan 13, 2026
drisspg
reviewed
Jan 13, 2026
original pr: #171578 adding sliding window attention to `varlen_attn`. modifying optional args to be positional instead for future proofing cc albanD mruberry jbschlosser walterddr mikaylagawarecki [ghstack-poisoned]
liangel-02
added a commit
that referenced
this pull request
Jan 13, 2026
deprecating `is_causal` flag in `varlen_attn` since this can be expressed with `window_size = (-1, 0)` Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #172245 * #172238 cc albanD mruberry jbschlosser walterddr mikaylagawarecki [ghstack-poisoned]
liangel-02
added a commit
that referenced
this pull request
Jan 13, 2026
deprecating `is_causal` flag in `varlen_attn` since this can be expressed with `window_size = (-1, 0)` Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #172245 * #172238 cc albanD mruberry jbschlosser walterddr mikaylagawarecki [ghstack-poisoned]
original pr: #171578 adding sliding window attention to `varlen_attn`. modifying optional args to be positional instead for future proofing cc albanD mruberry jbschlosser walterddr mikaylagawarecki [ghstack-poisoned]
liangel-02
added a commit
that referenced
this pull request
Jan 14, 2026
the `is_causal` flag is now deprecated in `varlen_attn`. to express causal attention, use `window_size = (-1, 0)` Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #172245 * #172238 cc albanD mruberry jbschlosser walterddr mikaylagawarecki [ghstack-poisoned]
liangel-02
added a commit
that referenced
this pull request
Jan 14, 2026
the `is_causal` flag is now deprecated in `varlen_attn`. to express causal attention, use `window_size = (-1, 0)` Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #172245 * #172238 cc albanD mruberry jbschlosser walterddr mikaylagawarecki [ghstack-poisoned]
original pr: #171578 adding sliding window attention to `varlen_attn`. modifying optional args to be positional instead for future proofing cc albanD mruberry jbschlosser walterddr mikaylagawarecki [ghstack-poisoned]
liangel-02
added a commit
that referenced
this pull request
Jan 15, 2026
the `is_causal` flag is now deprecated in `varlen_attn`. to express causal attention, use `window_size = (-1, 0)` Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #172245 * #172238 cc albanD mruberry jbschlosser walterddr mikaylagawarecki [ghstack-poisoned]
liangel-02
added a commit
that referenced
this pull request
Jan 15, 2026
the `is_causal` flag is now deprecated in `varlen_attn`. to express causal attention, use `window_size = (-1, 0)` Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #172245 * #172238 cc albanD mruberry jbschlosser walterddr mikaylagawarecki [ghstack-poisoned]
drisspg
approved these changes
Jan 15, 2026
Collaborator
|
Starting merge as part of PR stack under #172245 |
liangel-02
added a commit
that referenced
this pull request
Jan 15, 2026
the `is_causal` flag is now deprecated in `varlen_attn`. to express causal attention, use `window_size = (-1, 0)` Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #172245 * #172238 cc albanD mruberry jbschlosser walterddr mikaylagawarecki [ghstack-poisoned]
liangel-02
added a commit
that referenced
this pull request
Jan 15, 2026
the `is_causal` flag is now deprecated in `varlen_attn`. to express causal attention, use `window_size = (-1, 0)` Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #172245 * #172238 cc albanD mruberry jbschlosser walterddr mikaylagawarecki [ghstack-poisoned]
original pr: #171578 adding sliding window attention to `varlen_attn`. modifying optional args to be positional instead for future proofing cc albanD mruberry jbschlosser walterddr mikaylagawarecki [ghstack-poisoned]
original pr: #171578 adding sliding window attention to `varlen_attn`. modifying optional args to be positional instead for future proofing cc albanD mruberry jbschlosser walterddr mikaylagawarecki [ghstack-poisoned]
original pr: #171578 adding sliding window attention to `varlen_attn`. modifying optional args to be positional instead for future proofing cc albanD mruberry jbschlosser walterddr mikaylagawarecki [ghstack-poisoned]
SergeyTyshkevich
pushed a commit
to SergeyTyshkevich/chart2
that referenced
this pull request
Jan 19, 2026
ghstack-source-id: 07c980f Pull Request resolved: pytorch/pytorch#172238
original pr: #171578 adding sliding window attention to `varlen_attn`. modifying optional args to be positional instead for future proofing cc albanD mruberry jbschlosser walterddr mikaylagawarecki [ghstack-poisoned]
original pr: #171578 adding sliding window attention to `varlen_attn`. modifying optional args to be positional instead for future proofing cc albanD mruberry jbschlosser walterddr mikaylagawarecki [ghstack-poisoned]
liangel-02
added a commit
that referenced
this pull request
Jan 20, 2026
the `is_causal` flag is now deprecated in `varlen_attn`. to express causal attention, use `window_size = (-1, 0)` Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #172245 * #172238 cc albanD mruberry jbschlosser walterddr mikaylagawarecki [ghstack-poisoned]
liangel-02
added a commit
that referenced
this pull request
Jan 20, 2026
the `is_causal` flag is now deprecated in `varlen_attn`. to express causal attention, use `window_size = (-1, 0)` Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #172245 * #172238 cc albanD mruberry jbschlosser walterddr mikaylagawarecki [ghstack-poisoned]
original pr: #171578 adding sliding window attention to `varlen_attn`. modifying optional args to be positional instead for future proofing cc albanD mruberry jbschlosser walterddr mikaylagawarecki [ghstack-poisoned]
liangel-02
added a commit
that referenced
this pull request
Jan 21, 2026
the `is_causal` flag is now deprecated in `varlen_attn`. to express causal attention, use `window_size = (-1, 0)` Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #172245 * #172238 cc albanD mruberry jbschlosser walterddr mikaylagawarecki [ghstack-poisoned]
liangel-02
added a commit
that referenced
this pull request
Jan 21, 2026
the `is_causal` flag is now deprecated in `varlen_attn`. to express causal attention, use `window_size = (-1, 0)` Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #172245 * #172238 cc albanD mruberry jbschlosser walterddr mikaylagawarecki [ghstack-poisoned]
Collaborator
|
Starting merge as part of PR stack under #172245 |
pytorchmergebot
pushed a commit
that referenced
this pull request
Jan 21, 2026
the `is_causal` flag is now deprecated in `varlen_attn`. to express causal attention, use `window_size = (-1, 0)` Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #172245 * #172238 Pull Request resolved: #172245 Approved by: https://github.com/drisspg ghstack dependencies: #172238
suncapitalllc007-star
pushed a commit
to suncapitalllc007-star/pytorch
that referenced
this pull request
Jan 25, 2026
ghstack-source-id: 56eccb3 Pull Request resolved: pytorch/pytorch#172238
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
original pr: #171578
adding sliding window attention to
varlen_attn. modifying optional args to be positional instead for future proofingStack from ghstack (oldest at bottom):
cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki