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
93c8672c
Unverified
Commit
93c8672c
authored
Nov 20, 2025
by
Zhewen Li
Committed by
GitHub
Nov 20, 2025
Browse files
[Bugfix] Fix spec decode memory regression after #28549 (#28819)
Signed-off-by:
zhewenli
<
zhewenli@meta.com
>
parent
371b1d4c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
19 deletions
+5
-19
vllm/model_executor/models/deepseek_eagle.py
vllm/model_executor/models/deepseek_eagle.py
+0
-5
vllm/model_executor/models/llama4_eagle.py
vllm/model_executor/models/llama4_eagle.py
+0
-7
vllm/model_executor/models/llama_eagle.py
vllm/model_executor/models/llama_eagle.py
+0
-5
vllm/v1/spec_decode/eagle.py
vllm/v1/spec_decode/eagle.py
+5
-2
No files found.
vllm/model_executor/models/deepseek_eagle.py
View file @
93c8672c
...
...
@@ -8,7 +8,6 @@ import torch.nn as nn
from
vllm.compilation.decorators
import
support_torch_compile
from
vllm.config
import
VllmConfig
from
vllm.distributed.parallel_state
import
get_pp_group
from
vllm.model_executor.layers.fused_moe
import
FusedMoE
from
vllm.model_executor.layers.layernorm
import
RMSNorm
from
vllm.model_executor.layers.logits_processor
import
LogitsProcessor
...
...
@@ -172,10 +171,6 @@ class DeepseekV2Model(nn.Module):
)
break
else
:
# if PP disabled then draft will share embed with target
if
get_pp_group
().
world_size
==
1
and
"embed_tokens."
in
name
:
continue
# Skip loading extra bias for GPTQ models.
if
name
.
endswith
(
".bias"
)
and
name
not
in
params_dict
:
continue
...
...
vllm/model_executor/models/llama4_eagle.py
View file @
93c8672c
...
...
@@ -23,7 +23,6 @@ import torch.nn as nn
from
vllm.compilation.decorators
import
support_torch_compile
from
vllm.config
import
VllmConfig
from
vllm.distributed.parallel_state
import
get_pp_group
from
vllm.logger
import
init_logger
from
vllm.model_executor.layers.layernorm
import
RMSNorm
from
vllm.model_executor.layers.logits_processor
import
LogitsProcessor
...
...
@@ -127,17 +126,11 @@ class LlamaModel(nn.Module):
weight_loader
(
param
,
loaded_weight
,
shard_id
)
break
else
:
# if PP disabled then draft will share embed with target
if
get_pp_group
().
world_size
==
1
and
"embed_tokens."
in
name
:
continue
param
=
params_dict
[
name
]
weight_loader
=
getattr
(
param
,
"weight_loader"
,
default_weight_loader
)
weight_loader
(
param
,
loaded_weight
)
loaded_params
.
add
(
name
)
for
name
in
params_dict
:
# if PP disabled then draft will share embed with target
if
get_pp_group
().
world_size
==
1
and
"embed_tokens."
in
name
:
continue
assert
name
in
loaded_params
,
f
"
{
name
}
is not loaded!"
return
loaded_params
...
...
vllm/model_executor/models/llama_eagle.py
View file @
93c8672c
...
...
@@ -9,7 +9,6 @@ from transformers import LlamaConfig
from
vllm.compilation.decorators
import
support_torch_compile
from
vllm.config
import
VllmConfig
from
vllm.distributed.parallel_state
import
get_pp_group
from
vllm.logger
import
init_logger
from
vllm.model_executor.layers.linear
import
ReplicatedLinear
from
vllm.model_executor.layers.logits_processor
import
LogitsProcessor
...
...
@@ -155,10 +154,6 @@ class LlamaModel(nn.Module):
weight_loader
(
param
,
loaded_weight
,
shard_id
)
break
else
:
# if PP disabled then draft will share embed with target
if
get_pp_group
().
world_size
==
1
and
"embed_tokens."
in
name
:
continue
param
=
params_dict
[
name
]
weight_loader
=
getattr
(
param
,
"weight_loader"
,
default_weight_loader
)
weight_loader
(
param
,
loaded_weight
)
...
...
vllm/v1/spec_decode/eagle.py
View file @
93c8672c
...
...
@@ -1028,8 +1028,11 @@ class EagleProposer:
elif
(
isinstance
(
target_embed_tokens
.
weight
,
torch
.
Tensor
)
and
isinstance
(
self
.
model
.
model
.
embed_tokens
.
weight
,
torch
.
Tensor
)
and
torch
.
equal
(
target_embed_tokens
.
weight
,
self
.
model
.
model
.
embed_tokens
.
weight
and
torch
.
allclose
(
target_embed_tokens
.
weight
.
cpu
(),
self
.
model
.
model
.
embed_tokens
.
weight
.
cpu
(),
rtol
=
1e-5
,
atol
=
1e-7
,
)
):
share_embeddings
=
True
...
...
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