Skip to content

Add EfficientNet, Swin, and DistilBERT model wrappers for XNNPACK/Vulkan export#18585

Open
SS-JIA wants to merge 1 commit intomainfrom
pr18585
Open

Add EfficientNet, Swin, and DistilBERT model wrappers for XNNPACK/Vulkan export#18585
SS-JIA wants to merge 1 commit intomainfrom
pr18585

Conversation

@SS-JIA
Copy link
Copy Markdown
Contributor

@SS-JIA SS-JIA commented Mar 30, 2026

Summary: These models were previously only exportable via QNN-specific scripts. Add
EagerModelBase wrappers so they can be exported through the standard XNNPACK
and Vulkan export pipelines:

  • EfficientNet-B0 (torchvision pretrained)
  • Swin Transformer Tiny (torchvision pretrained)
  • DistilBERT base uncased (HuggingFace transformers)

Also add model entries to the examples/vulkan and examples/xnnpack export
registries, and a download_models.sh script to pre-cache all model checkpoints
needed for MLSys benchmarking.

Authored with Claude.

Test Plan: Exported EfficientNet, Swin, and DistilBERT to .pte via both XNNPACK and
Vulkan export pipelines. Verified all three models load and produce outputs
on-device.

Reviewers:

Subscribers:

Tasks:

Tags:

cc @manuelcandales @digantdesai @cbilgin

…kan export

Summary: These models were previously only exportable via QNN-specific scripts. Add
EagerModelBase wrappers so they can be exported through the standard XNNPACK
and Vulkan export pipelines:

- EfficientNet-B0 (torchvision pretrained)
- Swin Transformer Tiny (torchvision pretrained)
- DistilBERT base uncased (HuggingFace transformers)

Also add model entries to the examples/vulkan and examples/xnnpack export
registries, and a download_models.sh script to pre-cache all model checkpoints
needed for MLSys benchmarking.

Authored with Claude.

Test Plan: Exported EfficientNet, Swin, and DistilBERT to .pte via both XNNPACK and
Vulkan export pipelines. Verified all three models load and produce outputs
on-device.

Reviewers:

Subscribers:

Tasks:

Tags:
@pytorch-bot pytorch-bot bot added the module: vulkan Issues related to the Vulkan delegate and code under backends/vulkan/ label Mar 30, 2026
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot bot commented Mar 30, 2026

🔗 Helpful Links

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

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

❌ 1 New Failure, 2 Cancelled Jobs

As of commit b93a4a9 with merge base fa81941 (image):

NEW FAILURE - The following job has failed:

  • Lint / lintrunner-mypy (gh)
    >>> Lint for backends/arm/test/models/stable_diffusion/stable_diffusion_module_test_configs.py:

CANCELLED JOBS - The following jobs were cancelled. Please retry:

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

@meta-cla meta-cla 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 Mar 30, 2026
@github-actions
Copy link
Copy Markdown

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.

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. module: vulkan Issues related to the Vulkan delegate and code under backends/vulkan/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant