Skip to content

WIP summarize ranks #160284

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: gh/wconstab/441/base
Choose a base branch
from
Open

WIP summarize ranks #160284

wants to merge 4 commits into from

Conversation

wconstab
Copy link
Contributor

@wconstab wconstab commented Aug 10, 2025

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Aug 10, 2025

🔗 Helpful Links

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

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

⏳ No Failures, 22 Pending

As of commit 54ae0af with merge base 556e2a7 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@pytorch-bot pytorch-bot bot added oncall: distributed Add this issue/PR to distributed oncall triage queue topic: not user facing topic category labels Aug 10, 2025
wconstab added a commit that referenced this pull request Aug 10, 2025
ghstack-source-id: 37921cd
Pull Request resolved: #160284
cc H-Huang awgu wanchaol fegin fduwjj wz337 d4l3k pragupta

[ghstack-poisoned]
wconstab added a commit that referenced this pull request Aug 11, 2025
ghstack-source-id: 5d67f16
Pull Request resolved: #160284
cc H-Huang awgu wanchaol fegin fduwjj wz337 d4l3k pragupta

[ghstack-poisoned]
wconstab added a commit that referenced this pull request Aug 11, 2025
ghstack-source-id: 3830570
Pull Request resolved: #160284
cc H-Huang awgu wanchaol fegin fduwjj wz337 d4l3k pragupta

[ghstack-poisoned]
wconstab added a commit that referenced this pull request Aug 12, 2025
Prints ranges of ranks succinctly.

e.g.

For a strided list of ranks, summarizes down to just 3 elements:
```
"(0, 512, ..., 4096)"
```

For ranges, uses a :
```
"0:8"
```

Note: endpoints are exclusive. This may not be intuitive to everyone,
but in the first above the last rank is 3584, and in the second it is
7.

Currently, does not support combinations of striding _and_ range.  (e.g.
can not generate a representation like "0:2, 4:6, ..., 12:14".  Is this
needed / useful? If so it could be added.

ghstack-source-id: a227f4a
Pull Request resolved: #160284
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
oncall: distributed Add this issue/PR to distributed oncall triage queue topic: not user facing topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant