[ET Device Support] CUDA-native Qwen 3.5 MoE inference with device tensor pipeline#18788
Open
Gasoonjia wants to merge 2 commits intogh/gasoonjia/164/basefrom
Open
[ET Device Support] CUDA-native Qwen 3.5 MoE inference with device tensor pipeline#18788Gasoonjia wants to merge 2 commits intogh/gasoonjia/164/basefrom
Gasoonjia wants to merge 2 commits intogh/gasoonjia/164/basefrom
Conversation
…nsor pipeline Integrate the ET device tensor pipeline into the Qwen 3.5 MoE model to eliminate unnecessary H2D/D2H copies during inference. - Export: Multi-method export (`forward` + `sample`) with device memory planning enabled and method-level H2D/D2H skipping. - Runner: Custom CUDA-native inference loop that keeps logits on GPU between forward and sample, reuses CUDA tensors across iterations, and only copies the 8-byte token ID back to CPU for EOS checking. Differential Revision: [D100133933](https://our.internmc.facebook.com/intern/diff/D100133933/) [ghstack-poisoned]
This was referenced Apr 8, 2026
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/18788
Note: Links to docs will display an error until the docs builds have been completed. ❌ 85 New Failures, 1 Cancelled JobAs of commit 5863ffa with merge base b5ae0b9 ( NEW FAILURES - The following jobs have failed:
CANCELLED JOB - The following job was cancelled. Please retry:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This was referenced Apr 8, 2026
Gasoonjia
added a commit
that referenced
this pull request
Apr 9, 2026
…nsor pipeline Integrate the ET device tensor pipeline into the Qwen 3.5 MoE model to eliminate unnecessary H2D/D2H copies during inference. - Export: Multi-method export (`forward` + `sample`) with device memory planning enabled and method-level H2D/D2H skipping. - Runner: Custom CUDA-native inference loop that keeps logits on GPU between forward and sample, reuses CUDA tensors across iterations, and only copies the 8-byte token ID back to CPU for EOS checking. Differential Revision: [D100133933](https://our.internmc.facebook.com/intern/diff/D100133933/) ghstack-source-id: 364764771 Pull Request resolved: #18788
This PR needs a
|
…h device tensor pipeline" Integrate the ET device tensor pipeline into the Qwen 3.5 MoE model to eliminate unnecessary H2D/D2H copies during inference. - Export: Multi-method export (`forward` + `sample`) with device memory planning enabled and method-level H2D/D2H skipping. - Runner: Custom CUDA-native inference loop that keeps logits on GPU between forward and sample, reuses CUDA tensors across iterations, and only copies the 8-byte token ID back to CPU for EOS checking. Differential Revision: [D100133933](https://our.internmc.facebook.com/intern/diff/D100133933/) [ghstack-poisoned]
Gasoonjia
added a commit
that referenced
this pull request
Apr 9, 2026
…nsor pipeline Pull Request resolved: #18788 Integrate the ET device tensor pipeline into the Qwen 3.5 MoE model to eliminate unnecessary H2D/D2H copies during inference. - Export: Multi-method export (`forward` + `sample`) with device memory planning enabled and method-level H2D/D2H skipping. - Runner: Custom CUDA-native inference loop that keeps logits on GPU between forward and sample, reuses CUDA tensors across iterations, and only copies the 8-byte token ID back to CPU for EOS checking. ghstack-source-id: 364908062 @exported-using-ghexport Differential Revision: [D100133933](https://our.internmc.facebook.com/intern/diff/D100133933/)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack from ghstack (oldest at bottom):
Integrate the ET device tensor pipeline into the Qwen 3.5 MoE model to
eliminate unnecessary H2D/D2H copies during inference.
forward+sample) with device memoryplanning enabled and method-level H2D/D2H skipping.
between forward and sample, reuses CUDA tensors across iterations,
and only copies the 8-byte token ID back to CPU for EOS checking.
Differential Revision: D100133933