-
Notifications
You must be signed in to change notification settings - Fork 16
Add support for arbitrary inputs and outputs in AutoParallel #311
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,13 @@ | |
|
|
||
| from autoparallel.api import AutoParallel | ||
|
|
||
| # @pytest.fixture(autouse=True) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @xmfan it looks like I'm not properly resetting some global state in dynamo with my changes. This means that running a single test in isolation works fine, but running the full suite fails. The failure disappears if I reset the dynamo state, but to me this seems like a fundamental issue. Claude mentioned
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the python test implementation though, they reuse the same process for faster times. In core, we mark problematic tests with the reset either manually or with a decorator
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So you mean that this isn't something I should worry about, and just reset dynamo? |
||
| # def reset_dynamo(): | ||
| # """Reset dynamo state before each test to ensure test isolation.""" | ||
| # torch._dynamo.reset() | ||
| # yield | ||
| # torch._dynamo.reset() | ||
|
|
||
|
|
||
| @pytest.fixture(scope="module", autouse=True) | ||
| def init_pg(): | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not directly mutate src_gm?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be happy to directly mutate
src_gm, but there seemed to have a number of properties of thesrc_gmthat would also need to be modified and which I didn't know before and didn't relate only to the underlyingfx.Graph(the CodeGen IIRC, don't remember anymore).The current implementation seems to behave as I would have expected, but I'm afraid it might be missing something that is expected for other parts of the system