Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
700a1ddc
Unverified
Commit
700a1ddc
authored
Mar 11, 2026
by
Martin Hickey
Committed by
GitHub
Mar 11, 2026
Browse files
[Misc] Use envs module to get VLLM_DISABLED_KERNELS (#35776)
Signed-off-by:
Martin Hickey
<
martin.hickey@ie.ibm.com
>
parent
f33251ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
vllm/model_executor/kernels/linear/__init__.py
vllm/model_executor/kernels/linear/__init__.py
+1
-3
No files found.
vllm/model_executor/kernels/linear/__init__.py
View file @
700a1ddc
...
@@ -13,7 +13,6 @@ or kernel implementation, add it to this __init__.py to maintain
...
@@ -13,7 +13,6 @@ or kernel implementation, add it to this __init__.py to maintain
import stability.
import stability.
"""
"""
import
os
from
typing
import
TypeVar
from
typing
import
TypeVar
import
torch
import
torch
...
@@ -154,8 +153,7 @@ _KernelConfigT = TypeVar("_KernelConfigT", bound=ScaledMMLinearLayerConfig)
...
@@ -154,8 +153,7 @@ _KernelConfigT = TypeVar("_KernelConfigT", bound=ScaledMMLinearLayerConfig)
def
is_supported_and_can_implement_kernel
(
def
is_supported_and_can_implement_kernel
(
kernel
:
type
[
_KernelT
],
config
:
_KernelConfigT
,
compute_capability
:
int
|
None
kernel
:
type
[
_KernelT
],
config
:
_KernelConfigT
,
compute_capability
:
int
|
None
)
->
tuple
[
bool
,
str
]:
)
->
tuple
[
bool
,
str
]:
# TODO: Fetch `VLLM_DISABLED_KERNELS` from vllm.envs instead.
if
kernel
.
__name__
in
envs
.
VLLM_DISABLED_KERNELS
:
if
kernel
.
__name__
in
os
.
environ
.
get
(
"VLLM_DISABLED_KERNELS"
,
""
).
split
(
","
):
return
False
,
f
"
{
kernel
.
__name__
}
is disabled by environment variable"
return
False
,
f
"
{
kernel
.
__name__
}
is disabled by environment variable"
if
compute_capability
is
None
:
if
compute_capability
is
None
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment