Skip to content
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

Retrieve schedules from get_schedule_class() #595

Open
wants to merge 2 commits into
base: gh/H-Huang/17/base
Choose a base branch
from

Conversation

H-Huang
Copy link
Member

@H-Huang H-Huang commented Oct 1, 2024

Stack from ghstack (oldest at bottom):

Removes glue code and allow users to pass in schedule arg as a string without updating titan.

Depends on pytorch/pytorch#137103

H-Huang added a commit that referenced this pull request Oct 1, 2024
ghstack-source-id: 8abfc98eb138e904749b632dc4250ee9da79314f
Pull Request resolved: #595
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 1, 2024
@@ -299,14 +299,14 @@ def __init__(self):
self.parser.add_argument(
"--experimental.pipeline_parallel_schedule",
type=str,
choices=["1f1b", "gpipe", "interleaved_1f1b", "flexible_interleaved_1f1b"],
choices=["1f1b", "gpipe", "Interleaved1F1B", "FlexibleInterleaved1F1B"],
Copy link
Contributor

Choose a reason for hiding this comment

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

any reason we leave 1f1b and gpipe in lower cases?

Copy link
Member Author

Choose a reason for hiding this comment

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

The get_schedule() method is case insensitive, the main change was i needed to remove the "_" in the other schedules. But I can change these as well for consistency.

Removes glue code and allow users to pass in schedule arg as a string without updating titan. 

Depends on pytorch/pytorch#137103


[ghstack-poisoned]
@XilunWu XilunWu requested a review from tianyu-l October 8, 2024 18:27
@@ -299,14 +299,14 @@ def __init__(self):
self.parser.add_argument(
"--experimental.pipeline_parallel_schedule",
type=str,
choices=["1f1b", "gpipe", "interleaved_1f1b", "flexible_interleaved_1f1b"],
default="1f1b",
choices=["1F1B", "Gpipe", "Interleaved1F1B", "FlexibleInterleaved1F1B"],
Copy link
Contributor

Choose a reason for hiding this comment

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

very tiny nit: GPipe instead of Gpipe

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.

4 participants