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
b3d0b379
Unverified
Commit
b3d0b379
authored
Mar 20, 2026
by
Wentao Ye
Committed by
GitHub
Mar 20, 2026
Browse files
[Refactor] Remove unused dead code (#36171)
Signed-off-by:
yewentao256
<
zhyanwentao@126.com
>
parent
85f671b8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
29 deletions
+0
-29
vllm/distributed/kv_transfer/kv_connector/v1/moriio/moriio_connector.py
...ed/kv_transfer/kv_connector/v1/moriio/moriio_connector.py
+0
-3
vllm/model_executor/layers/fused_moe/deepep_ll_prepare_finalize.py
...l_executor/layers/fused_moe/deepep_ll_prepare_finalize.py
+0
-5
vllm/model_executor/layers/fused_moe/utils.py
vllm/model_executor/layers/fused_moe/utils.py
+0
-21
No files found.
vllm/distributed/kv_transfer/kv_connector/v1/moriio/moriio_connector.py
View file @
b3d0b379
...
@@ -1396,9 +1396,6 @@ class MoRIIOConnectorWorker:
...
@@ -1396,9 +1396,6 @@ class MoRIIOConnectorWorker:
remote_ip
=
meta
.
remote_host
,
remote_ip
=
meta
.
remote_host
,
)
)
def
_is_last_layer
(
self
,
layer_name
):
return
layer_name
==
list
(
self
.
kv_caches
.
keys
())[
-
1
]
def
merge_contiguous_blocks
(
def
merge_contiguous_blocks
(
self
,
self
,
offsets_local
:
list
[
int
],
offsets_local
:
list
[
int
],
...
...
vllm/model_executor/layers/fused_moe/deepep_ll_prepare_finalize.py
View file @
b3d0b379
...
@@ -158,11 +158,6 @@ class DeepEPLLPrepareAndFinalize(mk.FusedMoEPrepareAndFinalizeModular):
...
@@ -158,11 +158,6 @@ class DeepEPLLPrepareAndFinalize(mk.FusedMoEPrepareAndFinalizeModular):
return
topk_ids
return
topk_ids
return
self
.
global_to_physical
[
topk_ids
]
return
self
.
global_to_physical
[
topk_ids
]
def
_map_local_to_global_ids
(
self
,
expert_topk_ids
:
torch
.
Tensor
)
->
torch
.
Tensor
:
if
self
.
local_expert_global_ids
is
None
:
return
expert_topk_ids
return
self
.
local_expert_global_ids
[
expert_topk_ids
]
def
_do_quant
(
def
_do_quant
(
self
,
self
,
x
:
torch
.
Tensor
|
tuple
[
torch
.
Tensor
,
torch
.
Tensor
],
x
:
torch
.
Tensor
|
tuple
[
torch
.
Tensor
,
torch
.
Tensor
],
...
...
vllm/model_executor/layers/fused_moe/utils.py
View file @
b3d0b379
...
@@ -316,27 +316,6 @@ def normalize_batched_scales_shape(
...
@@ -316,27 +316,6 @@ def normalize_batched_scales_shape(
return
scales
return
scales
def
_validate_scale_shape
(
a
:
torch
.
Tensor
,
a_scale
:
torch
.
Tensor
|
None
,
per_act_token_quant
:
bool
,
block_shape
:
list
[
int
]
|
None
,
)
->
None
:
if
a_scale
is
None
:
return
if
not
per_act_token_quant
and
block_shape
is
None
:
assert
a_scale
.
numel
()
==
1
,
f
"
{
a_scale
.
shape
}
"
elif
per_act_token_quant
:
assert
a_scale
.
shape
[
0
]
==
a
.
shape
[
0
]
and
a_scale
.
shape
[
1
]
==
1
,
(
f
"
{
a_scale
.
shape
[
0
]
}
==
{
a
.
shape
[
0
]
}
and
{
a_scale
.
shape
[
1
]
}
== 1"
)
else
:
assert
block_shape
is
not
None
expected
=
(
a
.
shape
[
0
],
cdiv
(
a
.
shape
[
1
],
block_shape
[
1
]))
assert
a_scale
.
shape
==
expected
,
f
"
{
a_scale
.
shape
}
==
{
expected
}
"
# Torch custom ops can't deal with outputs aliasing inputs so we need to
# Torch custom ops can't deal with outputs aliasing inputs so we need to
# disable inplace for torch >= 2.9.
# disable inplace for torch >= 2.9.
# See https://github.com/vllm-project/vllm/issues/26378
# See https://github.com/vllm-project/vllm/issues/26378
...
...
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