Skip to content

Commit 17c540a

Browse files
authored
[torch.compile] fix simple inductor graph partition test (#27050)
Signed-off-by: Boyuan Feng <[email protected]>
1 parent 4d4d6ba commit 17c540a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/compile/piecewise/test_simple.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ def test_simple_piecewise_compile(use_inductor):
142142

143143

144144
@torch.inference_mode()
145-
@pytest.mark.parametrize("splitting_ops", [["silly::attention"], []])
146-
def test_simple_inductor_graph_partition(splitting_ops, monkeypatch):
145+
def test_simple_inductor_graph_partition(monkeypatch):
147146
if not is_torch_equal_or_newer("2.9.0.dev"):
148147
pytest.skip("inductor graph partition is only available in PyTorch 2.9+")
149148

@@ -152,8 +151,7 @@ def test_simple_inductor_graph_partition(splitting_ops, monkeypatch):
152151
monkeypatch.setenv("VLLM_DISABLE_COMPILE_CACHE", "1")
153152

154153
_run_simple_model(
155-
# Inductor graph partition automatically resets splitting_ops to an empty list
156-
splitting_ops=splitting_ops,
154+
splitting_ops=["silly::attention"],
157155
use_inductor_graph_partition=True,
158156
use_inductor=True,
159157
# Since not splitting at fx graph level

0 commit comments

Comments
 (0)