Baidu Open-Sources ERNIE 5.5 Flash Preview: 280B MoE, 1M Context, Kunlunxin Day0 Ready
Baidu has open-sourced ERNIE 5.5 Flash Preview, a 280B sparse MoE model with 14B activated parameters, 1M token context, and native tool-calling for Agent tasks, while simultaneously achieving Day0 deployment on Kunlunxin hardware with P/D separation, mixed quantization, speculative decoding, and a multi-level KV cache system delivering 80–90% hit rates and over 80% TTFT reduction.
Reading font

On November 24, Baidu officially open-sourced ERNIE 5.5 Flash Preview, the first post-training version of ERNIE 5.5 Flash. The model is a sparse Mixture-of-Experts (MoE) architecture with 280B total parameters and 14B activated parameters per token. It supports a 1M token context window, employs a think-before-answer approach, and can execute long-horizon Agent tasks via tool calling.
Model Architecture
The model comprises 43 layers: 37 layers use Heavy Compression Attention (HCA) and 6 layers use Multi-Head Latent Attention with Dynamic Sparse Attention (MLA-DSA). Additional innovations include low-rank attention gating, Virtual Head Attention (VHA), Multi-Router Latent MoE, mHC residual streams, and a MultiMax output head.
Speculative Decoding
A 3-layer DSpark draft model based on the MoE architecture is released alongside the weights. It can generate up to 7 tokens per step, significantly accelerating inference decoding speed.
Knowledge Work and Video Creation
Post-training covers professional domains such as finance and legal, using a dataset of 40+ file types, 300,000 workspaces, and 10 million files. This enables strong autonomous planning and execution: the model can synthesize clues from scattered materials, orchestrate applications, MCP tools, and Skills, and directly output production-ready tables, documents, and reports. For video creation, the model handles the full pipeline — creativity, scripting, storyboarding, asset gathering, and dubbing — and adapts to thousands of creation skills.
1M Token Long Context
The 1M token context window retains task-relevant file contents, tool-call records, and returned results, supporting long tasks that require continuous historical reference. The hybrid sparse attention architecture reduces KV Cache memory footprint during long-context inference.
Kunlunxin Day0 Adaptation and SGLang-Kunlun
Baidu completed model adaptation and cluster deployment on Kunlunxin hardware, supporting P/D separation, W4A8 quantization, DSpark, MegaMoE, and parallel strategies (TP, CP, EP, DPA). Fused operators were developed for the model's novel attention and MoE structures to accelerate deployment on domestic compute. To enable rapid adaptation, Baidu and Kunlunxin open-sourced SGLang-Kunlun (
https://github.com/baidu-baige/sglang-kunlun/tree/v0.5.23-dev-ernie55), which decouples the SGLang community version from the Kunlunxin XPU backend using CUDA-like features and an OOT Plugin mechanism. This allows developers to use Kunlunxin XPU as conveniently as a general GPU. Correctness and performance were validated with torch_xray precision alignment and PyTorch Profiler.
Full-Chain Performance Optimization
Optimizations span operator, kernel launch, framework, and system layers:
Operator-level tuning tailored to Kunlunxin hardware unit characteristics.
Elimination of CPU scheduling overhead to drastically reduce kernel launch latency.
Custom operators for framework-native bottlenecks.
System-level parallel compute enhancements.
Fusion optimization targets Multi-Router Latent MoE and VHA modules. Quantization uses a mixed-precision strategy: Attention and Dense FFN main bodies at W8A8, MoE experts at W4A8 to avoid unacceptable precision loss. Baidu's proprietary quantization toolchain enables per-component precision selection with near-lossless accuracy. Additionally, RSI auto-optimization exploration based on ERNIE Evolve in low-latency scenarios achieved 623.6% of baseline performance .
Large-Scale Deployment and KV Cache Scheduling
For standard 8-card and super-node platforms, a P/D separation deployment architecture is provided. Baidu Baige built a multi-level KV Cache scheduling and acceleration engine covering local memory and remote pooled storage (G2.5 shared memory pool, G3.5 all-flash SSD pool, G4 parallel file storage pool), decoupling cache capacity from compute scale. This achieves 80–90% cache hit rates . In Agent and long-context multi-turn dialogue scenarios, the solution reduces TTFT by over 80% , providing robust response guarantees for high-concurrency, extremely long-text workloads such as AI Agents and complex coding.
Elastic Scaling
Baidu Baige systematically optimized elastic scaling on Kunlunxin clusters, compressing instance launch time from minutes to seconds to handle traffic fluctuations.
Resources
INT4 weight model:
https://modelscope.cn/models/baidu-aicapx/ERNIE-5.5-Flash-Preview-INT4Open-source inference code:
https://github.com/baidu-baige/sglang-kunlun/tree/v0.5.23-dev-ernie55Baidu plans to continue deepening software-hardware co-optimization on Kunlunxin around ERNIE 5.5 Flash Preview, iterating from operators and frameworks to system deployment to release frontier large-model capabilities more efficiently on domestic compute.
About this article
For attribution, corrections or content rights, contact
