Skip to content

[executorch][muse] Export packed DFlash drafts for CUDA batching - #24038

Merged
Gasoonjia merged 1 commit into
gh/Gasoonjia/78/origfrom
gh/Gasoonjia/79/orig
Oct 21, 2026
Merged

Gasoonjia merged 1 commit into
gh/Gasoonjia/78/origfrom
gh/Gasoonjia/79/orig

Conversation

@pytorchbot

Copy link
Copy Markdown
Collaborator

This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #23980 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/79/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/Gasoonjia/79/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/Gasoonjia/78/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/Gasoonjia/79/orig
Differential Revision: D125705712
@diff-train-skip-merge

Pull Request resolved: #23980

Export a tapped target plus a packed draft_forward for CUDA batching, matching
the MLX DFlash draft ABI: tokens[owners, block], hidden[1, C, H],
positions[C + Q], order[C + Q] -> logits[1, Q, V]. block = n_draft + 1.

- export_dflash.py: --use-offgraph-kv-cache with --backend cuda emits the
  packed draft over a draft cell cache (--draft-max-cells, --max-draft-owners).
- export_solo.py: device residency and cache wiring for draft methods.
- dflash_model.py: packed draft forward; cuda.py: hidden tapping for CUDA.
ghstack-source-id: 453099258
@exported-using-ghexport

Differential Revision: [D125705712](https://our.internmc.facebook.com/intern/diff/D125705712/)
@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/24038

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

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 Oct 21, 2026
@Gasoonjia
Gasoonjia added this pull request to stack #24044 October 21, 2026 06:44
@Gasoonjia
Gasoonjia merged commit 81b1dc1 into main Oct 21, 2026
276 of 292 checks passed
@Gasoonjia
Gasoonjia deleted the gh/Gasoonjia/79/orig branch October 21, 2026 06:48

This branch was successfully deployed

1 active deployment
cadence — b2621c83 Deployed Oct 21, 2026 by pytorchbot via hifi-op-test / hifi4 #34252
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants