Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion vllm/models/qwen4_exp/common/ple.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from vllm.model_executor.layers.vocab_parallel_embedding import (
VocabParallelEmbedding,
)
from vllm.model_executor.utils import copy_weight_


@dataclass(frozen=True)
Expand Down Expand Up @@ -75,7 +76,7 @@ def _copy_embedding_shard_(
source = loaded_weight.narrow(0, overlap.source_start, overlap.row_count)
target = destination.narrow(0, overlap.destination_start, overlap.row_count)
with torch.no_grad():
target.copy_(source.to(device=target.device, dtype=target.dtype))
copy_weight_(target, source)
return overlap.row_count

def weight_loader(
Expand Down
Loading