Skip to content

Conversation

@abhinaykukkadapu
Copy link
Contributor

Summary: Enables basic export recipes for XNNPack backend described in #12069

Differential Revision: D77414795

@pytorch-bot
Copy link

pytorch-bot bot commented Jun 27, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure, 1 Pending

As of commit 0827d84 with merge base 042eb1a (image):

NEW FAILURE - The following job has failed:

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 Jun 27, 2025
@facebook-github-bot
Copy link
Contributor

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

@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.

abhinaykukkadapu added a commit to abhinaykukkadapu/executorch that referenced this pull request Jun 27, 2025
Summary:

Enables basic export recipes for XNNPack backend described in pytorch#12069

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

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

@abhinaykukkadapu abhinaykukkadapu self-assigned this Jul 1, 2025
@abhinaykukkadapu abhinaykukkadapu moved this to In progress in ExecuTorch Core Jul 1, 2025
abhinaykukkadapu added a commit to abhinaykukkadapu/executorch that referenced this pull request Jul 2, 2025
Summary:

Enables basic export recipes for XNNPack backend described in pytorch#12069

Adds five recipes:
a. static per channel quant
b. static per tensor quant
c. dynamic per channel quant
d. fp32
e. 8a4w

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

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

abhinaykukkadapu added a commit to abhinaykukkadapu/executorch that referenced this pull request Jul 2, 2025
Summary:

Enables basic export recipes for XNNPack backend described in pytorch#12069

Adds five recipes:
a. static per channel quant
b. static per tensor quant
c. dynamic per channel quant
d. fp32
e. 8a4w

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

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

abhinaykukkadapu added a commit to abhinaykukkadapu/executorch that referenced this pull request Jul 2, 2025
Summary:

Enables basic export recipes for XNNPack backend described in pytorch#12069

Adds five recipes:
a. static per channel quant
b. static per tensor quant
c. dynamic per channel quant
d. fp32
e. 8a4w

Differential Revision: D77414795
abhinaykukkadapu added a commit to abhinaykukkadapu/executorch that referenced this pull request Jul 2, 2025
Summary:

Enables basic export recipes for XNNPack backend described in pytorch#12069

Adds five recipes:
a. static per channel quant
b. static per tensor quant
c. dynamic per channel quant
d. fp32
e. 8a4w

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

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

abhinaykukkadapu added a commit to abhinaykukkadapu/executorch that referenced this pull request Jul 2, 2025
Summary:
Pull Request resolved: pytorch#12070

Enables basic export recipes for XNNPack backend described in pytorch#12069

Adds five recipes:
a. static per channel quant
b. static per tensor quant
c. dynamic per channel quant
d. fp32
e. 8a4w

Differential Revision: D77414795
abhinaykukkadapu added a commit to abhinaykukkadapu/executorch that referenced this pull request Jul 12, 2025
Summary:
Pull Request resolved: pytorch#12070

Enables basic export recipes for XNNPack backend described in pytorch#12069

Added recipes:

1. int8 da per channel
2. int8 da per tensor
3. int8 static per channel
4. int8 static per tensor
5. int8da4w dynamic per channel
6. int8da4w dynamic per tensor

Reviewed By: metascroy, kimishpatel

Differential Revision: D77414795
abhinaykukkadapu added a commit to abhinaykukkadapu/executorch that referenced this pull request Jul 14, 2025
Summary:
Enables basic export recipes for XNNPack backend described in pytorch#12069

Pull Request resolved: pytorch#12070

Test Plan:
Imported from GitHub, without a `Test Plan:` line.

Rollback Plan:

Reviewed By: metascroy, kimishpatel

Differential Revision: D77414795

Pulled By: abhinaykukkadapu
@facebook-github-bot
Copy link
Contributor

@abhinaykukkadapu has imported this pull request. If you are a Meta employee, you can view this in D77414795.

@facebook-github-bot
Copy link
Contributor

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

abhinaykukkadapu added a commit to abhinaykukkadapu/executorch that referenced this pull request Jul 14, 2025
Summary:
Enables basic export recipes for XNNPack backend described in pytorch#12069

Pull Request resolved: pytorch#12070

Test Plan:
Imported from GitHub, without a `Test Plan:` line.

Rollback Plan:

Reviewed By: metascroy, kimishpatel

Differential Revision: D77414795

Pulled By: abhinaykukkadapu
@abhinaykukkadapu abhinaykukkadapu requested a review from mcr229 July 14, 2025 22:06
@facebook-github-bot
Copy link
Contributor

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

abhinaykukkadapu added a commit to abhinaykukkadapu/executorch that referenced this pull request Jul 14, 2025
Summary:
Enables basic export recipes for XNNPack backend described in pytorch#12069

Pull Request resolved: pytorch#12070

Test Plan:
Imported from GitHub, without a `Test Plan:` line.

Rollback Plan:

Reviewed By: metascroy, mcr229, kimishpatel

Differential Revision: D77414795

Pulled By: abhinaykukkadapu
@facebook-github-bot
Copy link
Contributor

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

abhinaykukkadapu added a commit to abhinaykukkadapu/executorch that referenced this pull request Jul 14, 2025
Summary:
Enables basic export recipes for XNNPack backend described in pytorch#12069

Pull Request resolved: pytorch#12070

Test Plan:
Imported from GitHub, without a `Test Plan:` line.

Rollback Plan:

Reviewed By: metascroy, mcr229, kimishpatel

Differential Revision: D77414795

Pulled By: abhinaykukkadapu
@facebook-github-bot
Copy link
Contributor

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

abhinaykukkadapu added a commit to abhinaykukkadapu/executorch that referenced this pull request Jul 14, 2025
Summary:
Enables basic export recipes for XNNPack backend described in pytorch#12069

Pull Request resolved: pytorch#12070

Test Plan:
Imported from GitHub, without a `Test Plan:` line.

Rollback Plan:

Reviewed By: metascroy, mcr229, kimishpatel

Differential Revision: D77414795

Pulled By: abhinaykukkadapu
@facebook-github-bot
Copy link
Contributor

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

abhinaykukkadapu added a commit to abhinaykukkadapu/executorch that referenced this pull request Jul 14, 2025
Summary:
Enables basic export recipes for XNNPack backend described in pytorch#12069

Pull Request resolved: pytorch#12070

Test Plan:
Imported from GitHub, without a `Test Plan:` line.

Rollback Plan:

Reviewed By: metascroy, mcr229, kimishpatel

Differential Revision: D77414795

Pulled By: abhinaykukkadapu
abhinaykukkadapu added a commit to abhinaykukkadapu/executorch that referenced this pull request Jul 15, 2025
Summary:
Enables basic export recipes for XNNPack backend described in pytorch#12069

Pull Request resolved: pytorch#12070

Test Plan:
Imported from GitHub, without a `Test Plan:` line.

Rollback Plan:

Reviewed By: metascroy, mcr229, kimishpatel

Differential Revision: D77414795

Pulled By: abhinaykukkadapu
Summary:
Enables basic export recipes for XNNPack backend described in pytorch#12069

Pull Request resolved: pytorch#12070

Test Plan:
Imported from GitHub, without a `Test Plan:` line.

Rollback Plan:

Reviewed By: metascroy, mcr229, kimishpatel

Differential Revision: D77414795

Pulled By: abhinaykukkadapu
@facebook-github-bot
Copy link
Contributor

@abhinaykukkadapu has imported this pull request. If you are a Meta employee, you can view this in D77414795.

@abhinaykukkadapu abhinaykukkadapu merged commit a711af7 into pytorch:main Jul 15, 2025
104 of 106 checks passed
Copy link
Contributor

@digantdesai digantdesai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry a bit late, forgot to submit earlier

class XNNPACKRecipeProvider(BackendRecipeProvider):
@property
def backend_name(self) -> str:
return "xnnpack"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we might already have this somewhere. Just want to make sure we are consistent.

return list(XNNPackRecipeType)

def create_recipe(
self, recipe_type: RecipeType, **kwargs: Any
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have to use kwargs? It makes it hard to read and easier to slip on typing checks or other validations.

if recipe_type == XNNPackRecipeType.FP32:
return self._build_fp32_recipe(recipe_type)

elif recipe_type == XNNPackRecipeType.INT8_DYNAMIC_PER_CHANNEL:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit using a match stmt might be cleaner?

)

quant_recipe = QuantizationRecipe(
quantizers=None,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this none?

)

def test_all_models_with_recipes(self) -> None:
models_to_test = [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

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.

5 participants