Archive of AI

Source Snapshot / 2019-04-19-baidu-ernie-1-0-knowledge-masking-2

PaddlePaddle/ERNIE: The official repository for ERNIE

Linked event: 2019-04-19 · Baidu Proposes Knowledge-Enhanced Semantic Representation Model ERNIE 1.0 and Open-Sources Code and Weights, Launching the Chinese Pretrained Model Lineage

Publisher
GitHub
Archived
2026-11-23
Capture Method
Direct page capture
HTTP / SHA-256
200 / c84b128ad4b463f8
Original URL
Open source ↗
Wayback Backup
Not archived
This page preserves a plain-text static snapshot against link rot. When citing figures, tables, or full legal terms, verify against the original URL and Wayback Machine archive.

[来源关键摘录] 百度文心 ERNIE 官方开源主仓库,长期承接 ERNIE 系列论文代码与开源权重发布。

[正文前段节选] Skip to content

Navigation Menu

Appearance settings

You signed in with another tab or window. Reload to refresh your session.

You signed out in another tab or window. Reload to refresh your session.

You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

{{ message }}

Repository navigation

NotificationsYou must be signed in to change notification settings

Fork1.4k (1.4k)

Star7.7k (7.7k)You must be signed in to star a repository

The official repository for ERNIE 4.5 and ERNIEKit – its industrial-grade development toolkit based on PaddlePaddle.

ernie.baidu.com

ernieernie-45ernie-45-vlerniekitllmvlm

Apache-2.0 license

Custom properties

189 watching

Report repository

release/v1.5

BranchesTags

Open more actions menu

Latest commit

Folders and files

Last commit message

Last commit date

.github/workflows

data_processor

docker/docker-cuda

requirements/gpu

.pre-commit-config.yaml

pyproject.toml

View all files

Repository files navigation

ERNIE Bot | 🤗Hugging Face | AI Studio

📑 Blog | 📚 Cookbook | 📑 Paper | 🛠️ Training | ⚡️ Deploy

📣 Recent updates

[2025-11] 🔥 Released ERNIEKit v1.5:

New Features

[ERNIE-4.5-VL-28B-A3B-Thinking] Supports SFT training and function call training for ERNIE-4.5-VL-28B-A3B-Thinking (https://huggingface.co/baidu/ERNIE-4.5-VL-28B-A3B-Thinking).

[2025-10] 🔥 Released ERNIEKit v1.4:

VL Model Training: Support SFT for PaddleOCR-VL-0.9B model. More details in PaddleOCR-VL-0.9B SFT.

Dataflow : Support padding-free startegy.

Packing data within a batch into a sequence to avoid padding, thereby reducing GPU memory usage and accelerating training.

[2025-09] 🔥 Released ERNIEKit v1.3:

[ERNIE-4.5-21B-A3B-Thinking] Supports SFT training and function call training for ERNIE-4.5-21B-A3B-Thinking (https://huggingface.co/baidu/ERNIE-4.5-21B-A3B-Thinking).

[VL Model Training] Optimization of multimodal video data processing speed (#1266).

[2025-09] 🔥 Released ERNIEKit v1.2:

[WebUI] Added support for training and conversation functionalities with ERNIE 28b/424b VL models.

[VL Model Training] Introduced support for query-response format in training data.

[Command-Line Tool] Added iluvatar GPU hardware support.

[AutoParallel] Fix use_intermediate_api pp+recompute+moe bug (#1250)

[AutoParallel] Fix save checkpoint bug (#1242)

[VL Model Training] Fix lora 128k training bug (#1234)

[2025-09] 🔥 Released ERNIEKit v1.1: ERNIEKit now supports SFT/LoRA for ERNIE-4.5-VL series.

[2025-06] 🔥 Released ERNIEKit v1.0: We're excited to announce ERNIEKit v1.0, the most powerful and efficient toolkit yet for developing with the latest ERNIE models!

Introduction to ERNIE 4.5

We introduce ERNIE 4.5, a new family of large-scale multimodal models comprising 10 distinct variants. The model family consist of Mixture-of-Experts (MoE) models with 47B and 3B active parameters, with the largest model having 424B total parameters, as well as a 0.3B dense model. For the MoE architecture, we propose a novel heterogeneous modality structure, which supports parameter sharing across modalities while also allowing dedicated parameters for each individual modality. This MoE architecture has the advantage to enhance multimodal understanding without compromising, and even improving, performance on text-related tasks. All of our models are trained with optimal efficiency using the PaddlePaddle deep learning framework, which also enables high-performance inference and streamlined deployment for them. We achieve 47% Model FLOPs Utilization (MFU) in our largest ERNIE 4.5 language model pre-training. Experimental results show that our models achieve state-of-the-art performance across multiple text and multimodal benchmarks, especially in instruction following, world knowledge memorization, visual understanding and multimodal reasoning. All models are publicly accessible under Apache 2.0 to support future research and development in the field. Additionally, we open source the development toolkits for ERNIE 4.5, featuring industrial-grade capabilities, resource-efficient training and inference workflows, and multi-hardware compatibility.

ERNIE 4.5 Models

Model Information

Model Category

Input Modality

Output Modality

Context Window

Large Language Models (LLMs)

ERNIE-4.5-300B-A47B-Base

ERNIE-4.5-300B-A47B

ERNIE-4.5-21B-A3B-Base

ERNIE-4.5-21B-A3B

Vision-Language Models (VLMs)

ERNIE-4.5-VL-424B-A47B-Base

Text/Image/Video

ERNIE-4.5-VL-424B-A47B

ERNIE-4.5-VL-28B-A3B-Base

ERNIE-4.5-VL-28B-A3B

Dense Models

ERNIE-4.5-0.3B-Base

ERNIE-4.5-0.3B

Note: All models (including pre-trained weights and inference code) have been released on 🤗Hugging Face, and AI Studio. Check our blog for more details.

Our model family is characterized by three key innovations:

Multimodal Heterogeneous MoE Pre-Training: Our models are jointly trained on both textual and visual modalities to better capture the nuances of multimodal information and improve performance on tasks involving text understanding and generation, image understanding, and cross-modal reasoning. To achieve this without one modality hindering the learning of another, we designed a heterogeneous MoE structure, incorporated modality-isolated routing, and employed router orthogonal loss and multimodal token-balanced loss. These architectural choices ensure that both modalities are effectively represented, allowing for mutual reinforcement during training.

Scaling-Efficient Infrastructure: We propose a novel heterogeneous hybrid parallelism and hierarchical load balancing strategy for efficient training of ERNIE 4.5 models. By using intra-node expert parallelism, memory-efficient pipeline scheduling, FP8 mixed-precision training and finegrained recomputation methods, we achieve remarkable pre-training throughput. For inference, we propose multi-expert parallel collaboration method and convolutional code quantization algorithm to achieve 4-bit/2-bit lossless quantization. Furthermore, we introduce PD disaggregation with dynamic role switching for effective resource utilization to enhance inference performance for ERNIE 4.5 MoE models. Built on PaddlePaddle, ERNIE 4.5 delivers high-performance inference across a wide range of hardware platforms.

Modality-Specific Post-Training: To meet the diverse requirements of real-world applications, we fine-tuned variants of the pre-trained model for specific modalities. Our LLMs are optimized for general-purpose language understanding and generation. The VLMs focuses on visuallanguage understanding and supports both thinking and non-thinking modes. Each model employed a combination of Supervised Fine-tuning (SFT), Direct Preference Optimization (DPO) or a modified reinforcement learning method named Unified Preference Optimization (UPO) for post-training.

Performance and Benchmark Results

ERNIE-4.5-300B-A47B-Base surpasses DeepSeek-V3-671B-A37B-Base on 22 out of 28 benchmarks, demonstrating leading performance across all major capability categories. This underscores the substantial improvements in generalization, reasoning, and knowledge-intensive tasks brought about by scaling up the ERNIE-4.5-Base model relative to other state-of-the-art large models. With a total parameter size of 21B (approximately 70% that of Qwen3-30B), ERNIE-4.5-21B-A3B-Base outperforms Qwen3-30B-A3B-Base on several math and reasoning benchmarks, including BBH and CMATH. ERNIE-4.5-21B-A3B-Base remains highly competitive given its significantly smaller model size, demonstrating notable parameter efficiency and favorable performance trade-offs.

ERNIE-4.5-300B-A47B, the post trained model, demonstrates significant strengths in instruction following and knowledge tasks, as evidenced by the state-of-the-art scores on benchmarks such as IFEval, Multi-IF, SimpleQA, and ChineseSimpleQA. The lightweight model ERNIE-4.5-21B-A3B achieves competitive performance compared to Qwen3-30B-A3B, despite having approximately 30% fewer total parameters.

[...内容已截断,完整版请查看原文或 Wayback 快照]