Skip to content

[executorch][muse] Serve images on CUDA batching - #24065

Merged
meta-codesync[bot] merged 3 commits into
gh/Gasoonjia/88/basefrom
gh/Gasoonjia/88/head
Nov 5, 2026
Merged

meta-codesync[bot] merged 3 commits into
gh/Gasoonjia/88/basefrom
gh/Gasoonjia/88/head

Conversation

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ You can merge normally! (1 Unrelated Failure)

As of commit 6d256b9 with merge base 5e8d11b (image):

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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

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

[ghstack-poisoned]
[ghstack-poisoned]
meta-codesync Bot pushed a commit that referenced this pull request Nov 5, 2026
…ckends

Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.15.0) (oldest at bottom):
* #24076
* #24107
* #24075
* #24074
* #24073
* #24072
* #24066
* #24065
* #24064
* #24063
* __->__ #24062

Move the MLX executor's EngineEmbeddings (vision encoder + embed_text +
MuseGlimmerMaterializer) into runtime/model_embeddings so the CUDA batching
executors can materialize prepared image inputs the same way. MLX behavior is
unchanged; it now holds a MuseGlimmerModelEmbeddings.

Differential Revision: D125987290

Pull Request resolved: #24062
meta-codesync Bot pushed a commit that referenced this pull request Nov 5, 2026
Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.15.0) (oldest at bottom):
* #24076
* #24107
* #24075
* #24074
* #24073
* #24072
* #24066
* #24065
* #24064
* __->__ #24063
* #24062

Steps that carry a prepared (image) input run forward_from_embeddings with the
materialized rows; token-only steps keep the static forward_{N} methods and
their CUDA graphs. SessionTable packs prepared rows as placeholders so the
cache still plans their positions.

Differential Revision: D125987291

Pull Request resolved: #24063
meta-codesync Bot pushed a commit that referenced this pull request Nov 5, 2026
Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.15.0) (oldest at bottom):
* #24076
* #24107
* #24075
* #24074
* #24073
* #24072
* #24066
* #24065
* __->__ #24064
* #24063
* #24062

export_cuda_batching optionally adds vision_encoder, embed_text and a dynamic
forward_from_embeddings over the same off-graph KV contract, and writes
pos_embed.bin next to the program.

Differential Revision: D125987292

Pull Request resolved: #24064
@meta-codesync
meta-codesync Bot merged commit c503546 into gh/Gasoonjia/88/base Nov 5, 2026
@meta-codesync
meta-codesync Bot deleted the gh/Gasoonjia/88/head branch November 5, 2026 09:05
meta-codesync Bot pushed a commit that referenced this pull request Nov 5, 2026
Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.15.0) (oldest at bottom):
* #24076
* #24107
* #24075
* #24074
* #24073
* #24072
* __->__ #24066
* #24065
* #24064
* #24063
* #24062

The CUDA DFlash executor accepts prepared image inputs on admission; image
steps run the target from embeddings, then hidden taps and drafting proceed as
for tokens.

Differential Revision: D125987295

Pull Request resolved: #24066
Gasoonjia added a commit that referenced this pull request Nov 5, 2026
This PR was created by the merge bot to help merge the original PR into
the main branch.
ghstack PR number: #24065 by
@Gasoonjia
^ 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/Gasoonjia/88/base
ghstack PR head:
https://github.com/pytorch/executorch/tree/gh/Gasoonjia/88/head
Merge bot PR base:
https://github.com/pytorch/executorch/tree/gh/Gasoonjia/87/orig
Merge bot PR head:
https://github.com/pytorch/executorch/tree/gh/Gasoonjia/88/orig
Differential Revision:
[D125987293](https://our.internmc.facebook.com/intern/diff/D125987293/)
@diff-train-skip-merge

Co-authored-by: gasoonjia <gasoonjia@icloud.com>

This branch was previously deployed

2 inactive deployments
cherry-pick-bot — 6d256b93 Deployed Nov 5, 2026 by meta-codesync[bot]
cadence — 6d256b93 Deployed Nov 5, 2026 by Gasoonjia
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