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
d0485181
Commit
d0485181
authored
Nov 07, 2025
by
zhuwenwen
Browse files
remove redundant envs
parent
4fc7b5d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/model_executor/layers/activation.py
vllm/model_executor/layers/activation.py
+1
-1
No files found.
vllm/model_executor/layers/activation.py
View file @
d0485181
...
@@ -75,7 +75,7 @@ class SiluAndMul(CustomOp):
...
@@ -75,7 +75,7 @@ class SiluAndMul(CustomOp):
def
forward_native
(
self
,
x
:
torch
.
Tensor
)
->
torch
.
Tensor
:
def
forward_native
(
self
,
x
:
torch
.
Tensor
)
->
torch
.
Tensor
:
"""PyTorch-native implementation equivalent to forward()."""
"""PyTorch-native implementation equivalent to forward()."""
if
not
torch
.
compiler
.
is_compiling
()
and
envs
.
envs
.
VLLM_ENABLE_TBO
:
if
not
torch
.
compiler
.
is_compiling
()
and
envs
.
VLLM_ENABLE_TBO
:
return
self
.
forward_cuda
(
x
)
return
self
.
forward_cuda
(
x
)
elif
envs
.
VLLM_USE_OPT_OP
:
elif
envs
.
VLLM_USE_OPT_OP
:
return
self
.
forward_cuda
(
x
)
return
self
.
forward_cuda
(
x
)
...
...
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