Baidu put the ERNIE 5.5 Flash Preview chat weights on Hugging Face under Apache 2.0, which is a looser license than the Base model it was trained from. The catch is size. According to Baidu's own vLLM plugin, the smallest setup that holds the weights is one 288 GB Blackwell GPU, and that's for the model called "Flash". So can you run ERNIE 5.5 Flash Preview locally? Below are the VRAM numbers, why there's no GGUF for llama.cpp or Ollama yet, what the license actually allows, how far I'd trust the benchmarks, and the exact vLLM and SGLang commands.

Quick recap on Base: ERNIE-5.5-Flash-Base is the checkpoint "at the end of pre-training, before any mid- or post-training." It doesn't chat. You hit /v1/completions and it continues text. ERNIE-5.5-Flash-Preview is the one you can actually talk to. Baidu announced it on November 11, 2026.

Everything below comes from the model cards, the repo files, the SGLang cookbook and the vLLM plugin README. I haven't run it, and on a normal workstation you won't either.

What changed from Base to Preview

The Preview "shares its architecture and tokenizer with ERNIE 5.5 Flash Base." The work went into the weights:

  • Mid-training stretched context from 128K to 1M tokens (max_position_embeddings: 1048576, YaRN factor 16 over an original 65,536).
  • Post-training added chat, reasoning and tool calling. Base has "no chat, reasoning or tool-call training," per the SGLang cookbook.
  • A DSpark draft head ships in the repo for speculative decoding (dspark_block_size: 7, dspark_target_layer_ids 40–42).

Baidu is upfront that it's unfinished. It describes the release as "an intermediate checkpoint from post-training" and warns that "some capabilities may still fall short because training is not finished." There's no date for the final release.

Specs: 280B total, 14B active, 1M context

From the model card and config.json:

ERNIE 5.5 Flash Preview
Total / active params 280B / 14B per token (the Hub counter says 300B, which likely includes the draft head and scale tensors)
Layers 43 (1 dense + 42 MoE)
Experts 512 routed, top-10, plus 1 shared
Attention 37 HCA layers + 6 MLA-DSA layers, 64 heads
Context 1,048,576 tokens
Vocab 201,216
Default precision Blockwise FP8, routed experts in MXFP4 (W4A8, quantization-aware trained), FP8 KV cache
License Apache 2.0

The HCA layers cache "one entry per 128 tokens of history," which is how a 1M context fits in KV memory at all.

The chat template and reasoning mode

There's no Jinja chat template in the repo. Prompts are built by encoding_ernie.py, a plain Python renderer, and it uses its own tokens: <|ernie:im_start|>, <|ernie:im_end|>, <ernie:think>, <ernie:tool_call>. Tool calls come out as <invoke name="..."> with <parameter name="..."> children. If you're writing a parser, don't assume Hermes or Qwen formatting.

Thinking is on by default. Pass enable_thinking: false to turn it off, and the renderer ends the prompt with an empty <ernie:think></ernie:think>. With thinking on, reasoning_effort takes low, medium or high, default high, and anything else raises a ValueError in the renderer. One annoyance: the same card also says "The model always thinks before it answers," so check what your server does with the flag before you trust it. Reasoning comes back in message.reasoning_content, the answer in message.content.

generation_config.json ships temperature: 1.0, top_p: 0.95. The card doesn't recommend anything else.

The Apache 2.0 license is better than Base's

This is the part I like. Base is under the custom ERNIE 5.5 Flash Base Model License Agreement v1.0. It doesn't apply in the EU, UK or South Korea. Above US$50M in annual revenue you need written authorization. Commercial products have to show "Powered by ERNIE", and you can't use outputs to improve non-ERNIE models. The top comment in the Base HN thread went straight at the regional exclusions.

The Preview is tagged apache-2.0, its LICENSE file is plain Apache 2.0, and the card says that license "covers the ERNIE 5.5 Flash Preview weights only." So the chat model, the one you'd actually ship, has a more permissive license than its own parent.

Baidu's blog post still says the weights "will be open-sourced under Apache 2.0 soon," but they're already on the Hub (the upload commit is from November 23). One trap: quants and fine-tunes of Base count as derivatives under the Base license, so check which parent a community GGUF actually comes from. For the Preview itself, the usual "Chinese lab license" objection doesn't apply.

ERNIE 5.5 Flash Preview benchmarks vs DeepSeek, GLM and Claude

All ERNIE numbers are self-reported. Hugging Face's own eval PR on the repo calls them "self-reported, not verified runs." I picked these rows from the comparison Baidu chose to publish:

Benchmark ERNIE 5.5 Flash Preview DeepSeek-V4.1-Flash-1017 GLM-5.3 Claude Opus 5.5
Terminal-Bench 4.0 46.5 42.3 41.8 66.4
DeepSWE v1.1 71.2 77.0 66.9 74.2
AutomationBench 61.9 60.5 48.2 58.0*
APEX-Agents 1.1 64.2 69.8 56.6 73.5
MCP-Atlas 84.6 77.8* 82.4* 84.2*
BrowseComp 87.4 80.3* 77.8* 90.8
HLE (no tools) 46.4 44.0 42.0 61.4

* = only Baidu's own run of that competitor exists. Where the card gives both a published score and Baidu's re-run, I've used the published one. On HLE, the ERNIE, DeepSeek and GLM-5.3 scores are on the text-only subset; the Opus 5.5 score isn't marked that way.

My read: it beats GLM-5.3 on every row here and trades blows with DeepSeek-V4.1-Flash, winning five rows and losing DeepSWE by almost six points and APEX-Agents by 5.6. Opus 5.5 is still clearly ahead on Terminal-Bench and HLE. Be careful with the starred cells, though. On APEX-Agents, Baidu's re-run of DeepSeek scored 43.9 against a published 69.8. When a vendor's harness takes 26 points off a competitor, wait for third-party evals.

Hardware requirements: VRAM and GPU counts

This is where "run locally" gets uncomfortable. The SGLang cookbook lists the weights at about 155 GB in FP4, about 280 GB in FP8 and about 560 GB in BF16. On disk the repos are 166 GB (default), 302 GB (FP8) and 600 GB (BF16).

Minimum GPU counts to hold the weights. The two serving stacks don't agree, and vLLM groups by memory size rather than GPU model:

GPU FP4 (SGLang / vLLM) FP8 (SGLang / vLLM) BF16
B300 / GB300, 288 GB 2 / 1 2 / 2 4
B200, 192 GB 4 / 2 4 / 4 8
H100, 80 GB not supported (SM100 only) / 4 8 / 8 2 nodes × 8

SGLang runs FP4 through MegaMoE with expert parallelism, which is why its FP4 counts match FP8. It says every recipe is verified on B300, but on GB300, B200, GB200 and H100 only the FP8 high-throughput recipe is; the rest are not yet verified. The default checkpoint keeps its routed experts in MXFP4, and the card says "on hardware without FP4 kernels, use the FP8 or BF16 repository," so on Hopper you want the FP8 or BF16 repo. Context costs memory too: per the vLLM-ERNIE README, FP8 on 8 × 80 GB GPUs (--data-parallel-size 8, --gpu-memory-utilization 0.93) reaches --max-model-len 262144, and "1M does not" fit.

"Flash" refers to the 14B active parameters, which make each token cheap to compute, but all 280B weights still have to sit in memory.

Is there a GGUF? Quants, llama.cpp and Ollama

Not yet. As of today the model tree lists one Preview quant, peasantsmith/ERNIE-5.5-Flash-Preview-Maya-GGUF, and its whole card is "GGUFs are work in progress." I found nothing from unsloth, bartowski or mlx-community, and no AWQ.

The bigger blocker is llama.cpp itself. PR #31925, "model : add ERNIE 5.5", is still a draft with no human review, and it only claims support for Base. Stock llama.cpp, Ollama and LM Studio can't load this architecture.

The Base GGUFs do show where the sizes would land. OrcaRouter's abliterated Base quants (which need a llama.cpp build from that PR) come in at 244.6 GB at 6.83 bpw, 122.0 GB at 3.41 bpw (+1.3% perplexity vs BF16) and 60.0 GB at 1.67 bpw (+24%). OrcaRouter pitches the 122 GB build at "a 128 GB machine" or one 141 GB H200, though they only tested on CUDA and say Apple Metal hasn't been run. With 14B active parameters per token, a Preview quant at that size would put a 128 GB box in reach. Nobody has published one you can load with a released runtime.

How to serve ERNIE 5.5 Flash Preview with vLLM

vLLM needs the exact 0.32.0 wheel plus Baidu's plugin, NVIDIA GPUs only:

uv venv --python 3.12 source .venv/bin/activate uv pip install vllm==0.32.0 uv pip install git+https://github.com/baidu/vLLM-ERNIE.git export VLLM_ENGINE_READY_TIMEOUT_S=3600 vllm serve baidu/ERNIE-5.5-Flash-Preview \ --trust-remote-code \ --host 0.0.0.0 \ --port 8000 \ --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"}' 

VLLM_ENGINE_READY_TIMEOUT_S=3600 gives the engine an hour to come up, which tells you how long Baidu expects loading to take. The --attention-config flag needs Blackwell data-center GPUs. On anything else, drop it and point at the FP8 repo. The README also suggests --moe-backend humming for FP8 on Blackwell.

How to serve it with SGLang

From the model card, run inside lmsysorg/sglang:latest:

sglang serve \ --model-path baidu/ERNIE-5.5-Flash-Preview \ --host 0.0.0.0 \ --port 30000 \ --tp 4 \ --attn-dp-size 4 \ --context-length 131072 \ --max-running-requests 128 \ --speculative-algorithm DSPARK \ --reasoning-parser ernie55 \ --tool-call-parser ernie55 \ --enable-dp-lm-head \ --trust-remote-code 

Watch the parser names: ernie5 in vLLM, ernie55 in SGLang. I'd bet mixing them up will be the most common first error. The cookbook uses a pinned image, lmsysorg/sglang:dev-ernie-55-flash-pr51236-fe204897, so try that if latest doesn't know the model yet. Also note the default ports differ (8000 for vLLM, 30000 for SGLang) if you're switching clients between them.

The card's speculative decoding tip is worth applying: draft blocks up to 7 tokens at low concurrency, 2–3 tokens at high concurrency.

For transformers, the only snippet is the Hub's auto-generated AutoModelForCausalLM.from_pretrained(..., device_map="auto"). Baidu's card only documents SGLang, vLLM and Megatron-Bridge. I wouldn't bother.

If you just want to try it

Skip the hardware. The release post links it on OpenRouter as baidu/ernie-5.5-flash-preview:free, and the API is on Baidu's Qianfan platform. Throw your own prompts at it there before you rent a node.

My take

The Apache 2.0 license on the chat model is a better deal than most people will assume from "Baidu." The benchmarks look competitive with DeepSeek-V4.1-Flash, with the usual self-reported asterisks. But "run locally" means one or two B300s (vLLM and SGLang disagree) or 8× H100, and the default checkpoint is built around Blackwell FP4 kernels. For a homelab, this is an API model for now.

Does ERNIE make your local-model shortlist now that the chat weights are Apache 2.0, or does a 155 GB floor rule it out before the license even comes up? And if you've got it running on anything smaller than 8× H100, tell me how in the comments.

Sources