Skip to content

[llm] Add arange() tensor maker API #11861

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 25, 2025

Conversation

larryliu0820
Copy link
Contributor

@larryliu0820 larryliu0820 commented Jun 23, 2025

Stack from ghstack (oldest at bottom):

As titled. arange() taking a sizes argument to be able to take custom tensor sizes.

Differential Revision: D77184741

As titled. `arange()` taking a `sizes` argument to be able to take custom tensor sizes.

Differential Revision: [D77184741](https://our.internmc.facebook.com/intern/diff/D77184741/)

[ghstack-poisoned]
@larryliu0820 larryliu0820 requested a review from shoumikhin as a code owner June 23, 2025 22:07
Copy link

pytorch-bot bot commented Jun 23, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 0e14656 with merge base 222d9e3 (image):
💚 Looks good so far! There are no failures yet. 💚

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

larryliu0820 added a commit that referenced this pull request Jun 23, 2025
As titled. `arange()` taking a `sizes` argument to be able to take custom tensor sizes.

Differential Revision: [D77184741](https://our.internmc.facebook.com/intern/diff/D77184741/)

ghstack-source-id: 292190468
Pull Request resolved: #11861
@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 Jun 23, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77184741

@larryliu0820 larryliu0820 added the release notes: llm To capture llm specific changes in release notes label Jun 23, 2025
As titled. `arange()` taking a `sizes` argument to be able to take custom tensor sizes.

Differential Revision: [D77184741](https://our.internmc.facebook.com/intern/diff/D77184741/)

[ghstack-poisoned]
larryliu0820 added a commit that referenced this pull request Jun 23, 2025
Pull Request resolved: #11861

As titled. `arange()` taking a `sizes` argument to be able to take custom tensor sizes.
ghstack-source-id: 292195574
@exported-using-ghexport

Differential Revision: [D77184741](https://our.internmc.facebook.com/intern/diff/D77184741/)
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77184741

As titled. `arange()` taking a `sizes` argument to be able to take custom tensor sizes.

Differential Revision: [D77184741](https://our.internmc.facebook.com/intern/diff/D77184741/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77184741

As titled. `arange()` taking a `sizes` argument to be able to take custom tensor sizes.

Differential Revision: [D77184741](https://our.internmc.facebook.com/intern/diff/D77184741/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77184741

As titled. `arange()` taking a `sizes` argument to be able to take custom tensor sizes.

Differential Revision: [D77184741](https://our.internmc.facebook.com/intern/diff/D77184741/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77184741

As titled. `arange()` taking a `sizes` argument to be able to take custom tensor sizes.

Differential Revision: [D77184741](https://our.internmc.facebook.com/intern/diff/D77184741/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77184741

kedarnath03 pushed a commit to kedarnath03/executorch that referenced this pull request Jun 25, 2025
Pull Request resolved: pytorch/executorch#11861

Refactoring `op_arange.cpp` to expose `compute_arange_out_size` and `arange_out_impl` for LLM runner to use. See next PR on how to use them.

ghstack-source-id: 292529866
@exported-using-ghexport

Differential Revision: [D77184741](https://our.internmc.facebook.com/intern/diff/D77184741/)
@facebook-github-bot facebook-github-bot merged commit 1612e7a into gh/larryliu0820/66/base Jun 25, 2025
97 of 98 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/larryliu0820/66/head branch June 25, 2025 12:11
jackzhxng pushed a commit that referenced this pull request Jun 25, 2025
This PR was created by the merge bot to help merge the original PR into
the main branch.
ghstack PR number: #11861 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/66/base
ghstack PR head:
https://github.com/pytorch/executorch/tree/gh/larryliu0820/66/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/main
Merge bot PR head:
https://github.com/pytorch/executorch/tree/gh/larryliu0820/66/orig
@diff-train-skip-merge

Co-authored-by: Mengwei Liu <[email protected]>
hinriksnaer pushed a commit to hinriksnaer/executorch that referenced this pull request Jun 26, 2025
This PR was created by the merge bot to help merge the original PR into
the main branch.
ghstack PR number: pytorch#11861 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/66/base
ghstack PR head:
https://github.com/pytorch/executorch/tree/gh/larryliu0820/66/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/main
Merge bot PR head:
https://github.com/pytorch/executorch/tree/gh/larryliu0820/66/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. fb-exported release notes: llm To capture llm specific changes in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants