Skip to content

Add --inductor flag to example_ds3_pp with FORCE_BALANCED_ROUTING#361

Open
xmfan wants to merge 1 commit intoxmfan/stack/30from
xmfan/stack/31
Open

Add --inductor flag to example_ds3_pp with FORCE_BALANCED_ROUTING#361
xmfan wants to merge 1 commit intoxmfan/stack/30from
xmfan/stack/31

Conversation

@xmfan
Copy link
Member

@xmfan xmfan commented Mar 10, 2026

Stacked PRs:


Add --inductor flag to example_ds3_pp with FORCE_BALANCED_ROUTING

The DSv3 MoE implementation uses .tolist() and data-dependent grouped_mm
offsets that Inductor cannot compile. Add FORCE_BALANCED_ROUTING to the
model that makes token-per-expert counts uniform and uses balanced
all-to-all splits, eliminating all data-dependent ops.

The --inductor CLI flag enables both Inductor compilation and forced
balanced routing together.

Authored with Claude.

xmfan added a commit that referenced this pull request Mar 10, 2026
The DSv3 MoE implementation uses .tolist() and data-dependent grouped_mm
offsets that Inductor cannot compile. Add FORCE_BALANCED_ROUTING to the
model that makes token-per-expert counts uniform and uses balanced
all-to-all splits, eliminating all data-dependent ops.

The --inductor CLI flag enables both Inductor compilation and forced
balanced routing together.

Authored with Claude.

stack-info: PR: #361, branch: xmfan/stack/31
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Mar 10, 2026
The DSv3 MoE implementation uses .tolist() and data-dependent grouped_mm
offsets that Inductor cannot compile. Add FORCE_BALANCED_ROUTING to the
model that makes token-per-expert counts uniform and uses balanced
all-to-all splits, eliminating all data-dependent ops.

The --inductor CLI flag enables both Inductor compilation and forced
balanced routing together.

Authored with Claude.

stack-info: PR: #361, branch: xmfan/stack/31
@xmfan xmfan changed the base branch from xmfan/stack/30 to main March 10, 2026 21:57
@xmfan xmfan changed the base branch from main to xmfan/stack/30 March 10, 2026 21:57
@xmfan xmfan requested a review from sanketpurandare March 12, 2026 06:07
@xmfan xmfan marked this pull request as ready for review March 12, 2026 06:07
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 Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant