Skip to content

[spmd_types] qwen3.5 enablement#3895

Draft
pianpwk wants to merge 4 commits into
gh/pianpwk/62/basefrom
gh/pianpwk/62/head
Draft

[spmd_types] qwen3.5 enablement#3895
pianpwk wants to merge 4 commits into
gh/pianpwk/62/basefrom
gh/pianpwk/62/head

Conversation

@pianpwk

@pianpwk pianpwk commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Enable Qwen3.5 spmd_types parallelization path and sharding contracts for dense, vision, GatedDeltaNet, and MoE paths.

Status:

  • Passing 1-step typechecking smokes: dense FSDP, TP, FSDP+TP, HSDP; MoE EP off, EP on, FSDP+TP+EP; varlen attention.

  • Passing 10-step bitwise default-vs-spmd_types loss and grad_norm: dense FSDP, dense HSDP, MoE FSDP with local dispatcher, MoE FSDP with standard A2A EP.

  • Blocked 10-step bitwise for TP-including default-backend shapes: default backend fails in Qwen3.5 vision rotary with mixed torch.Tensor/DTensor at torch.outer(seq, self.inv_freq).

  • Known remaining gaps: PP not tested; larger flavors not tested; flex_flash blocked by missing CUTE flash attention package; torch_native GatedDeltaNet fails kernel output type; fla_fused_recurrent backward is not implemented upstream.

[ghstack-poisoned]
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 10, 2026
[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Jul 10, 2026
Enable Qwen3.5 spmd_types parallelization path and sharding contracts for dense, vision, GatedDeltaNet, and MoE paths.

Status:

- Passing 1-step typechecking smokes: dense FSDP, TP, FSDP+TP, HSDP; MoE EP off, EP on, FSDP+TP+EP; varlen attention.

- Passing 10-step bitwise default-vs-spmd_types loss and grad_norm: dense FSDP, dense HSDP, MoE FSDP with local dispatcher, MoE FSDP with standard A2A EP.

- Blocked 10-step bitwise for TP-including default-backend shapes: default backend fails in Qwen3.5 vision rotary with mixed torch.Tensor/DTensor at torch.outer(seq, self.inv_freq).

- Known remaining gaps: PP not tested; larger flavors not tested; flex_flash blocked by missing CUTE flash attention package; torch_native GatedDeltaNet fails kernel output type; fla_fused_recurrent backward is not implemented upstream.
ghstack-source-id: 2d10476
Pull Request resolved: #3895
[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Jul 10, 2026
Enable Qwen3.5 input annotations, local multimodal regions, sharding configs, and torch_native GDN coverage for the spmd_types backend.

Status: FSDP=2 matched default backend bitwise over 10 debug steps. TP=2 and FSDP=2+TP=2 run, but are not bitwise against default backend; grad_norm diverges from step 1. TP=2 typechecking passes for qwen35_debugmodel and qwen35_debugmodel_gdn_torch_native.

ghstack-source-id: 9115a56
Pull Request resolved: #3895
[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Jul 10, 2026
Enable Qwen3.5 input annotations, local multimodal regions, sharding configs, and torch_native GDN coverage for the spmd_types backend.

Status: FSDP=2 matched default backend bitwise over 10 debug steps. TP=2 and FSDP=2+TP=2 run, but are not bitwise against default backend; grad_norm diverges from step 1. TP=2 typechecking passes for qwen35_debugmodel and qwen35_debugmodel_gdn_torch_native.

ghstack-source-id: 84201c7
Pull Request resolved: #3895
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/8gpu CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant