Skip to content

[executorch][mlx] Helion targets: pinned kernel variants per chip - #26108

Open
yushangdi wants to merge 1 commit into
gh/yushangdi/1/basefrom
gh/yushangdi/1/head
Open

yushangdi wants to merge 1 commit into
gh/yushangdi/1/basefrom
gh/yushangdi/1/head

Conversation

@yushangdi

@yushangdi yushangdi commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

A Helion target, pinned offline for one chip, lists the variants that beat
the MLX lowering of an op's calls: each the call it serves (exact shapes,
and for ints a value or an IntRange), the launches that compute it (kernel,
config, explicit input wiring) and its results. Registration checks
each variant's wiring, that its tensor sizes are exact (a launch's grid is
fixed when it is captured), and that no two variants of an op can match one
call, and keeps an immutable snapshot under the target's name, with shapes
as tuples so that a target written with lists matches the calls it pins.
dtype_name and DTYPES name dtypes as a TensorSpec does. Nothing
reads a target yet: the next commits capture its launches and build them
into the runtime.

This diff was authored with the help of AI coding agents.

Differential Revision: D135440012

NOTE FOR REVIEWERS: This PR has internal Meta-specific changes or comments, please review them on Phabricator!

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

⏳ No Failures, 41 Pending

As of commit c67c072 with merge base 4fbdd29 (image):
💚 Looks good so far! There are no failures yet. 💚

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 Dec 5, 2026

@digantdesai digantdesai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review automatically exported from Phabricator review in Meta.

@github-actions

github-actions Bot commented Dec 5, 2026

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.

This branch is being deployed

1 in progress deployment
cadence — c67c0727 Deployed Dec 5, 2026 by yushangdi via hifi5s-op-test / hifi5s #42476
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. meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants