Baidu Open-Sources the 10-Model ERNIE 4.5 Multimodal MoE Family
Summary:Baidu has open-sourced the ten-variant ERNIE 4.5 family under Apache 2.0, together with ERNIEKit and deployment tooling. The lineup spans 424B-total, 47B-active multimodal MoE models, 21B/3B-active language models, a 28B/3B-active vision-language model, and a 0.3B dense model. Its central design is a heterogeneous modality-aware MoE that combines cross-modal shared parameters with modality-specific experts, supported by FP8 training, expert parallelism, fine-grained recomputation, low-bit quanti
Release Scope and Model Lineup
Baidu has released the ERNIE 4.5 model weights, PyTorch-compatible formats, and development and deployment tooling including ERNIEKit and FastDeploy. The family contains 10 variants under the Apache 2.0 license, spanning language models, vision-language models, and a compact dense model. Public configurations include ERNIE-4.5-300B-A47B, ERNIE-4.5-21B-A3B, ERNIE-4.5-VL-424B-A47B, ERNIE-4.5-VL-28B-A3B, and a 0.3B dense model.
ERNIE-4.5-300B-A47B and ERNIE-4.5-VL-424B-A47B represent the large text and multimodal configurations, while the 21B-A3B and 28B-A3B models target lower activation costs. ERNIEKit supports pretraining, SFT, LoRA, DPO, quantization-aware training, and post-training quantization; FastDeploy focuses on serving. Developers can use the native PaddlePaddle stack or the PyTorch-compatible weights, but framework parity still needs validation for kernel coverage, numerical equivalence, and throughput.
Core Architecture: Heterogeneous Modality-Aware MoE
ERNIE 4.5 does not simply attach two separate models for text and vision. Its MoE design combines parameters shared across modalities with modality-specific parameters. A router sends tokens to shared experts for transferable representations and to dedicated experts for modality-specific distributions. This can reduce the cost of maintaining duplicate text-only and vision-only networks while avoiding the degradation that indiscriminate parameter sharing may cause.
For the 300B-A47B, 424B-A47B, and 21B-A3B configurations, the active-to-total parameter ratios are approximately 15.7%, 11.1%, and 14.3%. MoE therefore limits the main matrix-multiplication work per token closer to the active-parameter scale rather than the full model size. That is primarily a compute benefit: a serving node still has to store all expert weights.
Training introduces modality-isolated routing, a router-orthogonality loss, and a multimodal token-balancing loss. The available material does not provide the exact loss formulas, but their engineering goals can be separated: prevent a router from sending one modality to unsuitable experts, reduce redundant expert responsibilities, and avoid expert overload caused by imbalanced text and image token counts. The objective is not simply to add more experts, but to preserve distinct and balanced gradient flows across shared and modality-specific paths.
Training and Inference Infrastructure
Baidu reports that the largest ERNIE 4.5 language model reached 47% Model FLOPs Utilization during pretraining. MFU measures achieved model floating-point work relative to a hardware peak; it is not the same as GPU utilization or end-to-end request throughput. The figure indicates that the large training run was not severely stalled by idle hardware, but meaningful interpretation still requires cluster size, sequence length, parallelism configuration, and failure rates.
The training stack uses heterogeneous hybrid parallelism and hierarchical load balancing. Intra-node expert parallelism shortens all-to-all dispatch paths, memory-efficient pipeline scheduling reduces activation residency, fine-grained recomputation trades additional computation for lower peak memory, and FP8 mixed precision reduces tensor movement and compute cost during training. The central tension is that MoE reduces per-token arithmetic while adding expert dispatch, load imbalance, and pipeline-bubble overhead.
For inference, Baidu adds multi-expert parallel collaboration, convolutional-code quantization, and prefilling-decoding disaggregation with dynamic role switching. Prefill is compute-intensive, whereas decode is more constrained by memory bandwidth and serial dependencies. Splitting them across resource pools can improve cluster utilization, but remote KV transfers, scheduling latency, serialization, and recovery overhead can erase the benefit on a single machine or over a slow interconnect.
Post-Training and Reported Results
ERNIE 4.5 language models are post-trained with combinations of SFT, DPO, or a modified reinforcement-learning method called Unified Preference Optimization. The vision-language models expose both thinking and non-thinking modes. Non-thinking mode can reduce unnecessary reasoning overhead on perception tasks, while thinking mode uses a longer reasoning chain for mathematics, charts, and cross-modal reasoning, normally at the cost of more output tokens, higher latency, and more complex serving orchestration.
Baidu reports that ERNIE-4.5-300B-A47B-Base beats DeepSeek-V3-671B-A37B-Base on 22 of 28 benchmarks. ERNIE-4.5-21B-A3B-Base reportedly exceeds Qwen3-30B-A3B-Base on math and reasoning tests including BBH and CMATH, while the post-trained 21B-A3B remains competitive with fewer total parameters. On the vision side, ERNIE-4.5-VL-424B-A47B in thinking mode narrows, and in some comparisons reverses, its gap with OpenAI-o1 on MathVista, MMMU, and VisualPuzzle while remaining competitive on perception-focused CV-Bench and RealWorldQA. The 28B-A3B vision-language model is also reported as matching or exceeding Qwen2.5-VL-7B and Qwen2.5-VL-32B on most evaluated tests.
These results support two conclusions: ERNIE 4.5 is competitive in parameter efficiency and multimodal post-training, and the 21B-A3B class is more than a simple scaled-down model. However, the available material does not include per-benchmark absolute scores, variance, prompt templates, sampling budgets, judge models, or contamination checks. A 22-of-28 win ratio cannot replace a complete error analysis. Base models, post-trained models, and different generations of Qwen must also be kept separate when interpreting the comparisons.
Engineering Trade-offs and Production Costs
First, fewer active parameters do not mean low memory consumption. For a 424B-total-parameter model, the theoretical lower bounds for BF16, 8-bit, 4-bit, and 2-bit weights are approximately 848GB, 424GB, 212GB, and 106GB, respectively. Those figures exclude scale factors, codebooks, metadata, KV Cache, and runtime workspace. If all experts remain resident, a 21B-A3B model still needs storage for all 21B parameters rather than only the 3B active subset.
Second, 4-bit and 2-bit quantization primarily compress weights; they do not reduce KV Cache by the same proportion. Image tokens, long contexts, and high concurrency continue to increase attention-cache and scheduling pressure. Prefill-decode disaggregation adds further KV movement across devices. Baidu describes the convolutional-code quantization method as lossless at 4-bit or 2-bit precision, but the reference definition, supported kernel coverage, and end-to-end error boundaries still need testing under real workloads rather than being treated as universal zero-loss guarantees.
Finally, quality gains in thinking mode should not be measured by accuracy alone. If reasoning length increases substantially, end-to-end latency and the cost per useful answer can outweigh the benefit. Uneven MoE routing can also prevent theoretical activation efficiency from becoming stable throughput. The reported 47% MFU is a training metric, not production TTFT, TPOT, or tokens per watt.
Deployment Guidance
- Select models using both total and active parameters. The 0.3B dense model suits edge and latency-sensitive workloads. The 21B-A3B and 28B-A3B variants are practical options for higher-quality private deployments with lower compute requirements. The 300B-A47B and 424B-A47B models should be reserved for multi-GPU or dedicated clusters.
- Establish an unquantized baseline. Complete SFT or LoRA alignment with ERNIEKit, then test BF16, FP8, PTQ, and QAT separately. Record task success, output stability, time to first token, and inter-token latency instead of estimating the benefit from weight size alone.
- Include routing and communication in load tests. Capture expert-load skew, all-to-all traffic, cross-node bandwidth, KV Cache occupancy, and prefilling-decoding switching overhead. For long-context multimodal traffic, measure the prefill cost introduced by image tokens separately.
- Verify framework consistency. Run the PaddlePaddle and PyTorch-compatible paths with identical prompts, samplers, and evaluation sets. Check logit divergence, tool-call formatting, and post-quantization task success rather than assuming format conversion is numerically neutral.
- Treat aggregate rankings cautiously. Reproduce official claims on an internal workload with matched token budgets and judge models, separating perception, reasoning, instruction following, and safety. Leadership on one or several public benchmarks does not by itself establish a production advantage.
— END —Source: Baidu ERNIE Research (2026-11-29)
Tags: #Baidu #ERNIE 4.5 #Multimodal MoE #PaddlePaddle #Apache 2.0
Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.
Community Comments