Baidu Drops ERNIE 5.5 Flash Preview With 280B Weights and 1M Token Context
Baidu open-sourced a 280B MoE with 14B active parameters, a 1M token context, and Apache 2.0 licensing tuned for agentic coding.
Takeaways
- Baidu open-sourced ERNIE 5.5 Flash Preview, a 280B MoE with 14B active parameters, under Apache 2.0.
- Context window reaches 1,048,576 tokens, extended from 128K during mid-training.
- Routed experts run in MXFP4 (W4A8) with quantization-aware training; KV cache is FP8.
- DSpark speculative decoding ships in the weights, hitting 5.5+ average acceptance length at 7 draft steps.
- Leads its weight class on AutomationBench, SpreadsheetBench V2, and OfficeQA Pro V2; trails Claude Opus 5.5 on HLE reasoning.
- Deployable via vLLM-ERNIE or SGLang; BF16 weights available for fine-tuning.
Baidu has released ERNIE 5.5 Flash Preview on Hugging Face and ModelScope under the Apache 2.0 license. The license permits commercial use, modification, and redistribution subject to its notice and license conditions. Baidu describes the model as an interim post-training checkpoint, so its behavior and capabilities may change before the final release.
280B weights, 14B at work
| Architecture | Mixture of Experts with 280B total parameters and 14B active per token |
|---|---|
| Context window | Up to 1,048,576 tokens, extended from 128K during post-training |
| Layers | 43 total: one dense layer and 42 MoE layers |
| Expert routing | 512 routed experts per MoE layer, with 10 selected experts and one shared expert |
| Vocabulary | 201,216 tokens |
| Primary workloads | Coding, tool use, knowledge work, 3D modeling, and content generation |
Mixture-of-Experts routing sends each token through a small subset of the available experts. That design limits parameter computation to about 14B per token. Deployment requires enough memory and interconnect bandwidth to store and shard the full 280B-parameter model.
The model combines Heavily Compressed Attention, or HCA, with a sparse attention design called DSA. Thirty-seven layers use HCA, which stores one key-value cache entry for every 128 tokens of history. The remaining six retain token-level history while attending only to selected positions. Together, these mechanisms reduce the memory and computation required for long prompts.
Benchmarks favor tool-heavy work
Baidu reports results across 20 agentic coding, knowledge-work, and reasoning evaluations. Its comparison set includes Claude Opus 5.5, GPT-6.1 Sol, DeepSeek-V4.1-Flash, GLM-5.3, and Hy4. The results are vendor-reported and have not been independently reproduced.
| Benchmark | ERNIE score | Reported position |
|---|---|---|
| Terminal-Bench 4.0 | 46.5 | Above Hy4, DeepSeek-V4.1-Flash, and both GLM-5.3 variants; below Claude Opus 5.5 at 66.4 |
| AutomationBench | 61.9 | Highest score in Baidu’s comparison set |
| SpreadsheetBench V2 | 36.4 | Highest score in the comparison set |
| OfficeQA Pro V2 | 67.9 | Highest score in the comparison set |
| Toolathlon-Verified | 75.0 | Competitive with the larger closed models tested |
| MCP-Atlas | 84.6 | Competitive with the larger closed models tested |
| HLE without tools | 46.4 | Substantially behind Claude Opus 5.5 |
| AA-Omniscience-Public | 25.2 | Substantially behind Claude Opus 5.5 |
The reported pattern favors automation, office tasks, and tool use. Performance drops on knowledge-heavy evaluations without tools. Scores from different benchmarks use different scales, so comparisons are meaningful within each row rather than across rows.
Three levers cut inference cost
Baidu co-designed the sparse architecture, quantization scheme, and speculative decoder during training. HCA reduces key-value cache growth, while DSA limits the positions processed during attention. Baidu also reports that an optimized sparse-attention indexer improves speed by 40% at a one-million-token context length.
Quantization focuses on the routed experts, which contain most of the parameters. The default weights store those experts in MXFP4 and execute them as W4A8, using 4-bit weights and 8-bit activations. Quantization-aware post-training simulates the same granularity, scaling factors, and rounding rules used during inference, reducing the accuracy loss commonly associated with low-precision deployment.
Speculative decoding uses DSpark, a draft head included with each weight release. The model was pre-trained with single-step ECHO multi-token prediction. With seven draft steps, Baidu reports an average accepted sequence longer than 5.5 tokens on real-world, multi-turn conversations. Accepting several draft tokens per verification pass can reduce the number of full-model decoding steps.
From weights to a server
Baidu publishes three weight formats for different deployment and training environments:
| Format | Intended use | Main requirement |
|---|---|---|
| FP4 expert default | Lowest-precision inference path | Supported FP4 kernels and compatible hardware |
| FP8 blockwise | Alternative inference deployment | FP8-capable runtime and hardware |
| BF16 | Fine-tuning and higher-precision deployment | Substantially more accelerator memory |
All three formats include the DSpark draft head. Baidu documents serving through SGLang or vLLM with the vLLM-ERNIE plugin. A minimal SGLang launch uses the following command:
sglang serve \
--model-path baidu/ERNIE-5.5-Flash-Preview \
--tp 4 --attn-dp-size 4 \
--context-length 131072 \
--speculative-algorithm DSPARK \
--reasoning-parser ernie55 \
--tool-call-parser ernie55 \
--trust-remote-code
The example limits context to 131,072 tokens. Baidu documents a maximum of 1,048,576 tokens when the context setting is raised, although full-length requests require additional cache memory and incur substantial prompt-processing latency. The tensor-parallel and attention data-parallel values also need to match the target GPU topology.
The --trust-remote-code option permits code from the model repository to execute on the host. Production deployments should inspect that code and pin a reviewed repository revision before enabling the flag.
Reasoning mode remains enabled for every request. Servers return intermediate reasoning in reasoning_content and the final response in the normal content field, so clients that expect a single text field need an adapter. Fine-tuning starts from the BF16 weights and uses NVIDIA’s Megatron-Bridge.
Where the preview fits
ERNIE 5.5 Flash Preview targets agent systems that need large working contexts, tool calls, and sustained multi-step execution. Its 14B active-parameter count can lower per-token computation compared with a dense 280B model, while the million-token window can hold large repositories, document collections, or extended task histories.
Baidu cites an 11-hour coding run in which the model produced a third-person wuxia game in C++ with Unreal Engine 5.8. It also reports generating nearly 100 mobile mini-games from design documents. For knowledge-work training, Baidu says it used 300,000 workspaces spanning fields such as finance and law, with 10 million reference files across more than 40 formats. These examples are company-reported demonstrations rather than standardized evaluations.
Constraints to plan around
- Preview status: Post-training is ongoing, and Baidu warns that some capabilities remain incomplete.
- Always-on reasoning: Reasoning cannot be disabled, adding latency and generated-token overhead to simple requests.
- Full-model footprint: The 14B active count reduces computation per token, while hosting still requires storage and sharding for 280B parameters.
- Hardware support: The default format requires working FP4 kernels. Other systems need a compatible FP8 or BF16 deployment path.
- Long-context cost: Compressed and sparse attention reduce cache and attention costs. Million-token prompts still demand significant memory, prefill time, and capacity testing.
- Unverified results: The published benchmark scores and speedups come from Baidu and require reproduction on the intended workloads and hardware.
For teams with suitable infrastructure, the release provides Apache 2.0-licensed weights, a million-token context window, integrated speculative decoding, and documented serving paths. Its practical value depends on workload-specific benchmark reproduction, hardware compatibility, and tolerance for the limitations of an unfinished checkpoint.