[V1] Enable custom ops with piecewise CUDA graphs (#10228)
Signed-off-by: Woosuk Kwon <woosuk.kwon@berkeley.edu>
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import os
|
||||||
import time
|
import time
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from typing import TYPE_CHECKING, Dict, List, Optional, Set
|
from typing import TYPE_CHECKING, Dict, List, Optional, Set
|
||||||
@@ -405,6 +406,7 @@ class GPUModelRunner:
|
|||||||
if self.use_cuda_graph:
|
if self.use_cuda_graph:
|
||||||
# FIXME(woosuk): Currently, we do not use inductor to reduce the
|
# FIXME(woosuk): Currently, we do not use inductor to reduce the
|
||||||
# compilation time and any potential issues with the inductor.
|
# compilation time and any potential issues with the inductor.
|
||||||
|
os.environ["VLLM_CUSTOM_OPS"] = "all"
|
||||||
set_compilation_config(
|
set_compilation_config(
|
||||||
CompilationConfig(
|
CompilationConfig(
|
||||||
use_cudagraph=True,
|
use_cudagraph=True,
|
||||||
|
|||||||
Reference in New Issue
Block a user