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
1faf662d
Commit
1faf662d
authored
Oct 02, 2025
by
zhuwenwen
Browse files
skip is_v32
parent
9ae6b242
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
vllm/model_executor/layers/fused_moe/fused_moe.py
vllm/model_executor/layers/fused_moe/fused_moe.py
+1
-1
vllm/model_executor/models/deepseek_v2.py
vllm/model_executor/models/deepseek_v2.py
+4
-2
No files found.
vllm/model_executor/layers/fused_moe/fused_moe.py
View file @
1faf662d
...
@@ -7,7 +7,7 @@ import os
...
@@ -7,7 +7,7 @@ import os
# torch.compile needs typing.List. It will fail torch.library.infer_schema
# torch.compile needs typing.List. It will fail torch.library.infer_schema
# otherwise
# otherwise
from
typing
import
List
# noqa: UP035
from
typing
import
List
# noqa: UP035
from
typing
import
Any
,
Callable
,
Optional
,
Union
,
List
from
typing
import
Any
,
Callable
,
Optional
,
Union
,
List
,
Dict
import
torch
import
torch
...
...
vllm/model_executor/models/deepseek_v2.py
View file @
1faf662d
...
@@ -938,7 +938,8 @@ class DeepseekV2MLAAttention(nn.Module):
...
@@ -938,7 +938,8 @@ class DeepseekV2MLAAttention(nn.Module):
mscale
=
yarn_get_mscale
(
scaling_factor
,
float
(
mscale_all_dim
))
mscale
=
yarn_get_mscale
(
scaling_factor
,
float
(
mscale_all_dim
))
self
.
scaling
=
self
.
scaling
*
mscale
*
mscale
self
.
scaling
=
self
.
scaling
*
mscale
*
mscale
self
.
is_v32
=
hasattr
(
config
,
"index_topk"
)
# self.is_v32 = hasattr(config, "index_topk")
self
.
is_v32
=
False
if
self
.
is_v32
:
if
self
.
is_v32
:
self
.
indexer
=
Indexer
(
vllm_config
,
config
,
hidden_size
,
self
.
indexer
=
Indexer
(
vllm_config
,
config
,
hidden_size
,
...
@@ -1116,7 +1117,8 @@ class DeepseekV2Model(nn.Module):
...
@@ -1116,7 +1117,8 @@ class DeepseekV2Model(nn.Module):
self
.
config
=
config
self
.
config
=
config
self
.
vocab_size
=
config
.
vocab_size
self
.
vocab_size
=
config
.
vocab_size
self
.
is_v32
=
hasattr
(
config
,
"index_topk"
)
# self.is_v32 = hasattr(config, "index_topk")
self
.
is_v32
=
False
if
self
.
is_v32
:
if
self
.
is_v32
:
topk_tokens
=
config
.
index_topk
topk_tokens
=
config
.
index_topk
topk_indices_buffer
=
torch
.
empty
(
topk_indices_buffer
=
torch
.
empty
(
...
...
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