ERNIE 5.5 Flash Preview Apache 2.0 Deployment: A Self-Hosting and Hardware Guide
Baidu's ERNIE 5.5 Flash Preview is an open-weight Mixture-of-Experts (MoE) language model released under the Apache 2.0 license on November 24, 2026. The weights are distributed on Hugging Face and ModelScope in three formats, FP4, FP8, and BF16, and the model can be served locally with vLLM or SGLang. It contains 280 billion total parameters while activating only 14 billion per token, a design that keeps inference cost closer to a much smaller dense model. Deployment, however, is a multi-GPU job: this is not a model that loads onto a single consumer graphics card.
What the Apache 2.0 Release Includes
The Apache 2.0 license grants broad permissions for use, modification, and redistribution, which means developers can fine-tune the model, adapt it to private toolchains, and run commercial workloads without a separate commercial license. The open release completes a chain that began with the earlier ERNIE 5.5 Flash Base checkpoint. ERNIE 5.5 Flash Preview is the first post-trained version built on that base, focused on chat, reasoning, and agentic behavior rather than raw text continuation.
Three weight repositories are published to match different hardware and use cases. The default repository ships FP4 expert weights, which carry the smallest memory footprint because the routed experts hold most of the model's parameters. A separate FP8 repository serves systems without FP4 kernels, and a BF16 repository provides the starting point for fine-tuning. According to Baidu's published documentation, FP4 weights occupy roughly 155 GB of memory, FP8 about 280 GB, and BF16 about 560 GB. These figures are weight footprints only;the KV cache and temporary buffers required for long-context prefills consume additional memory on top.
Deployment Frameworks and Hardware Requirements
Two inference frameworks are officially documented for serving ERNIE 5.5 Flash Preview: SGLang and vLLM. The SGLang documentation publishes verified recipes across B300, GB300, B200, GB200, and H100 GPUs, covering low-latency and high-throughput serving strategies. The vLLM path uses Baidu's plugin to support the model's specific architecture, which is not available in a stock vLLM install.
The recommended GPU counts follow directly from the three weight formats.
| GPU (memory) | FP4 (~155 GB) | FP8 (~280 GB) | BF16 (~560 GB) | | --- | --- | --- | --- | | B300 / GB300 (288 GB) | 2 GPUs | 2 GPUs | 4 GPUs | | B200 (192 GB) | 4 GPUs | 4 GPUs | 8 GPUs | | GB200 (192 GB) | 4 GPUs | 4 GPUs | 2 trays x 4 GPUs | | H100 (80 GB) | Not supported (SM100 only) | 8 GPUs | 2 nodes x 8 GPUs |
These are the minimums required to hold the weights. The context length you can actually serve depends on how much memory remains for the KV cache. Baidu's reference commands default to a context length of 131,072 tokens, with both SGLang and vLLM supporting an increase toward the full 1,048,576-token window through a single configuration flag. Pushing context to the maximum multiplies KV cache usage substantially, which is why the million-token setting is documented primarily for high-memory nodes with reduced GPU memory utilization.
Architecture and Why Deployment Looks Different
ERNIE 5.5 Flash Preview is a sparse MoE model with 512 routed experts plus one shared expert, and the router selects the top 10 experts for each token. Of its 43 layers, only one is dense;the remainder are MoE layers. This sparsity is what produces the 280 billion total parameter count with only 14 billion active per token, and it is also why the FP4, FP8, and BF16 footprints differ so sharply in size.
Attention is split across two mechanisms. Thirty-seven layers use Heavily Compressed Attention (HCA), which caches a small fraction of history to keep the KV cache compact, while six layers use a sparse attention variant that scores a fixed set of positions instead of the full sequence. A lightweight indexer with pre-filtering is reported to deliver around a 40% speedup at long context lengths by reducing the cost of scoring which tokens matter. These design choices are relevant to deployment because they directly shape memory consumption and the effective serving speed at scale.
Speculative decoding is built into the released weights through a component Baidu calls DSpark. The server drafts multiple candidate tokens in parallel and verifies them in a single pass, which accelerates long agent sessions. On benchmark and speed figures, the model scores 61.9 on AutomationBench and 46.5 on Terminal-Bench 4.0, and it ranks second among open-source models on the CodeArena WebDev leaderboard with 1,668 points. Baidu's official data shows more than 200 tokens per second in decoding, while SGLang's documented HALOps deployment has reached 1,074 tokens per second at a DSpark acceptance length of 5.5, and 1,310 tokens per second at 7.2. These higher figures depend on specific hardware and operator libraries and should be treated as peak deployment results rather than default behavior.
A Practical Deployment Workflow
Deployment begins with selecting the weight format that fits the available GPU memory, then installing a supported serving stack. For SGLang, the documented approach is to install the framework and run the generated serve command with tensor parallelism, such as a four-GPU configuration using --tp 4. For vLLM, Baidu's plugin is required, and the reference commands use data parallelism flags such as --data-parallel-size 4 alongside an FP8 KV cache setting to contain memory overhead.
The serving command launches an OpenAI-compatible endpoint, typically on port 8000, which means existing applications can point to the local server with minimal changes. Because the Preview is an intermediate post-training checkpoint, Baidu explicitly frames it as a snapshot whose capabilities are still being refined rather than a finished release. Teams evaluating it for production should treat current weights as a starting point for fine-tuning, tool integration, and benchmark validation against their own workloads.
One operational nuance worth planning around is quantization. The FP4 format runs routed experts as 4-bit weights with 8-bit activations on supported hardware, but systems without FP4 kernels should fall back to FP8. The BF16 checkpoint remains the sensible base for fine-tuning, after which teams can re-quantize for their serving environment. Each choice trades memory footprint against precision, and the correct pick depends on whether the goal is maximum throughput, lowest latency under light load, or a fine-tuning source.
FAQ
Where can I download ERNIE 5.5 Flash Preview weights?
The model is published on Hugging Face under the baidu/ERNIE-5.5-Flash-Preview repository, with separate FP8 and BF16 variants, and is also available on ModelScope. The default repository uses FP4 expert weights.
Can ERNIE 5.5 Flash Preview run on a single GPU?
No. With 280 billion total parameters, even the compressed FP4 format requires multiple GPUs to hold the weights plus KV cache. Baidu's documented recipes start at two high-memory GPUs (288 GB each) for FP4 and scale upward for FP8 and BF16.
Which serving frameworks are supported?
SGLang and vLLM are both officially documented. SGLang provides verified recipes across B300, GB300, B200, GB200, and H100 hardware, while vLLM requires Baidu's plugin to support the model architecture.
What is the maximum context length during deployment?
The model supports up to 1,048,576 tokens, but the reference serving commands default to 131,072 tokens. Raising the context toward the maximum increases KV cache memory requirements, so the full window is typically reserved for high-memory nodes.
