-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
[torch.compile] fix simple inductor graph partition test #27050
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
[torch.compile] fix simple inductor graph partition test #27050
Conversation
Signed-off-by: Boyuan Feng <boyuan@meta.com>
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.
Code Review
This pull request correctly fixes a failing test for inductor graph partitioning by ensuring that splitting_ops is properly configured. The test was failing because a recent change made inductor respect splitting_ops, and the test was passing an empty list, which disabled partitioning. My main feedback is to remove an outdated and misleading comment in the test code that contradicts the new behavior.
| monkeypatch.setenv("VLLM_DISABLE_COMPILE_CACHE", "1") | ||
|
|
||
| _run_simple_model( | ||
| # Inductor graph partition automatically resets splitting_ops to an empty list |
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.
This comment appears to be outdated and incorrect. The pull request description explains that inductor partitioning now respects splitting_ops, and the test was failing with splitting_ops=[] because it prevented partitioning. This comment claims the opposite, that splitting_ops is automatically reset to an empty list. To avoid confusion for future developers, this comment should be removed.
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.
Can you remove the comment?
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.
yes cleaned
commit 41590e7 Author: Boyuan Feng <boyuan@meta.com> Date: Thu Oct 16 13:25:18 2025 -0700 nit Signed-off-by: Boyuan Feng <boyuan@meta.com> commit 8393288 Author: Boyuan Feng <boyuan@meta.com> Date: Thu Oct 16 13:04:14 2025 -0700 fix simple inductor graph partition test Signed-off-by: Boyuan Feng <boyuan@meta.com> Signed-off-by: ProExpertProg <lgovedic@redhat.com>
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.
Added to #27050
|
Passed tests in CI, merged! |
…t#27050) Signed-off-by: Boyuan Feng <boyuan@meta.com>
…t#27050) Signed-off-by: Boyuan Feng <boyuan@meta.com>
…t#27050) Signed-off-by: Boyuan Feng <boyuan@meta.com> Signed-off-by: Alberto Perdomo <aperdomo@redhat.com>
…t#27050) Signed-off-by: Boyuan Feng <boyuan@meta.com>
…t#27050) Signed-off-by: Boyuan Feng <boyuan@meta.com> Signed-off-by: xuebwang-amd <xuebwang@amd.com>
…t#27050) Signed-off-by: Boyuan Feng <boyuan@meta.com> Signed-off-by: xuebwang-amd <xuebwang@amd.com>
…t#27050) Signed-off-by: Boyuan Feng <boyuan@meta.com> Signed-off-by: 0xrushi <6279035+0xrushi@users.noreply.github.com>
…t#27050) Signed-off-by: Boyuan Feng <boyuan@meta.com> Signed-off-by: 0xrushi <6279035+0xrushi@users.noreply.github.com>
This PR fixes a inductor graph partition test.
The error happened since silly attention is NOT partitioned. Why? Because #25845 lets inductor partition respect splitting_ops and the test
splitting_ops=[]says don't partition on any ops.