Skip to content

vllm.model_executor.models.bailing_moe_linear

Classes:

BailingMoeV25

Bases: Module

Bailing MoE v2.5 - standalone implementation for linear attention model.

BailingMoeV25DecoderLayer

Bases: Module

Decoder layer supporting both linear and full attention.

BailingMoeV25ForCausalLM

Bases: Module, HasInnerState, IsHybrid, SupportsPP

Bailing MoE v2.5 For CausalLM.

Methods:

get_mamba_state_shape_from_config(vllm_config) classmethod

Calculate shape for linear attention cache.

BailingMoeV25MLAAttention

Bases: Module

MLA Attention for BailingMoeV2.5 full attention layers.

Methods:

  • forward –

    Forward pass for MLA attention.

forward(hidden_states, positions)

Forward pass for MLA attention.

BailingMoeV25Model

Bases: Module

Bailing MoE v2.5 Model with hybrid attention support.

Methods:

get_expert_mapping()

Get expert parameter mapping for MoE layers.

load_weights(weights)

Load checkpoint weights with simplified mapping.