Skip to content

Conversation

@fmassa
Copy link
Contributor

@fmassa fmassa commented Nov 21, 2025

This PR adds support for non-tensor inputs in AutoParallel.

The current tracing system seems to bake-in the non-tensor values as constants in the graph, so the only place where they appear is as a placeholder node which isn't used anywhere.
So the current approach is just to do the bare minimum for this case to correctly run.

Non-tensor inputs should have a None input placement, which is exercised in the newly-added test

@fmassa fmassa requested review from ezyang and xmfan November 21, 2025 22:08
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 21, 2025


@register_opschema_rule(torch.ops.aten.split.Tensor)
def split_rule(mesh, op_schema):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aten.split.Tensor has been implemented upstream in pytorch/pytorch#149106

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.

2 participants