diff --git a/vllm/v1/worker/gpu_model_runner.py b/vllm/v1/worker/gpu_model_runner.py index 74a7b4caa6b16..2c40853742ac9 100644 --- a/vllm/v1/worker/gpu_model_runner.py +++ b/vllm/v1/worker/gpu_model_runner.py @@ -1,3 +1,4 @@ +import os import time from dataclasses import dataclass from typing import TYPE_CHECKING, Dict, List, Optional, Set @@ -405,6 +406,7 @@ def load_model(self) -> None: if self.use_cuda_graph: # FIXME(woosuk): Currently, we do not use inductor to reduce the # compilation time and any potential issues with the inductor. + os.environ["VLLM_CUSTOM_OPS"] = "all" set_compilation_config( CompilationConfig( use_cudagraph=True,