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.
Functions:
-
compute_ple_shard_overlap–Compute the overlap of a checkpoint shard and one TP vocabulary range.
-
copy_ple_embedding_shard_–Copy the overlapping rows of a PLE checkpoint shard into a TP table.
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_ple_shard_overlap(*, checkpoint_start, checkpoint_rows, tp_start, tp_end)
¶
Compute the overlap of a checkpoint shard and one TP vocabulary range.
Source code in vllm/models/qwen4_exp/common/ple.py
copy_ple_embedding_shard_(destination, loaded_weight, *, checkpoint_start, tp_start, tp_end)
¶
Copy the overlapping rows of a PLE checkpoint shard into a TP table.