公司指南

百度 ERNIE:模型系列、ERNIE 机器人和开放权重

ERNIE 是百度的人工智能模型系列,始于 2019 年,作为 BERT 的知识增强替代品,后来发展成为 ERNIE Bot 聊天机器人背后的大型多模态模型。

听听这个指南AI叙述 · ~9 min

在本页10 分钟阅读
  1. 概述
  2. 主要要点
  3. 深入探讨
  4. 在使用 ERNIE 检查点之前跟踪它可以做什么
  5. 现实世界的实施
  6. 百度ERNIE的未来:模型系列、ERNIE机器人和开放权重
  7. 付诸实践
  8. 资料来源与延伸阅读
  9. 不断探索
  10. 常见问题

概述

这很重要,因为它是中国运行时间最长的基础模型系列之一,自 2025 年中期以来,已经在 Apache 2.0 许可证下发布了 10 个 ERNIE 4.5 模型。

主要要点

  1. ERNIE 于 2019 年 4 月开始,是一种 BERT 风格的模型,它屏蔽整个实体和短语,将知识注入中文理解中。
  2. ERNIE 3.0 拥有 100 亿个参数,在 4 TB 文本和知识图上进行训练,并于 2021 年 7 月超越 SuperGLUE。
  3. 百度于2023年3月16日推出ERNIE Bot聊天机器人,并于2025年3月16日免费向个人用户开放。
  4. 百度于2025年中期在Apache 2.0下开源了10个ERNIE 4.5模型,其中旗舰混合专家模型总数量为3000亿,活跃参数为470亿。
  5. ERNIE 5.0于2025年11月13日在百度世界预览,是专有的全模态模型,而不是开放权重版本。

深入探讨

ERNIE is the name Baidu uses for its family of large AI models. The name started as an acronym, Enhanced Representation through kNowledge IntEgration, and today covers research language models, large multimodal models, and the consumer chatbot ERNIE Bot. When someone says "ERNIE" without a version number, it is worth asking which one they mean, because a 2019 ERNIE model and a 2025 ERNIE model share a brand but little else in size, design or capability.

The first ERNIE paper, posted to arXiv on April 19, 2019 by Yu Sun and colleagues at Baidu, changed one part of BERT's recipe. BERT, Google's 2018 encoder model, learns by hiding random word pieces in a sentence and predicting them. ERNIE instead hid whole units of meaning. Entity-level masking hides a full named entity such as a person or place, which usually spans several tokens, and phrase-level masking hides a multi-word phrase that acts as one concept. To fill those gaps, the model has to use what it has learned about the world rather than guessing from neighboring characters. The authors reported state-of-the-art results on five Chinese tasks: natural language inference, semantic similarity, named entity recognition, sentiment analysis and question answering, plus better scores on a cloze test of factual knowledge.

ERNIE 2.0, posted in July 2019 and accepted at AAAI 2020, kept the idea of richer training signals but changed how they were added. It used continual multi-task pretraining: new pretraining tasks were introduced over time and learned alongside earlier ones so the model did not forget them. The tasks targeted lexical, syntactic and semantic information, such as named entities, how close two sentences are in meaning, and discourse relations between sentences. The paper reports that ERNIE 2.0 beat BERT and XLNet across 16 tasks, including the English GLUE benchmark and several Chinese datasets.

ERNIE 3.0, posted on July 5, 2021, scaled the approach to 10 billion parameters trained on a 4 TB corpus that combined plain text with a large knowledge graph. It also merged two families of design: an auto-encoding network, which reads text in both directions and is good at understanding, and an auto-regressive network, which predicts text left to right and is good at generation. The paper reports better results than prior models on 54 Chinese tasks, and says its English version ranked first on the SuperGLUE leaderboard on July 3, 2021 with a score of 90.6, above the 89.8 human baseline listed on that leaderboard.

The consumer era began on March 16, 2023, when Baidu presented ERNIE Bot in Beijing. The Associated Press reported that the demonstration used pre-recorded video rather than a live session, that CEO Robin Li said 650 companies had signed up, and that Baidu's Hong Kong shares fell as much as 10% during the presentation before closing down 6.4%. Li said the product was not yet perfected but was being released because of demand. Two years later, on March 16, 2025, Baidu announced ERNIE 4.5, described as a native multimodal foundation model for text, images, audio and video, and ERNIE X1, a reasoning model that can call tools such as search, document question answering and a code interpreter. The same release made ERNIE Bot free to individual users ahead of a planned April 1 date.

The largest change in strategy came at the start of July 2025, when TechNode reported that Baidu had open-sourced 10 ERNIE 4.5 models on Hugging Face, GitHub and its PaddlePaddle platform under the Apache 2.0 license, which allows research and commercial use subject to its terms. The flagship text model, ERNIE-4.5-300B-A47B, is a mixture-of-experts (MoE) model. An MoE model splits parts of the network into many smaller "experts" and uses a small router to send each token to only a few of them, so a model can hold many parameters while spending compute on only some of them. According to the model card, this model has 300 billion total parameters, 47 billion active per token, 54 layers, 64 text experts with 8 active per token, and a context window of 131,072 tokens. The broader family, per TechNode, ranges up to 424 billion total parameters and includes smaller MoE models with 3 billion active parameters and 0.3 billion parameter dense models; Baidu also reported training efficiency of up to 47% model FLOPs utilization. On November 13, 2025, at Baidu World 2025, Baidu previewed ERNIE 5.0, a proprietary model it describes as natively omni-modal, available in preview through ERNIE Bot and the Qianfan platform, according to eWeek.

Compared with alternatives, ERNIE's distinctive traits are its long focus on Chinese language tasks, its tight integration with Baidu's own stack (the PaddlePaddle deep learning framework, Baidu Search, and Baidu AI Cloud), and a mixed release policy in which some generations are open-weight and others are closed. Readers comparing it with Western models such as GPT, Claude or Gemini, or with other Chinese families such as Qwen and DeepSeek, should rely on independent benchmarks rather than launch claims. Baidu's March 2025 release said ERNIE 4.5 outperformed GPT-4.5 on multiple benchmarks without naming them in the release, and such statements are company claims rather than verified results.

There are practical limits to keep in mind. ERNIE Bot is built for the Chinese market and operates under Chinese content rules, so answers on politically sensitive topics can differ from those of models built elsewhere. Version names are easy to confuse: ERNIE, ERNIE Bot, ERNIE 4.5 and ERNIE X1 refer to different things. Open weights cover specific ERNIE 4.5 checkpoints, not every model Baidu serves, and ERNIE 5.0 was announced as proprietary. Like all large language models, ERNIE models can produce confident but wrong statements, so outputs that matter should be checked.

In practice there are three ways to use ERNIE. Individuals can use ERNIE Bot for free. Businesses can pay per token through Qianfan, where Baidu priced ERNIE X1 from RMB 0.002 per thousand input tokens and RMB 0.008 per thousand output tokens at launch. Teams that want control can self-host the open ERNIE 4.5 checkpoints, but the flagship needs serious hardware: the model card lists 16 GPUs with 80 GB each in bf16, or 8 such GPUs with FP8 quantization, while the smaller 3 billion active parameter models fit far more modest setups.

04工作示例

在使用 ERNIE 检查点之前跟踪它可以做什么

  1. 打开 baidu/ERNIE-4.5-300B-A47B-PT 的 Hugging Face 页面,注意许可证字段,其中显示 Apache 2.0。

  2. 读取配置表并记录总参数(300B)、激活参数(47B)、层(54)和上下文长度(131,072 个令牌)。

  3. 估计内存:bf16 中每个 2 字节的 3000 亿个权重约为 600 GB,这解释了该卡的 16 x 80 GB GPU 建议。

  4. 与 FP8 选项相比:每个重量约 1 个字节将内存减半至约 300 GB,与 8 x 80 GB 设置相匹配。

  5. 检查任务是否需要图片;如果是这样,请查看 ERNIE-4.5-VL 检查点,因为 300B-A47B 卡仅包含文本。

  6. 如果没有硬件,可以比较一下千帆API千币价格和租用GPU自托管的成本。

它显示了什么

简短的决策说明,说明哪个 ERNIE 检查点适合该任务,其许可证是否允许预期用途,以及需要哪些硬件或 API 支出。对照型号卡号核对;一旦包含激活和缓存,内存估计值应在卡 GPU 建议值的 20% 左右。

现实世界的实施

研究预训练目标的研究人员将 2019 年 4 月 arXiv 论文中描述的 ERNIE 1.0 的实体级和短语级掩码与 BERT 在命名实体识别和情感分析等中文任务上的随机单词掩码进行了比较。

中国的个人用户通过ERNIE Bot网站免费与ERNIE 4.5和推理模型ERNIE X1聊天,该网站是百度于2025年3月16日免费向个人提供的。

企业开发者通过百度人工智能云的千帆模型即服务平台调用 ERNIE 4.5,百度 2025 年 3 月的定价起价为每千个输入代币 0.004 元人民币,每千个输出代币 0.016 元人民币。

需要自托管模型的团队在 Apache 2.0 下从 Hugging Face 下载 ERNIE-4.5-300B-A47B,并根据模型卡在 16 个 80 GB 的 bf16 GPU 或 8 个具有 FP8 量化的 GPU 上使用 vLLM 提供服务。

TechNode 在 2025 年 7 月开源版本中报告了这两个配套工具,将开放的 ERNIE 4.5 模型适应自己的数据的团队使用百度的 ERNIEKit 工具包进行微调,并使用 FastDeploy 跨硬件提供服务。

百度ERNIE的未来:模型系列、ERNIE机器人和开放权重

Several open questions shape where the ERNIE line goes next. The first is the balance between open and closed releases. Baidu published ERNIE 4.5 weights under Apache 2.0 in mid-2025, then announced ERNIE 5.0 in November 2025 as a proprietary, natively omni-modal model offered through ERNIE Bot and the Qianfan cloud platform, so it is not settled which future generations, if any, will ship open weights. The second is hardware. At the same November 2025 event, Baidu announced its Kunlunxin M100 and M300 AI chips, scheduled by the company for 2026 and 2027 respectively, according to eWeek. Whether future ERNIE models train and serve mainly on Baidu's own chips is a practical question for cost and supply. The third is evaluation. Baidu's launch materials compare ERNIE with GPT-4.5 and DeepSeek R1, but independent, reproducible tests in both Chinese and English remain the better guide, and the open ERNIE 4.5 checkpoints make such testing possible for anyone with the hardware. Research directions visible in Baidu's own descriptions include reasoning models that use tools, joint training across text, image, audio and video, and low-bit quantization for cheaper serving.

付诸实践

为什么这很重要

  • 供应商策略. 供应商路线图会影响您的团队接下来可以构建的功能。
  • 成本与预算. 商业条款和部署选项会影响长期成本和风险。
  • 风险与安全. 公司激励措施塑造了产品默认、安全态势和开放性。

留意

  • 发布公告可能会超过实际生产工作流程的稳定性。
  • API 定价或政策转变可能会在一夜之间打破假设。
  • 单一供应商依赖性增加了锁定和迁移成本。

后续步骤

  1. 使用您自己的任务和数据集评估提供商。
  2. 在集成之前查看隐私、安全和法律条款。
  3. 维护跨模型或供应商的后备计划。
  4. 监控发行说明,以便路线图的更改不会让团队感到意外。

资料来源与延伸阅读

  1. arXivERNIE:通过知识整合增强表征
  2. arXiv (AAAI 2020)ERNIE 2.0:语言理解的持续预训练框架
  3. arXivERNIE 3.0:语言理解和生成的大规模知识增强预训练
  4. Associated Press (via News4JAX)百度推出 ChatGPT 竞争对手 Ernie Bot; 650家企业报名
  5. Baidu press release via PR Newswire (Taiwan News)百度发布ERNIE 4.5及推理模型ERNIE X1,让ERNIE Bot提前免费
  6. TechNode百度开源ERNIE 4.5系列模型,包括多模态MoE架构
  7. Hugging Face (Baidu)baidu/ERNIE-4.5-300B-A47B-PT型号卡
  8. eWeek百度发布全新AI芯片ERNIE 5.0

不断探索

免费通讯

获取每日AI简报

每个工作日早晨提供三条经过验证的AI故事,使用简明英文撰写。永久免费,无广告。

每个工作日发送一封邮件。一键退订。我们永不出售或分享您的地址。

测试一下自己

参加百度 ERNIE:模型系列、ERNIE 机器人和开放权重测验

每个答案即时反馈,课程通过后可获得可验证ID的可分享证书。

开始测验

支持免费AI教育。AI Understanding是一家501(c)(3)非营利组织——无广告,无付费墙,永不收费。 捐款

常见问题

什么是百度 ERNIE:模型系列、ERNIE 机器人和开放权重?

ERNIE 是百度的人工智能模型系列,始于 2019 年,作为 BERT 的知识增强替代品,后来发展成为 ERNIE Bot 聊天机器人背后的大型多模态模型。这很重要,因为它是中国运行时间最长的基础模型系列之一,自 2025 年中期以来,已经在 Apache 2.0 许可证下发布了 10 个 ERNIE 4.5 模型。

哪家公司开发了 ERNIE 系列型号?

2019年ERNIE论文列出了百度作者单位。这表明了该论文背后的公司,但并未声称百度是排名最高或“领先”的搜索引擎。

在最初的 2019 年 ERNIE 模型中,知识掩码与 BERT 的标记掩码有何不同?

原始论文在单词级学习中添加了实体级和短语级掩码,从而允许对多标记语义跨度进行训练。

百度为其在 2023 年发布的对话式助手取了什么名字?

百度2023年公告将对话产品命名为ERNIE Bot(文心一言)。

缩写 ERNIE 主要强调什么?

ERNIE 代表Enhanced Representation through kNowledge IntEgration,突出了其知识重点。

最初的 ERNIE 论文报告了多少个中文自然语言处理任务的结果?

最初的 ERNIE 论文报告了五个中文 NLP 任务的结果:自然语言推理、语义相似性、命名实体识别、情感分析和问答。