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
d2fe5111
"...ssh:/git@developer.sourcefind.cn:2222/tsoc/openmm.git" did not exist on "b202be8e04416cd217219362a5eb6d4f67eb0831"
Commit
d2fe5111
authored
Dec 18, 2025
by
zhuwenwen
Browse files
fix optional and profling
parent
8d0e36b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
vllm/compilation/decorators.py
vllm/compilation/decorators.py
+1
-0
vllm/model_executor/models/deepseek_v2.py
vllm/model_executor/models/deepseek_v2.py
+5
-5
No files found.
vllm/compilation/decorators.py
View file @
d2fe5111
...
@@ -32,6 +32,7 @@ from vllm.utils.torch_utils import supports_dynamo
...
@@ -32,6 +32,7 @@ from vllm.utils.torch_utils import supports_dynamo
from
.monitor
import
start_monitoring_torch_compile
from
.monitor
import
start_monitoring_torch_compile
from
vllm.config
import
VllmConfig
from
vllm.config
import
VllmConfig
from
vllm.forward_context
import
get_profilling
logger
=
init_logger
(
__name__
)
logger
=
init_logger
(
__name__
)
...
...
vllm/model_executor/models/deepseek_v2.py
View file @
d2fe5111
...
@@ -232,9 +232,9 @@ class DeepseekV2MLP(nn.Module):
...
@@ -232,9 +232,9 @@ class DeepseekV2MLP(nn.Module):
self
.
act_fn
=
SiluAndMul
()
self
.
act_fn
=
SiluAndMul
()
def
forward
(
self
,
x
,
def
forward
(
self
,
x
,
rms_weight
:
Optional
[
torch
.
Tensor
]
=
None
,
rms_weight
:
torch
.
Tensor
|
None
=
None
,
residual
:
Optional
[
torch
.
Tensor
]
=
None
,
residual
:
torch
.
Tensor
|
None
=
None
,
update_hd
:
Optional
[
bool
]
=
False
update_hd
:
bool
|
None
=
False
):
):
if
envs
.
USE_FUSED_RMS_QUANT
:
if
envs
.
USE_FUSED_RMS_QUANT
:
gate_up
,
new_resi
,
_
=
self
.
gate_up_proj
(
x
,
rms_weight
,
residual
,
update_hd
=
update_hd
)
gate_up
,
new_resi
,
_
=
self
.
gate_up_proj
(
x
,
rms_weight
,
residual
,
update_hd
=
update_hd
)
...
@@ -356,8 +356,8 @@ class DeepseekV2MoE(nn.Module):
...
@@ -356,8 +356,8 @@ class DeepseekV2MoE(nn.Module):
)
)
def
forward
(
self
,
hidden_states
:
torch
.
Tensor
,
def
forward
(
self
,
hidden_states
:
torch
.
Tensor
,
rms_weight
:
Optional
[
torch
.
Tensor
]
=
None
,
rms_weight
:
torch
.
Tensor
|
None
=
None
,
residual
:
Optional
[
torch
.
Tensor
]
=
None
residual
:
torch
.
Tensor
|
None
=
None
)
->
torch
.
Tensor
:
)
->
torch
.
Tensor
:
num_tokens
,
hidden_dim
=
hidden_states
.
shape
num_tokens
,
hidden_dim
=
hidden_states
.
shape
hidden_states
=
hidden_states
.
view
(
-
1
,
hidden_dim
)
hidden_states
=
hidden_states
.
view
(
-
1
,
hidden_dim
)
...
...
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