Skip to content

[DTensor] Handle kwargs tensor inputs in dijkstra search - #176221

Closed
wconstab wants to merge 3 commits into
gh/wconstab/556/basefrom
gh/wconstab/556/head
Closed

wconstab wants to merge 3 commits into
gh/wconstab/556/basefrom
gh/wconstab/556/head

Conversation

@wconstab

@wconstab wconstab commented Mar 2, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Replace the blanket kwargs bailout with proper handling: extract kwargs
DTensorSpecs, include them in the result OpSpec with their current
placements and zero redistribute cost. The PQ search still only
explores positional arg placements (since single-dim strategies don't
cover kwargs), but kwargs tensors are no longer a reason to fall back
to full expansion.

TupleStrategy in kwargs still triggers a fallback since variable-length
tuple inputs aren't modeled by the PQ search.

Authored with Claude.

Replace the blanket kwargs bailout with proper handling: extract kwargs
DTensorSpecs, include them in the result OpSpec with their current
placements and zero redistribute cost.  The PQ search still only
explores positional arg placements (since single-dim strategies don't
cover kwargs), but kwargs tensors are no longer a reason to fall back
to full expansion.

TupleStrategy in kwargs still triggers a fallback since variable-length
tuple inputs aren't modeled by the PQ search.

Authored with Claude.

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Mar 2, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure, 1 Unrelated Failure

As of commit 53cc3c2 with merge base 9774102 (image):

NEW FAILURE - The following job has failed:

UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

wconstab added a commit that referenced this pull request Mar 2, 2026
Replace the blanket kwargs bailout with proper handling: extract kwargs
DTensorSpecs, include them in the result OpSpec with their current
placements and zero redistribute cost.  The PQ search still only
explores positional arg placements (since single-dim strategies don't
cover kwargs), but kwargs tensors are no longer a reason to fall back
to full expansion.

TupleStrategy in kwargs still triggers a fallback since variable-length
tuple inputs aren't modeled by the PQ search.

Authored with Claude.

ghstack-source-id: 1eb7516
Pull Request resolved: #176221
Replace the blanket kwargs bailout with proper handling: extract kwargs
DTensorSpecs, include them in the result OpSpec with their current
placements and zero redistribute cost.  The PQ search still only
explores positional arg placements (since single-dim strategies don't
cover kwargs), but kwargs tensors are no longer a reason to fall back
to full expansion.

TupleStrategy in kwargs still triggers a fallback since variable-length
tuple inputs aren't modeled by the PQ search.

Authored with Claude.

[ghstack-poisoned]
wconstab added a commit that referenced this pull request Mar 2, 2026
Replace the blanket kwargs bailout with proper handling: extract kwargs
DTensorSpecs, include them in the result OpSpec with their current
placements and zero redistribute cost.  The PQ search still only
explores positional arg placements (since single-dim strategies don't
cover kwargs), but kwargs tensors are no longer a reason to fall back
to full expansion.

TupleStrategy in kwargs still triggers a fallback since variable-length
tuple inputs aren't modeled by the PQ search.

Authored with Claude.

ghstack-source-id: 354c94b
Pull Request resolved: #176221
Replace the blanket kwargs bailout with proper handling: extract kwargs
DTensorSpecs, include them in the result OpSpec with their current
placements and zero redistribute cost.  The PQ search still only
explores positional arg placements (since single-dim strategies don't
cover kwargs), but kwargs tensors are no longer a reason to fall back
to full expansion.

TupleStrategy in kwargs still triggers a fallback since variable-length
tuple inputs aren't modeled by the PQ search.

Authored with Claude.

[ghstack-poisoned]
wconstab added a commit that referenced this pull request Mar 9, 2026
Replace the blanket kwargs bailout with proper handling: extract kwargs
DTensorSpecs, include them in the result OpSpec with their current
placements and zero redistribute cost.  The PQ search still only
explores positional arg placements (since single-dim strategies don't
cover kwargs), but kwargs tensors are no longer a reason to fall back
to full expansion.

TupleStrategy in kwargs still triggers a fallback since variable-length
tuple inputs aren't modeled by the PQ search.

Authored with Claude.

ghstack-source-id: 2ac4645
Pull Request resolved: #176221
if match_result is not None:
# Use pre-computed per-input costs from the PQ search instead of
# recomputing via generate_redistribute_costs -> _gen_transform_infos.
# kwargs tensor inputs keep their current placements (zero cost).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this seems bogus? probably only accounted for out= kwarg

@github-actions

github-actions Bot commented May 9, 2026

Copy link
Copy Markdown
Contributor

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@github-actions github-actions Bot added the Stale label May 9, 2026
@github-actions github-actions Bot closed this Jun 8, 2026
@github-actions
github-actions Bot deleted the gh/wconstab/556/head branch July 9, 2026 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant