Skip to content

Commit

Permalink
[V1] Enable custom ops with piecewise CUDA graphs (#10228)
Browse files Browse the repository at this point in the history
Signed-off-by: Woosuk Kwon <[email protected]>
  • Loading branch information
WoosukKwon authored Nov 11, 2024
1 parent 8a7fe47 commit 9d5b4e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vllm/v1/worker/gpu_model_runner.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import time
from dataclasses import dataclass
from typing import TYPE_CHECKING, Dict, List, Optional, Set
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 9d5b4e4

Please sign in to comment.