Skip to content

[kimi2.7] pass correct fsdp mesh for backend=spmd_types - #4070

Merged
weifengpy merged 1 commit into
mainfrom
weifeng/kimi-spmd-types-mesh-main
Aug 5, 2026
Merged

weifengpy merged 1 commit into
mainfrom
weifeng/kimi-spmd-types-mesh-main

Conversation

@weifengpy

@weifengpy weifengpy commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

clone of a previous approval #4063

before: spmd_types exposes the dense DP axis as dp_shard, but Kimi 2.7 requested the legacy fsdp axis, causing Invalid mesh dim: 'fsdp' during initialization

after: explicitly tells FSDP that dp_shard or efsdp is the data-parallel shard axis

Use the shared dense and sparse storage-mesh resolvers for the spmd_types backend and pass their explicit data-parallel axes to FSDP2. Ensure DP-only spmd_types runs config-based model parallelization and declares the vision output layouts required by that path. Preserve the default backend mesh selection.

Test Plan:
- pre-commit run --all-files
- Run the 2-GPU Kimi multimodal spmd_types integration test for 10 training steps.
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 5, 2026
@weifengpy
weifengpy requested a review from shuhuayu August 5, 2026 20:45
@weifengpy

Copy link
Copy Markdown
Contributor Author

need approval from one code owner, maybe @tianyu-l ?

@weifengpy
weifengpy merged commit 57cfb27 into main Aug 5, 2026
28 checks passed
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.

4 participants