> ## Content Index
> Fetch the complete content index at: https://globalfeed.ai/llms.txt
> Use this file to discover other available public pages before exploring further.

# Why an unpolished model is worth having: how Baidu trained ERNIE 5.5 Flash Base
- URL: https://globalfeed.ai/en/why-an-unpolished-model-is-worth-having-how-baidu-trained-ernie-5-5-flash-base/
- Published: 2026-11-06T00:16:17.000Z
- Updated: 2026-11-06T00:16:17.000Z
- Description: Baidu released ERNIE 5.5 Flash Base, trained on 33.5 trillion tokens and saved before any chat tuning, as an open model. We explain its architecture, its training and how to shape it for your own work.
- Author: GlobalFeed Editor
- Tags: Baidu, ERNIE, language model, base model, Open Model, Open Source, x-Baidu, dil-en, elle

Buying a ready-made suit is very different from buying a bolt of cloth. The suit is ready to wear, but it was cut to someone's measurements. The cloth has no shape yet; you decide the cut. On November 5, Baidu handed the AI world the second kind. ERNIE 5.5 Flash Base is Baidu's new language model saved the moment the first and largest stage of training ended, with no chat polish, instruction tuning or post-training on top. The company released it as an open model on Hugging Face and explained how it was built in a [detailed blog post](https://ernie.baidu.com/release/ernie-5-5-flash-base/?ref=globalfeed.ai).

According to Baidu's [model page](https://huggingface.co/baidu/ERNIE-5.5-Flash-Base?ref=globalfeed.ai), ERNIE 5.5 Flash Base has 280 billion parameters in total, and 14 billion of them are active for each token. It was trained from scratch on 33.5 trillion tokens. Training ended at a 128K-token context; for fine-tuning and inference the context can reach 1 million tokens. The files come in two formats: an FP8 version that needs less memory and a [BF16 version](https://huggingface.co/baidu/ERNIE-5.5-Flash-Base-BF16?ref=globalfeed.ai). Baidu compared the model with DeepSeek V4 Flash Base, Hy3 preview Base and MiMo V2.5 Base using the same evaluation setup, and ERNIE has the top score on 24 of 30 benchmarks. Baidu says the post-trained ERNIE 5.5 Flash will follow.

## What a base model is for

The chat assistants we use today go through three stages. In pre-training, the model reads trillions of tokens and learns language, knowledge and code; its only job is to predict how a text continues. In mid-training it gets extra data for long documents, reasoning or particular domains. In post-training it learns to answer questions, follow instructions and use tools. ERNIE 5.5 Flash Base stops at the end of the first stage. If you type a question, it may continue the question instead of answering it. The right way to use it is to give it the start of a text and let it continue.

That raw state is valuable for researchers and for teams that want to build their own model. Baidu makes the same point in its post: from the same starting checkpoint you can compare fine-tuning methods, measure what each one adds, and shape the model for your own tasks. Retraining a finished chat model is like unpicking a suit tailored for someone else and sewing it again. A base model has no seams yet. A law firm can shape it around its own document language, a software team around its own codebase, a startup around its own data.

## Architecture: 10 of 512 experts at each step

ERNIE 5.5 Flash Base is a mixture-of-experts (MoE) model. Think of a large hospital: it has hundreds of doctors, but each patient sees only the few specialists who matter. The model has 43 layers; the first is a classic dense layer every token passes through, and the other 42 are expert layers. Each expert layer has 512 experts plus 1 shared expert that always runs. For each token, 10 of them are chosen. The model carries the knowledge of 280 billion parameters while its compute cost stays close to that of a 14-billion-parameter model.

Baidu's new idea here concerns the hospital's front desk. In a classic mixture of experts, a single router decides which experts run. In ERNIE 5.5, several independently initialized routers decide together; Baidu calls this "Multi-Router". According to the company, their choices line up noticeably better with how useful each expert really is. Routing works without an extra balancing loss term, and the experts work on a latent version of the representation, projected from 4096 down to 2048 dimensions, which keeps each expert light. The approach is described in a [separate paper](https://arxiv.org/abs/2610.40577?ref=globalfeed.ai).

## Remembering long texts by compressing them

One of the most expensive jobs in a language model is keeping everything it has read in memory. That working memory is called the KV cache, and it grows as the text gets longer. In ERNIE 5.5 Flash Base, 37 of the 43 layers handle this with compression: each of these layers stores every 128 tokens as a single cached entry and also sees the most recent 128 tokens in full. It is like remembering a summary of earlier chapters while keeping the page you are reading fully in mind.

The other 6 layers sit once every seven layers and use a more detailed form of attention (MLA). In these layers a small "indexer" picks the 2,048 most relevant past entries and the model attends only to those. In Baidu's comparison, pairing the compressed layers with MLA beat pairing them with another sparse attention type (CSA) at a similar KV-cache budget. The attention layers also get a "gate", computed from a query latent that is four times narrower, which cuts the gate's weights by 75 percent. Baidu says its ablations show better performance with this low-rank gate. Every layer also uses a technique called [Virtual Head Attention](https://arxiv.org/abs/2610.17959?ref=globalfeed.ai) (VHA).

## How it was trained

**Data.** The model was trained from scratch on 33.5 trillion tokens. Baidu describes three main sources. The first is multilingual web text, filtered with a model to remove low-quality pages. The second is code: besides repositories, the data includes commit histories, issues, pull requests, code reviews and bug fixes verified by CI tests, so the model sees how code gets fixed as well as its final state. The third is long-context data: natural long documents, concatenated texts with retrieved distractors mixed in, synthetic tasks that train the model to find the right part of a long conversation, citation-based question answering and multi-hop questions. The context length was extended step by step to 128K tokens during training.

**Tokenizer.** The model uses a vocabulary of about 200,000 tokens. It makes an interesting choice with numbers: they are split right to left into groups of up to three digits, so 1,234,567 reaches the model as "1", "234", "567". The grouping mirrors the way people read numbers with thousands separators.

**Training method.** Training used the Muon optimizer. An optimizer is the algorithm that decides how much, and in which direction, the model learns from its error at each step; Muon balances updates by taking their matrix structure into account and is spreading quickly among large models. Computation ran in FP8 mixed precision, keeping most numbers in 8 bits to save memory and time. To spread Muon across thousands of GPUs, Baidu built infrastructure that fuses communication for dense and MoE layers and shards optimizer memory evenly across cards. Its FlashMask-4 attention kernel, by the company's measurements, is up to 175 percent faster in the forward pass and 74 percent faster in the backward pass than the matching mode of FlashAttention-4 on the newest cards.

**A last layer that predicts the future.** Many new models are trained with extra layers that predict several tokens ahead (MTP). Baidu instead used a method it calls [ECHO](https://arxiv.org/abs/2610.24766?ref=globalfeed.ai): rather than adding a separate layer to look ahead, the model reuses its own final layer. Baidu reports clear gains on reasoning and code, and the method's paper says it gets them at half the training overhead of MTP. The same layer also works as the draft model for speculative decoding, which lets the model guess a few tokens in advance and run faster.

**Two more changes.** The classic residual connection between layers was replaced by a four-times-wider, constrained connection structure (mHC). The output head that picks the next token gained a learnable piecewise temperature (MultiMax), which Baidu says significantly lowers pre-training loss.

## What was tested, at smaller scale

Baidu justifies most of its choices with comparisons, and the numbers behind them appear in the component papers on smaller models. In the routing paper, a 10-billion-parameter model with 1 billion active, trained on 708 billion tokens, gained 1.18 points on a nine-task average from the new design, with the multiple routers alone adding 0.6 points. In the Virtual Head Attention paper, the technique beat MLA by 0.70 points and GQA by 2.60 points on a 30-billion-parameter model. These are small-scale results for the methods. Learning rate, GPU count and the language mix of the data are not given in the post.

## What the benchmarks show

Baidu tested all four models with the same evaluation harness, prompts and few-shot examples. The biggest gaps are in general knowledge and code. On the harder general-knowledge test MMLU-Pro, ERNIE scores 78.4 while DeepSeek V4 Flash Base scores 69.2\. In coding it leads with 82.3 on HumanEval+ and 81.5 on MBPP+, and on LiveCodeBench, built from recent programming problems, its 40.1 is 6.6 points ahead of the nearest rival. For long context it scores 48.7 on LongBench-v2 and 91.7 on RepoQA, which measures finding the requested function in a code repository. It ranks first on SimpleQA, which measures answering short factual questions without making things up, with 34.1\. In multilingual tests it leads MMMLU-lite with 81.0 and trails DeepSeek by 0.3 points on INCLUDE-lite.

The table also shows where ERNIE falls behind. On short Chinese factual questions (ChineseSimpleQA), DeepSeek leads with 75.3 against ERNIE's 73.0\. On full-stack software tasks (FullStackBench), Hy3 preview Base is first with 56.7 and ERNIE second with 54.6\. DeepSeek also leads on the long-context InfiniteBench and on the document reranking task. All scores are Baidu's own measurements across the four base models.

## How to try it

The files are on Hugging Face. The FP8 version takes about 280 GB; according to the table in Baidu's [vLLM-ERNIE](https://github.com/baidu/vLLM-ERNIE?ref=globalfeed.ai) repository, it needs 8 cards with 80 GB, 4 cards with 192 GB or 2 cards with 288 GB. The BF16 version is about 560 GB and spans two servers with 80 GB cards. That size points the model at teams with data-center GPUs or those renting GPUs in the cloud.

Baidu's recommended route is vLLM 0.32.0 with its own plugin, which runs on NVIDIA GPUs. Following the repository's instructions, installation and the server command look like this (on Blackwell cards, add `--moe-backend humming`):

```
uv venv --python 3.12
uv pip install vllm==0.32.0
uv pip install git+https://github.com/baidu/vLLM-ERNIE.git

vllm serve baidu/ERNIE-5.5-Flash-Base --data-parallel-size 4 \
  --enable-expert-parallel --kv-cache-dtype fp8 --max-model-len 131072 \
  --speculative-config '{"method":"mtp","num_speculative_tokens":2}'
```

The speculative setting in the command uses the ECHO layer described above as the draft. The model page also covers a Docker image Baidu prepared for SGLang and direct loading with the transformers library for quick tests. Two things to keep in mind: the model expects a BOS token at the start of every input, and unlike a chat assistant it works as a text completion model. For anyone who wants to train it on their own data, the post links to a fine-tuning example built on NVIDIA NeMo Megatron-Bridge.

The model is released under the ERNIE 5.5 Flash Base Model License Agreement. Non-commercial use is free. Companies with annual revenue up to 50 million dollars can use it commercially at no charge by showing "Powered by ERNIE" in their product and sending Baidu a one-time notice email. The license territory covers most of the world, with the European Union, the United Kingdom and South Korea outside it.

All benchmark results are Baidu's own measurements. Because the model is open, independent tests, and above all the fine-tuned models that teams build on this base, will show more clearly how good a starting point ERNIE 5.5 Flash Base is for real work.

Sources: [ERNIE blog](https://ernie.baidu.com/release/ernie-5-5-flash-base/?ref=globalfeed.ai), [Hugging Face model page](https://huggingface.co/baidu/ERNIE-5.5-Flash-Base?ref=globalfeed.ai), [BF16 version](https://huggingface.co/baidu/ERNIE-5.5-Flash-Base-BF16?ref=globalfeed.ai), [vLLM-ERNIE](https://github.com/baidu/vLLM-ERNIE?ref=globalfeed.ai), [Multi-View Latent MoE paper](https://arxiv.org/abs/2610.40577?ref=globalfeed.ai), [ECHO paper](https://arxiv.org/abs/2610.24766?ref=globalfeed.ai), [Virtual Head Attention paper](https://arxiv.org/abs/2610.17959?ref=globalfeed.ai)