TL;DR
- Baidu published ERNIE 5.5 Flash Preview on Hugging Face on November 23, 2026 under Apache 2.0: 280B total parameters, 14B active per token, 43 layers, 512 routed experts with 10 active, and a 1,048,576-token context window.
- The default repository is 165.9 GB (154.5 GiB) because routed experts are stored in MXFP4 and everything else in FP8. The FP8 repository is 281.1 GiB and the BF16 repository is 558.4 GiB, measured from the file lists.
- Only 6 of the 43 layers keep token-level history (sparse attention, "DSA"). The other 37 use Heavily Compressed Attention, which per the model card keeps one cache entry per 128 tokens. My estimate for the cache at 1M tokens is about 3.9 GiB in FP8, against about 24.2 GiB if all 43 layers were token-level.
- The benchmark table on the card is Baidu's own evaluation. Treat it as a vendor claim, and note the card calls this an intermediate post-training checkpoint.
What did Baidu actually release?
The repository baidu/ERNIE-5.5-Flash-Preview appeared on November 23, 2026 and had 396 likes and 3,585 downloads when I looked on November 28. The card describes it as the first post-trained model built on ERNIE 5.5 Flash Base, with mid-training that stretches the training context from 128K to 1M tokens. The license is Apache 2.0 for the Preview weights only. The Base model keeps its own separate license, which matters if you plan to fine-tune from Base rather than from the Preview.
The architecture facts, all read from config.json and the card:
| Item | Value |
|---|---|
| Total / active parameters | 280B / 14B (card) |
| Layers | 43 (1 dense + 42 MoE) |
| Hidden size | 4096 |
| Routed experts | 512, top-10, plus 1 shared |
| Vocabulary | 201,216 |
| Max positions | 1,048,576 |
| Attention | 37 HCA layers (head dim 512) + 6 MLA-DSA layers, 64 heads |
| Precision | FP8 blockwise, routed experts MXFP4 (W4A8), FP8 KV cache, FP4 indexer |
| Speculative decoding | DSpark draft head included in the weights |
One detail in the config explains the whole memory story. The compress_ratios list has 43 entries: 37 are 128 and 6 are -2, and the six -2 entries sit at layers 8, 15, 22, 29, 36 and 43. That matches the card's "37 x HCA + 6 x MLA-DSA" split, and it means the model has a repeating rhythm of six compressed layers followed by one sparse layer.
How big are the weights, and why three repositories?
I summed the safetensors file sizes from the Hugging Face API for each repository:
| Repository | Bytes | GiB |
|---|---|---|
| ERNIE-5.5-Flash-Preview (default) | 165,904,542,592 | 154.5 |
| ERNIE-5.5-Flash-Preview-FP8 | 301,870,477,968 | 281.1 |
| ERNIE-5.5-Flash-Preview-BF16 | 599,585,858,320 | 558.4 |
The default repository averages about 4.43 bits per parameter if you divide its bytes by the 299.6B parameters that the safetensors header counts. That header count is about 7% above the 280B on the card. I do not know the cause. The header may include tensors that the headline figure leaves out, such as the DSpark draft head and the indexer, but the card does not say, so I am not going to assert it.
The reason for three repositories is stated on the card: the default one holds FP4 expert weights, and hardware without FP4 kernels should use the FP8 or BF16 repository. For fine-tuning, the card recommends the BF16 one.
Does it fit on four H100s?
The official launch commands use four GPUs. Here is the illustrative arithmetic, assuming an even split of weights across four 80 GB cards (about 74.5 GiB usable each) and ignoring any replication that data-parallel attention adds:
- Default FP4/FP8 repository: 154.5 / 4 = 38.6 GiB per GPU, which leaves about 36 GiB per GPU for cache, activations and the draft head.
- FP8 repository: 281.1 / 4 = 70.3 GiB per GPU, which leaves roughly 4 GiB. That is not a comfortable serving configuration.
So on Hopper-class cards the FP8 route is tight on four GPUs, and the practical choice depends on whether your kernels can read the FP4 experts. I have not run the model, so treat these as budget figures, not measurements.
Why is the KV cache so small at 1M tokens?
This is the part I find most interesting, and it is a calculation rather than a measurement. The model card says HCA layers cache one entry per 128 tokens of history, and that the six DSA layers keep token-level history but attend to only 2,048 selected positions. The config gives sliding_window 128, head_dim 512, num_key_value_heads 1, kv_lora_rank 512 and a 64-dimension rotary part.
My assumptions, so you can check them:
- HCA layer: one 512-dimension FP8 entry per 128 tokens, so 1,048,576 / 128 = 8,192 entries of 512 bytes, which is 4 MiB per layer. Over 37 layers that is 148 MiB (0.145 GiB).
- Sliding window: 128 tokens x 512 bytes = 64 KiB per HCA layer, about 2.3 MiB over 37 layers.
- DSA layer: a 576-byte entry per token (512 latent plus 64 rotary, FP8), which is 576 MiB per layer at 1M tokens. Over 6 layers that is 3.375 GiB.
- DSA indexer: 128 dimensions in FP4 is 64 bytes per token, so 64 MiB per layer and 0.375 GiB over 6 layers.
Sum: 3.375 + 0.375 + 0.145 + 0.002 = 3.90 GiB at 1M tokens. For comparison, if all 43 layers kept a 576-byte entry per token, the cache would be 43 x 576 MiB = 24.2 GiB, which is 6.2 times larger.
Two readings follow from the breakdown. First, the 37 compressed layers cost almost nothing: 0.145 GiB for 86% of the layers. Nearly all of the cache sits in the six sparse layers, so any future change to those six layers moves the memory bill far more than a change to the other 37. Second, at the 131,072-token context that the card's launch commands use, the same arithmetic gives about 0.49 GiB, which is why a four-GPU node is not limited by cache at that length.
The caveat: engines may allocate cache in pages, pad entries, keep extra scale tensors for FP8, or hold the DSpark draft state separately. The real number from vLLM or SGLang will be higher than 3.9 GiB. Measure it with your engine's startup log before sizing hardware.
What does DSpark change for latency?
The card says the Preview ships a DSpark draft head, which proposes a block of tokens in parallel for the main model to verify in one pass. It recommends larger draft blocks (up to 7 tokens) at low concurrency and smaller blocks (2 to 3) at high concurrency. The vLLM example sets num_speculative_tokens to 7. The card also says that with 7 draft steps its ECHO multi-token prediction reaches an average acceptance length above 5.5 on real multi-turn conversations, and that the indexer pre-filter gives a 40% speedup at 1M-token context. All of those are vendor numbers. The decoding path is quantization-aware: the W4A8 expert weights were trained with fake quantization that matches inference granularity and rounding, so the released weights deploy without a separate calibration step.
What do the benchmark numbers say?
Baidu lists 20 benchmarks. Every ERNIE score is from Baidu's own evaluation, and for other models the card mixes official reports, Artificial Analysis figures and Baidu's own re-runs (marked with an asterisk). A few rows, quoted from the card:
| Benchmark | ERNIE 5.5 Flash Preview | Hy4 | DeepSeek-V4.1-Flash-1017 | GLM-5.3 | Claude Opus 5.5 |
|---|---|---|---|---|---|
| Terminal-Bench 4.0 | 46.5 | 44.4 | 42.3 | 41.8 | 66.4 |
| MCP-Atlas | 84.6 | 83.0* | 77.8* | 82.4* | 84.2* |
| Toolathlon-Verified | 75.0 | 73.1* | 71.2* | 73.0 | 80.1* |
| OfficeQA Pro V2 | 67.9 | 63.8* | 63.4* | 59.3* | 62.2 |
| BrowseComp | 87.4 | 91.8* | 80.3* | 77.8* | 90.8 |
On MCP-Atlas and OfficeQA Pro V2, the Preview posts the highest score among these five columns. Because the harnesses differ by model (Codex for GPT-series, Claude Code for most others) and the figures come from the vendor, a single point of difference should not be read as a ranking. If a number matters for your use case, re-run it in your own harness.
How do I try it?
The card documents SGLang and vLLM paths. The vLLM variant, trimmed from the card:
uv venv --python 3.12 ernie5-venv && source ernie5-venv/bin/activate 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-Preview \ --trust-remote-code --data-parallel-size 4 --enable-expert-parallel \ --kv-cache-dtype fp8 --max-model-len 131072 \ --reasoning-parser ernie5 --tool-call-parser ernie5 \ --enable-auto-tool-choice \ --attention-config '{"indexer_kv_dtype":"mxfp4"}' \ --speculative-config '{"method":"dspark","num_speculative_tokens":7,"draft_sample_method":"probabilistic"}' To reproduce my size table without downloading anything:
import json, urllib.request for repo in ["", "-FP8", "-BF16"]: url = f"https://huggingface.co/api/models/baidu/ERNIE-5.5-Flash-Preview{repo}?blobs=true" info = json.load(urllib.request.urlopen(url)) total = sum(s["size"] for s in info["siblings"] if s["rfilename"].endswith(".safetensors")) print(repo or "default", total, round(total / 2**30, 1)) Note that --max-model-len 131072 is the card's example value. Both servers accept up to 1,048,576 tokens, and the cache estimate above is why long context is plausible on this design.
FAQ
How many parameters does ERNIE 5.5 Flash Preview have?
The card says 280B total with 14B active per token. The safetensors header counts about 299.6B, and the difference is not explained on the card.
What license does it use?
Apache 2.0 for the Preview weights. The Base model has a separate license agreement.
How much memory do the weights need?
154.5 GiB for the default FP4-expert repository, 281.1 GiB for FP8 and 558.4 GiB for BF16, based on the repository file sizes.
How big is the KV cache at 1M tokens?
My estimate is about 3.9 GiB in FP8, derived from the card and config under the assumptions listed above. Real engines will report more because of paging and scale tensors.
Is it a final model?
No. The card calls it an intermediate checkpoint from post-training and says post-training is ongoing.
Which engines support it?
SGLang and vLLM, the latter through the vLLM-ERNIE plugin.
Further reading
- Ling-3.2-air: 124B parameters, 5.5B active, and a KV cache that comes from only 7 of 42 layers
- Qwen3.8-27B keeps a KV cache in only 16 of 64 layers
