bailing_moe¶
Model type |
|
Class |
|
Task |
|
Source |
|
Description¶
Ernie 4.5 Mixture of Experts causal language model.
Uses SoftmaxTopKGate routing with an always-active shared expert per layer
(no sigmoid gate on the shared contribution), matching Ernie4_5_MoeForCausalLM.
Key differences from :class:MoECausalLMModel:
Each MoE layer adds a
shared_expertMLP summed unconditionally.Expert weights stored as fused 3D tensors in HF; split in
preprocess_weights.
Usage¶
mobius build --model <MODEL_ID> output_dir/
from mobius import build
model = build("<MODEL_ID>")