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
511eeccd
Commit
511eeccd
authored
Nov 27, 2025
by
zhuwenwen
Browse files
update torch.float16
parent
42a95309
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
vllm/model_executor/layers/fused_moe/fused_moe.py
vllm/model_executor/layers/fused_moe/fused_moe.py
+1
-1
vllm/v1/attention/backends/flash_attn.py
vllm/v1/attention/backends/flash_attn.py
+1
-1
No files found.
vllm/model_executor/layers/fused_moe/fused_moe.py
View file @
511eeccd
...
...
@@ -1885,7 +1885,7 @@ def fused_experts_impl(
use_nn_moe
=
use_nn_moe
)
if
activation
==
"silu"
:
if
envs
.
VLLM_USE_FUSE_SILU_AND_MUL
and
intermediate_cache1
.
dtype
==
intermediate_cache2
.
dtype
==
"fp
16
"
:
if
envs
.
VLLM_USE_FUSE_SILU_AND_MUL
and
intermediate_cache1
.
dtype
==
intermediate_cache2
.
dtype
==
torch
.
float
16
:
from
lightop
import
fuse_silu_and_mul
fuse_silu_and_mul
(
intermediate_cache1
.
view
(
-
1
,
N
),
intermediate_cache2
)
else
:
...
...
vllm/v1/attention/backends/flash_attn.py
View file @
511eeccd
...
...
@@ -566,7 +566,7 @@ class FlashAttentionImpl(AttentionImpl):
layer
.
_v_scale
,
)
else
:
if
envs
.
VLLM_USE_OPT_RESHAPE_AND_CACHE
and
key
.
dtype
==
value
.
dtype
==
"fp
16
"
:
if
envs
.
VLLM_USE_OPT_RESHAPE_AND_CACHE
and
key
.
dtype
==
value
.
dtype
==
torch
.
float
16
:
from
lightop
import
reshape_and_cache_cuda
reshape_and_cache_cuda
(
key
,
value
,
...
...
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