Skip to content

Conversation

@larryliu0820
Copy link
Contributor

@larryliu0820 larryliu0820 commented Jul 15, 2025

Stack from ghstack (oldest at bottom):

In Huggingface causal LM forward convention, cache_position should
have the same length as input_ids. The previous logic will allocate
cache_position based on method metadata which by default is equal to
the maximum length of this tensor (normally max context length). Now
changing the logic to align the size of cache_position to input_ids.

In Huggingface causal LM forward convention, `cache_position` should
have the same length as `input_ids`. The previous logic will allocate
`cache_position` based on method metadata which by default is equal to
the maximum length of this tensor (normally max context length). Now
changing the logic to align the size of `cache_position` to `input_ids`.

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Jul 15, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/12476

Note: Links to docs will display an error until the docs builds have been completed.

⏳ No Failures, 6 Pending

As of commit efd7096 with merge base 042eb1a (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 15, 2025
@github-actions
Copy link

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@larryliu0820 larryliu0820 merged commit f0022b2 into gh/larryliu0820/68/base Jul 15, 2025
98 of 99 checks passed
@larryliu0820 larryliu0820 deleted the gh/larryliu0820/68/head branch July 15, 2025 04:45
larryliu0820 added a commit that referenced this pull request Jul 15, 2025
This PR was created by the merge bot to help merge the original PR into
the main branch.
ghstack PR number: #12476 by
@larryliu0820
^ Please use this as the source of truth for the PR details, comments,
and reviews
ghstack PR base:
https://github.com/pytorch/executorch/tree/gh/larryliu0820/68/base
ghstack PR head:
https://github.com/pytorch/executorch/tree/gh/larryliu0820/68/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/main
Merge bot PR head:
https://github.com/pytorch/executorch/tree/gh/larryliu0820/68/orig
@diff-train-skip-merge

Co-authored-by: Mengwei Liu <[email protected]>
pytorchbot added a commit that referenced this pull request Jul 15, 2025
This PR was created by the merge bot to help merge the original PR into
the main branch.
ghstack PR number: #12476 by
@larryliu0820
^ Please use this as the source of truth for the PR details, comments,
and reviews
ghstack PR base:
https://github.com/pytorch/executorch/tree/gh/larryliu0820/68/base
ghstack PR head:
https://github.com/pytorch/executorch/tree/gh/larryliu0820/68/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/main
Merge bot PR head:
https://github.com/pytorch/executorch/tree/gh/larryliu0820/68/orig
@diff-train-skip-merge

Co-authored-by: Mengwei Liu <[email protected]>
(cherry picked from commit aa44c06)
psiddh added a commit that referenced this pull request Jul 16, 2025
This PR was created by the merge bot to help merge the original PR into
the main branch.
ghstack PR number: #12476 by
@larryliu0820
^ Please use this as the source of truth for the PR details, comments,
and reviews
ghstack PR base:
https://github.com/pytorch/executorch/tree/gh/larryliu0820/68/base
ghstack PR head:
https://github.com/pytorch/executorch/tree/gh/larryliu0820/68/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/main
Merge bot PR head:
https://github.com/pytorch/executorch/tree/gh/larryliu0820/68/orig
@diff-train-skip-merge

Co-authored-by: Mengwei Liu <[email protected]>
Co-authored-by: Siddartha Pothapragada <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants