vllm.models.qwen4_exp.common.ple
¶
Common Qwen4Exp PLE helpers.
Classes:
-
PLEShardOverlap–Source and destination slices for one checkpoint embedding shard.
-
PLEVocabParallelEmbedding–Vocab-parallel embedding that accepts checkpoint row shards.
PLEShardOverlap
dataclass
¶
Source and destination slices for one checkpoint embedding shard.
Source code in vllm/models/qwen4_exp/common/ple.py
PLEVocabParallelEmbedding
¶
Bases: VocabParallelEmbedding
Vocab-parallel embedding that accepts checkpoint row shards.
Source code in vllm/models/qwen4_exp/common/ple.py
_compute_shard_overlap(*, checkpoint_start, checkpoint_rows)
¶
Compute the overlap of a checkpoint shard and one TP vocabulary range.
Source code in vllm/models/qwen4_exp/common/ple.py
_copy_embedding_shard_(destination, loaded_weight, *, checkpoint_start)
¶
Copy the overlapping rows of a PLE checkpoint shard into a TP table.