Repository navigation
bring back broadcasted rope branch, spmd.local_map - #3750
Merged
Merged
Conversation
pianpwk
marked this pull request as ready for review
June 23, 2026 21:17
pianpwk
requested review from
fegin,
tianyu-l,
wconstab and
wwwjn
as code owners
June 23, 2026 21:17
pianpwk
force-pushed
the
pianpwk/rope_view_mutation_inference
branch
from
June 23, 2026 22:00
406be79 to
bbf74b6
Compare
Cannot set version_counter for inference tensor fix
tianyu-l
reviewed
Jun 23, 2026
Comment on lines
+384
to
+392
| rope_cache_expanded = rope_cache.reshape( | ||
| 1, rope_cache.shape[0], 1, cache_width | ||
| ).expand(bsz, -1, -1, -1) | ||
| rope_cache = torch.gather( | ||
| rope_cache_expanded, | ||
| dim=1, | ||
| index=positions.view(bsz, seqlen, 1, 1).expand(bsz, seqlen, 1, cache_width), | ||
| index=positions.reshape(bsz, seqlen, 1, 1).expand( | ||
| bsz, seqlen, 1, cache_width | ||
| ), |
Contributor
There was a problem hiding this comment.
not changing this, right?
pianpwk
force-pushed
the
pianpwk/rope_view_mutation_inference
branch
from
June 23, 2026 22:08
bbf74b6 to
fd89eae
Compare
tianyu-l
approved these changes
Jun 23, 2026
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.
for
Cannot set version_counter for inference tensorfix