Skip to content

Conversation

lucylq
Copy link
Contributor

@lucylq lucylq commented Aug 5, 2024

Summary:
For preprocess, we have two custom ops, pad and reshape.
These are used to hide the implementation and any data dependent issues from export, allowing us to export the model.

The model definition is in D60051533, though we're trying to upstream it to torchtune: meta-pytorch/torchtune#1242

This diff adds:

  • Python impl + tests
  • C++ function signatures + buck setup

Differential Revision: D60491675

Copy link

pytorch-bot bot commented Aug 5, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 598e34f with merge base 92edd04 (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 Aug 5, 2024
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

@lucylq lucylq force-pushed the export-D60491675 branch from 67e886d to 6b3c7e7 Compare August 6, 2024 17:40
lucylq added a commit to lucylq/executorch-1 that referenced this pull request Aug 6, 2024
Summary:
Pull Request resolved: pytorch#4548

For preprocess, we have two custom ops, pad and reshape.
These are used to hide the implementation and any data dependent issues from export, allowing us to export the model.

The model definition is in D60051533, though we're trying to upstream it to torchtune: meta-pytorch/torchtune#1242

This diff adds:
- Python impl + tests
- C++ function signatures + buck setup

Differential Revision: D60491675
@facebook-github-bot
Copy link
Contributor

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

lucylq added a commit to lucylq/executorch-1 that referenced this pull request Aug 6, 2024
Summary:
Pull Request resolved: pytorch#4548

For preprocess, we have two custom ops, pad and reshape.
These are used to hide the implementation and any data dependent issues from export, allowing us to export the model.

The model definition is in D60051533, though we're trying to upstream it to torchtune: meta-pytorch/torchtune#1242

This diff adds:
- Python impl + tests
- C++ function signatures + buck setup

Differential Revision: D60491675
@lucylq lucylq force-pushed the export-D60491675 branch from 6b3c7e7 to ef69514 Compare August 6, 2024 17:46
@facebook-github-bot
Copy link
Contributor

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

@lucylq lucylq force-pushed the export-D60491675 branch from ef69514 to f722f21 Compare August 7, 2024 16:50
lucylq added a commit to lucylq/executorch-1 that referenced this pull request Aug 7, 2024
Summary:
Pull Request resolved: pytorch#4548

For preprocess, we have two custom ops, pad and reshape.
These are used to hide the implementation and any data dependent issues from export, allowing us to export the model.

The model definition is in D60051533, though we're trying to upstream it to torchtune: meta-pytorch/torchtune#1242

This diff adds:
- Python impl + tests
- C++ function signatures + buck setup for reshape.

Differential Revision: D60491675
@facebook-github-bot
Copy link
Contributor

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

lucylq added a commit to lucylq/executorch-1 that referenced this pull request Aug 7, 2024
Summary:
Pull Request resolved: pytorch#4548

For preprocess, we have two custom ops, pad and reshape.
These are used to hide the implementation and any data dependent issues from export, allowing us to export the model.

The model definition is in D60051533, though we're trying to upstream it to torchtune: meta-pytorch/torchtune#1242

This diff adds:
- Python impl + tests
- C++ function signatures + buck setup for reshape.

Differential Revision: D60491675
@lucylq lucylq force-pushed the export-D60491675 branch from f722f21 to b6fdf55 Compare August 7, 2024 16:56
Summary:
Pull Request resolved: pytorch#4548

For preprocess, we have two custom ops, pad and reshape.
These are used to hide the implementation and any data dependent issues from export, allowing us to export the model.

The model definition is in D60051533, though we're trying to upstream it to torchtune: meta-pytorch/torchtune#1269

This diff adds:
- Python impl + tests
- C++ function signatures + buck setup for reshape using [EXECUTORCH_LIBRARY](https://pytorch.org/executorch/stable/kernel-library-custom-aten-kernel.html#custom-ops-c-api)

Differential Revision: D60491675
@facebook-github-bot
Copy link
Contributor

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

@lucylq lucylq force-pushed the export-D60491675 branch from b6fdf55 to 598e34f Compare August 8, 2024 00:59
@facebook-github-bot facebook-github-bot merged commit d3367e6 into pytorch:main Aug 8, 2024
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants