We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e08521 commit 04aadb3Copy full SHA for 04aadb3
vllm/model_executor/utils.py
@@ -7,6 +7,8 @@
7
8
import torch
9
10
+from vllm.utils import is_torch_equal_or_newer
11
+
12
13
def set_random_seed(seed: int) -> None:
14
from vllm.platforms import current_platform
@@ -117,4 +119,4 @@ def wrapper(*args, **kwargs):
117
119
torch._inductor.config.graph_partition = old_val
118
120
return out
121
- return wrapper
122
+ return wrapper if is_torch_equal_or_newer("2.9.0.dev") else func
0 commit comments