Skip to content

vllm.model_executor.models.minicpm

Inference-only MiniCPM model compatible with HuggingFace weights.

Classes:

  • MiniCPMMoE –

    A tensor-parallel MoE implementation that shards each expert

MiniCPMMoE

Bases: Module

A tensor-parallel MoE implementation that shards each expert across all ranks.

Each expert's weights are sharded across all ranks and a fused MoE kernel is used for the forward pass, and finally we reduce the outputs across ranks.