Skip to content

[executorch][muse] Serve Muse Glimmer CUDA batching on a batched-sequence cache - #24075

Open
Gasoonjia wants to merge 2 commits into
gh/Gasoonjia/93/basefrom
gh/Gasoonjia/93/head
Open

Gasoonjia wants to merge 2 commits into
gh/Gasoonjia/93/basefrom
gh/Gasoonjia/93/head

Conversation

@Gasoonjia

@Gasoonjia Gasoonjia commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Adds --kv-layout {cell,sequence} and --max-kv-seqs to the Muse Glimmer CUDA batching exports (solo and DFlash). sequence writes a batched-sequence manifest for target and draft and publishes get_offgraph_kv_max_seqs (and get_draft_offgraph_kv_max_seqs / get_draft_offgraph_kv_seq_capacity for the draft). CudaExecutor and the CUDA DFlash executor pick kBatchedSequence when the artifact declares a sequence count, kBatchedCell otherwise, so the served feature set matches MLX's batched-sequence path. Cell artifacts are unchanged. The layout is chosen at export; switching it at runtime on one .pte is out of scope.

Differential Revision: D125987299

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 2 New Failures, 1 Cancelled Job, 1 Pending, 4 Unclassified Failures

As of commit 01a1fde with merge base 2c3e231 (image):

NEW FAILURES - The following jobs have failed:

  • pull / unittest / macos / macos-job (gh)
    examples/models/muse-glimmer/tests/test_cuda_sequence_export_inputs.py::SequenceExportInputsTest::test_small_logits_example_preserves_token_and_embedding_capacity
  • pull / unittest-editable / macos / macos-job (gh)
    examples/models/muse-glimmer/tests/test_cuda_sequence_export_inputs.py::SequenceExportInputsTest::test_small_logits_example_preserves_token_and_embedding_capacity

UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures may be pre-existing on trunk or introduced by this PR:

CANCELLED JOB - The following job was cancelled. Please retry:

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.

@Gasoonjia
Gasoonjia deployed to upload-benchmark-results October 22, 2026 22:54 — with GitHub Actions Active
[ghstack-poisoned]
@Gasoonjia
Gasoonjia deployed to upload-benchmark-results October 23, 2026 18:15 — with GitHub Actions Active

This branch was successfully deployed

2 active deployments
upload-benchmark-results — 01a1fde8 Deployed Oct 23, 2026 by Gasoonjia via upload-benchmark-results #21239
cadence — 01a1fde8 Deployed Oct 23, 2026 by Gasoonjia via hifi-op-test / hifi4 #34467
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.

1 participant