Skip to content

Qwen 3.5 MoE: Add Metal build target#18881

Merged
manuelcandales merged 67 commits intomainfrom
gh/manuelcandales/176/head
Apr 21, 2026
Merged

Qwen 3.5 MoE: Add Metal build target#18881
manuelcandales merged 67 commits intomainfrom
gh/manuelcandales/176/head

Conversation

@manuelcandales
Copy link
Copy Markdown
Contributor

Adds make qwen3_5_moe-metal which builds the runner linked against the
Metal backend instead of CUDA:

  • CMakeLists.txt: conditional metal_backend vs aoti_cuda_backend linking
  • CMakePresets.json: add qwen3-5-moe-metal preset (Darwin only)
  • main.cpp: guard CUDA includes/calls behind EXECUTORCH_BUILD_CUDA,
    route T=1 prompts to decode method (prefill has min seq_len=2)
  • Makefile: add qwen3_5_moe-metal target

Authored with Claude.

[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Apr 14, 2026

🔗 Helpful Links

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

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.

manuelcandales added a commit that referenced this pull request Apr 14, 2026
Adds make qwen3_5_moe-metal which builds the runner linked against the
Metal backend instead of CUDA:
- CMakeLists.txt: conditional metal_backend vs aoti_cuda_backend linking
- CMakePresets.json: add qwen3-5-moe-metal preset (Darwin only)
- main.cpp: guard CUDA includes/calls behind EXECUTORCH_BUILD_CUDA,
  route T=1 prompts to decode method (prefill has min seq_len=2)
- Makefile: add qwen3_5_moe-metal target

Authored with Claude.


ghstack-source-id: 655fca1
ghstack-comment-id: 4245515800
Pull-Request: #18881
@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 Apr 14, 2026
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
manuelcandales added a commit that referenced this pull request Apr 14, 2026
Adds make qwen3_5_moe-metal which builds the runner linked against the
Metal backend instead of CUDA:
- CMakeLists.txt: conditional metal_backend vs aoti_cuda_backend linking
- CMakePresets.json: add qwen3-5-moe-metal preset (Darwin only)
- main.cpp: guard CUDA includes/calls behind EXECUTORCH_BUILD_CUDA,
  route T=1 prompts to decode method (prefill has min seq_len=2)
- Makefile: add qwen3_5_moe-metal target

Authored with Claude.

ghstack-source-id: aa806ac
ghstack-comment-id: 4245515800
Pull-Request: #18881
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
Base automatically changed from gh/manuelcandales/175/head to main April 21, 2026 18:38
[ghstack-poisoned]
@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.

@manuelcandales manuelcandales merged commit 2c707e9 into main Apr 21, 2026
182 of 187 checks passed
@manuelcandales manuelcandales deleted the gh/manuelcandales/176/head branch April 21, 2026 18:49
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