Skip to content

Conversation

@larryliu0820
Copy link
Contributor

@larryliu0820 larryliu0820 commented Jul 15, 2025

Stack from ghstack (oldest at bottom):

As titled, start to use TextLLMRunner to replace all text only decoder
only CPU runners in the codebase.

As titled, start to use `TextLLMRunner` to replace all text only decoder
only CPU runners in the codebase.

[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/12477

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

❌ 3 New Failures, 50 Pending

As of commit 0583101 with merge base aa44c06 (image):

NEW FAILURES - The following jobs have failed:

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

larryliu0820 added a commit that referenced this pull request Jul 15, 2025
As titled, start to use `TextLLMRunner` to replace all text only decoder
only CPU runners in the codebase.

ghstack-source-id: 0340257
Pull Request resolved: #12477
@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
@larryliu0820 larryliu0820 added the release notes: llm Changes to llm utilities label Jul 15, 2025
As titled, start to use `TextLLMRunner` to replace all text only decoder
only CPU runners in the codebase.

[ghstack-poisoned]
larryliu0820 added a commit that referenced this pull request Jul 15, 2025
As titled, start to use `TextLLMRunner` to replace all text only decoder
only CPU runners in the codebase.

ghstack-source-id: 0361280
Pull Request resolved: #12477
larryliu0820 added a commit that referenced this pull request Jul 15, 2025
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at
bottom):
* #12477
* __->__ #12476

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`.
As titled, start to use `TextLLMRunner` to replace all text only decoder
only CPU runners in the codebase.

[ghstack-poisoned]
larryliu0820 added a commit that referenced this pull request Jul 15, 2025
As titled, start to use `TextLLMRunner` to replace all text only decoder
only CPU runners in the codebase.

ghstack-source-id: fa07a7a
Pull Request resolved: #12477
As titled, start to use `TextLLMRunner` to replace all text only decoder
only CPU runners in the codebase.

[ghstack-poisoned]
larryliu0820 added a commit that referenced this pull request Jul 15, 2025
As titled, start to use `TextLLMRunner` to replace all text only decoder
only CPU runners in the codebase.

ghstack-source-id: a433148
Pull Request resolved: #12477
As titled, start to use `TextLLMRunner` to replace all text only decoder
only CPU runners in the codebase.

[ghstack-poisoned]
larryliu0820 added a commit that referenced this pull request Jul 15, 2025
As titled, start to use `TextLLMRunner` to replace all text only decoder
only CPU runners in the codebase.

ghstack-source-id: af70a63
Pull Request resolved: #12477
@larryliu0820 larryliu0820 merged commit 82b4ada into gh/larryliu0820/69/base Jul 15, 2025
192 of 196 checks passed
@larryliu0820 larryliu0820 deleted the gh/larryliu0820/69/head branch July 15, 2025 08:01
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: #12477 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/69/base
ghstack PR head:
https://github.com/pytorch/executorch/tree/gh/larryliu0820/69/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/main
Merge bot PR head:
https://github.com/pytorch/executorch/tree/gh/larryliu0820/69/orig
@diff-train-skip-merge

Co-authored-by: Mengwei Liu <[email protected]>
lucylq pushed a commit that referenced this pull request Jul 17, 2025
This PR was created by the merge bot to help merge the original PR into
the main branch.
ghstack PR number: #12477 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/69/base
ghstack PR head:
https://github.com/pytorch/executorch/tree/gh/larryliu0820/69/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/main
Merge bot PR head:
https://github.com/pytorch/executorch/tree/gh/larryliu0820/69/orig
@diff-train-skip-merge

Co-authored-by: Mengwei Liu <[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. release notes: llm Changes to llm utilities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants