Skip to content

Commit 04aadb3

Browse files
committed
nit
Signed-off-by: Boyuan Feng <boyuan@meta.com>
1 parent 8e08521 commit 04aadb3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vllm/model_executor/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
import torch
99

10+
from vllm.utils import is_torch_equal_or_newer
11+
1012

1113
def set_random_seed(seed: int) -> None:
1214
from vllm.platforms import current_platform
@@ -117,4 +119,4 @@ def wrapper(*args, **kwargs):
117119
torch._inductor.config.graph_partition = old_val
118120
return out
119121

120-
return wrapper
122+
return wrapper if is_torch_equal_or_newer("2.9.0.dev") else func

0 commit comments

Comments
 (0)