"tests/kernels/quantization/untest_block_int8.py" did not exist on "c1909e7e8ccd2037e76536a8e726120c85d3754e"
Unverified Commit aa42561e authored by Richard Zou's avatar Richard Zou Committed by GitHub
Browse files

Fix PiecewiseCompileInterpreter (#17338)


Signed-off-by: default avatarrzou <zou3519@gmail.com>
parent de65fc8e
......@@ -10,6 +10,7 @@ from typing import Any, Callable, Optional
import torch
import torch.fx as fx
from torch._dispatch.python import enable_python_dispatcher
import vllm.envs as envs
from vllm.config import CompilationConfig, VllmConfig
......@@ -269,7 +270,7 @@ class PiecewiseCompileInterpreter(torch.fx.Interpreter):
self.fake_mode.from_tensor(t) if isinstance(t, torch.Tensor) else t
for t in args
]
with self.fake_mode:
with self.fake_mode, enable_python_dispatcher():
return super().run(*fake_args)
def call_module(self, target: torch.fx.node.Target,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment