You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vllm/model_executor/custom_op.py
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -114,9 +114,7 @@ def enabled(cls) -> bool:
114
114
custom_ops=compilation_config.custom_ops
115
115
ifnothasattr(cls, "name"):
116
116
logger.warning_once(
117
-
"Custom op %s was not registered, which means it won't appear\
118
-
in the op registry. It will be enabled/disabled based on the\
119
-
global settings.", # noqa: E501
117
+
"Custom op %s was not registered, which means it won't appear in the op registry. It will be enabled/disabled based on the global settings.", # noqa: E501
120
118
cls.__name__,
121
119
)
122
120
returnCustomOp.default_on()
@@ -130,17 +128,19 @@ def enabled(cls) -> bool:
130
128
@staticmethod
131
129
defdefault_on() ->bool:
132
130
"""
133
-
Behavior controlled by `CompilationConfig.custom_ops`: On by default if
134
-
'all', off by default if 'none'.
135
-
When PyTorch Inductor is used, 'none' is the default value,
136
-
otherwise 'all'.
131
+
On by default if PyTorch Inductor is not used.
132
+
Specifying 'all' or 'none' in custom_op takes precedence.
0 commit comments