Baidu opens ERNIE 5.5 Flash Preview: 280B-parameter model under Apache 2.0
Baidu has published the weights of its ERNIE 5.5 Flash Preview language model on Hugging Face and ModelScope under the permissive Apache 2.0 license. The Mixture-of-Experts model has 280 billion parameters, handles up to a million tokens, and is pitched mainly at coding and agentic tasks. Unlike the base model, you can also use it freely in the EU.

What's going on
Chinese tech giant Baidu officially released its ERNIE 5.5 Flash Preview language model (Chinese: 文心 5.5 Flash Preview) as an open-weight model on November 24, 2026. The weights ship under Apache 2.0, a license that also allows commercial use with no strings attached. You can download them from Hugging Face and from ModelScope, Alibaba's Chinese model platform. For serving, Baidu points to the popular inference frameworks vLLM and SGLang, server programs that run a model and expose it through an API.
The model itself isn't new. Baidu unveiled it on November 11 and has offered it as an API through its Qianfan developer platform since then. According to IT之家 (ITHome), it's the first post-trained version built on ERNIE 5.5 Flash Base, which Baidu released on November 5. Post-training is the phase where a raw model learns to follow instructions and give useful answers instead of just continuing text. With this release, both the base model and the post-trained version are now openly available.
The timing is curious. According to router provider OrcaRouter, the three repositories appeared on November 23 at around 09:00 UTC, all within 39 seconds and without any announcement. That was two days ahead of the date Chinese reports had given (November 25). OrcaRouter says Baidu's English announcement post from November 11 still said on November 24 that the weights would be released "soon".
How the model is built
ERNIE 5.5 Flash Preview is a Mixture-of-Experts (MoE) model. It consists of many specialized subnetworks, the "experts". A routing layer (the router) sends each token to only a few of them while the rest sit idle. Of the 280 billion total parameters, only 14 billion are active per token, or one twentieth. So the model has the knowledge of a very large system but does roughly as much compute per token as a much smaller one. Baidu claims an output speed of more than 200 tokens per second, which ITHome attributes mainly to this sparse design.
According to the Model Card, as analyzed by OrcaRouter, the architecture looks like this:
- 43 layers: one dense layer that processes every token in full, plus 42 MoE layers
- 512 experts, of which the ten best matches are picked per token (top-10 routing), plus one shared expert that always runs
- Hidden dimension of 4,096, vocabulary of 201,216 tokens
- Context window of 1,048,576 tokens, roughly a million. That lets the model take in very long documents or entire codebases in one go.
According to Cryptobriefing, the base model was trained from scratch on 33.5 trillion tokens. Post-training added a longer training context, a "DSpark" head for speculative decoding (a small add-on guesses several upcoming tokens ahead and the big model only has to confirm them, which speeds up output), and the agentic capabilities. The model is text-only. Thinking mode is always on, and the reasoning comes back in a separate response field.
Benchmarks: strong on agents, middling in the terminal
Baidu pitches the model for coding, 3D modeling, knowledge work and content creation. According to ITHome, the results are "not an even curve":
| Benchmark | ERNIE 5.5 Flash Preview | Comparison |
|---|---|---|
| AutomationBench (agents, workflow automation) | 61.9 | Claude Opus 5.5: 58.0 · DeepSeek V4.1 Flash: 57.2 |
| Terminal-Bench 4.0 | 46.5 | Claude Opus 5.5: 63.6 or 66.4 · GPT-6.1 Sol: 56.1 · DeepSeek V4.1 Flash: 40.9 |
| DeepSWE v1.1 | 71.2 | top group at 74–77, ahead of both GLM-5.3 variants |
| BrowseComp (web research) | 87.4 | on par with frontier models |
| MCP-Atlas (tool use) | 84.6 | on par with frontier models |
| HLE without tools (text only) | 46.4 | Hy4: 46.7 · GPT-6.1 Sol: 52.9 |
| CodeArena WebDev | 1668 points | Qwen3.8-Max: 1670 · DeepSeek-V4.1-Flash: 1664 · Kimi K3: 1658 |
The sources disagree on Claude Opus 5.5's Terminal-Bench 4.0 score: ITHome says 63.6, while OrcaRouter, citing the Model Card, says 66.4. On DRACO and APEX-Agents 1.1, ITHome reports that ERNIE trails Hy4 and Claude Opus 5.5. On the CodeArena WebDev leaderboard, which compares models at building web apps, it ranks second among open models and fourth among Chinese models, behind Kimi K3.1 Pro and Qwen3.8-Max.
OrcaRouter urges caution. Baidu measured all the ERNIE numbers itself. The competitors' numbers come from their own reports or from the Artificial Analysis leaderboard. In other words, the two columns of the table weren't produced the same way. Artificial Analysis doesn't have its own page for the model yet, and comparison sites are so far just repeating Baidu's figures. OrcaRouter sums up the profile as a "fast mid-tier agentic coder, not a frontier model". Cryptobriefing also notes that a "Preview" label usually means a final version hasn't shipped yet.
The license is the real news
For users in Europe, one detail matters most: according to OrcaRouter, the Preview weights ship under the unmodified standard Apache 2.0 text. No extra clauses, no usage policy, no country restrictions. The base model, ERNIE 5.5 Flash Base, has a much stricter license:
- Territory: The Base license applies worldwide but explicitly excludes the EU, the UK and South Korea.
- Revenue cap: Commercial use is free only as long as annual revenue from related products stays at or below 50 million US dollars, counted across affiliated companies. Above that, you need written permission.
- Obligations: You have to display "Powered by ERNIE" visibly and notify Baidu once before your first commercial use.
None of that applies to the Preview version. So the post-trained release is more permissive than the model it's built on. Under its license, teams in the EU aren't allowed to use the base model at all, but they can use the Preview weights. According to the Model Card, though, Apache 2.0 covers only the Preview weights; Base keeps its own license. OrcaRouter recommends having the LICENSE file in the repository reviewed yourself before any commercial deployment.
What you need to try it
The model won't run on a regular PC. Even a graphics card won't cut it, and a Mac or Google Colab isn't a realistic option either. Baidu offers three versions with different quantization (the numbers are stored at lower precision so the model takes up less space):
| Version | Size | Format | Intended for |
|---|---|---|---|
| Standard | 166 GB | mostly FP8, experts in MXFP4 | hardware with FP4 support, Baidu's default commands |
| FP8 | 302 GB | FP8 throughout | hardware without FP4 support |
| BF16 | 600 GB | full precision | fine-tuning, fallback option |
OrcaRouter worked out the minimum requirements from the file sizes. On top of that comes memory for the KV cache, the model's buffer for the text so far, which grows with context length:
- Standard: two 141 GB accelerators or four 80 GB cards
- FP8: four 141 GB or eight 80 GB cards
- BF16: at least eight 80 GB or four 192 GB cards, realistically more than one server with a large cache
You'll also need plenty of disk space and a fast internet connection. If you just want to test the model, you're better off with Baidu's Qianfan API.
The big picture
With this release, Baidu joins the ranks of Chinese vendors putting large models out in the open, alongside DeepSeek, Alibaba with Qwen and Moonshot with Kimi. By Baidu's own numbers, ERNIE 5.5 Flash Preview sits roughly on par with those rivals and in some agentic tasks even beats Claude Opus 5.5. On demanding terminal work, though, it clearly trails the closed frontier models. For now, the performance figures are vendor claims. But with the weights open, independent testers can now check them.
In practice, the license is probably what matters most. Apache 2.0 with no country exclusions makes the model usable for European companies, which wasn't the case with the base model. The sparse MoE design with 14 billion active parameters can make serving cheaper and faster. You still need data center hardware, though. It's also unclear how the "Preview" model will differ from a possible final release.
Sources
- QbitAI 量子位 (CN) qbitai.com
- ITHome (CN) ithome.com
- cryptobriefing.com cryptobriefing.com
- orcarouter.ai orcarouter.ai
- casrai.org casrai.org
- Google News (US) news.google.com
- Google News (ID) news.google.com
- Google News (VN) news.google.com
- Google News (KR) news.google.com
- Google News (NL) news.google.com
- Google News (SE) news.google.com
- Reddit r/LocalLLaMA huggingface.co
- Reddit r/LocalLLaMA reddit.com
Try it yourself: ERNIE 5.5 Flash Preview
Explained step by step, no prior knowledge needed – on your own computer or free in your browser.
What can I do with it?
ERNIE 5.5 Flash Preview is a large text-only language model aimed mainly at coding, agentic tasks (using tools, automating workflows, researching on the web) and knowledge work. It can handle up to roughly a million tokens of context, enough for entire codebases or very long documents in one go. Thinking mode is always on: the model reasons first and returns that reasoning in a separate field. By Baidu's own measurements, it performs at the top level on agentic benchmarks like AutomationBench, BrowseComp and MCP-Atlas. On the WebDev leaderboard it's the second-best open model. On Terminal-Bench 4.0, its 46.5 puts it well behind Claude Opus 5.5 and GPT-6.1 Sol. Baidu says it generates more than 200 tokens per second because only 14 billion parameters are active per token. It doesn't understand images or audio, and there are no independent tests yet.
Who is it worth it for?
The model makes sense for companies, research groups and dev teams that run their own servers with several large data center GPUs and want to self-host or fine-tune a freely licensed coding and agent model, including in the EU. It's not a fit for individuals with a regular PC, a gaming graphics card or a Mac. They're better off testing it via an API.
Ideas: What you can do with it
A dev team runs the model on its own servers and plugs it into its editor through vLLM's OpenAI-compatible API. That keeps the source code in-house, and thanks to the long context, the model can read large chunks of the project at once.
You describe a web app in a few sentences, and the model generates the HTML, CSS and JavaScript. It ranks among the best open models on the WebDev leaderboard. That makes it great for quick drafts you then polish by hand.
Feed entire contracts, manuals or research reports with hundreds of pages into the model and ask for summaries, contradictions or answers to specific questions. You don't need to split the text into chunks first.
Paired with an agent framework that connects tools via MCP, the model can sort emails, move data into spreadsheets or create tickets. In Baidu's own measurements, it does especially well on AutomationBench.
Research groups or companies take the BF16 version as a starting point and further train it on their own domain data, for example in medicine or law. Thanks to Apache 2.0, they can use the result commercially with no revenue cap.
What your computer needs
Values estimated from the model size – the Model Card may have more precise figures.
Which variant is right for me?
Many models come in several sizes or "quantizations." These are compressed versions: smaller and faster, but slightly less accurate. Rule of thumb: pick the largest variant whose memory requirement fits in your VRAM (video memory). The scripts below choose this for you automatically.
| Variant | Download | Needs approx. | Compatible graphics cards |
|---|---|---|---|
4-bit (Q4) Default |
180 GB | 199 GB | servers only, with multiple data-center GPUs (e.g. 8× H100) |
8-bit (Q8) |
321 GB | 354 GB | servers only, with multiple data-center GPUs (e.g. 8× H100) |
16-bit (Original) |
599 GB | 660 GB | servers only, with multiple data-center GPUs (e.g. 8× H100) |
There are three official versions. The standard version is 166 GB (FP8, experts in MXFP4) and is meant for hardware with FP4 support. According to OrcaRouter, it needs at least two 141 GB or four 80 GB accelerators. The 302 GB FP8 version is for hardware without FP4 support and needs four 141 GB or eight 80 GB cards. The 600 GB BF16 version is the basis for fine-tuning and serves as the fallback option. It needs at least eight 80 GB or four 192 GB cards, and more likely more than one server with long context. The sources don't mention smaller community quantizations (e.g. GGUF).
- Standard version: 166 GB file size, at least 2× 141 GB or 4× 80 GB GPUs, and that's just for the weights at short context.
- FP8 version: 302 GB, needs 4× 141 GB or 8× 80 GB GPUs.
- BF16 version: 600 GB, at least 8× 80 GB or 4× 192 GB, realistically several servers with a large KV cache.
- The standard version requires GPUs with FP4 support; otherwise you'll need the FP8 or BF16 version.
- Long context (up to 1M tokens) needs a lot of extra memory for the KV cache, on top of the file size.
- Not suitable for consumer GPUs, Apple Silicon or Google Colab. Budget enough fast disk space (166–600 GB).
Groß (299,6 B parameters, MoE): running entirely on the GPU takes a lot of VRAM (video memory). With MoE offloading, a regular graphics card plus plenty of RAM is enough (see table). Colab Free isn't enough.
How do I find out what my computer has?
- Windows: Press Ctrl + Shift + Esc → Task Manager → Performance tab → click GPU on the left. At the bottom you'll see Dedicated GPU memory (that's your VRAM). You'll find system memory under Memory.
- Mac: Apple menu at the top left → About This Mac. You'll see your chip (e.g. M2) and memory (e.g. 16 GB). On Apple chips, graphics and processor share this memory.
- Linux: Type
nvidia-smiin the terminal (shows your graphics card and its memory) andfree -hfor system memory.
Guide
Google Colab (in your browser, no installation)
Google Colab is a free service from Google. It gives you a computer with a graphics card in your browser for a few hours. All you need is a Google account. For this model: too big for Colab – even the largest Colab GPUs aren't enough.
- Download the notebook. Click the button and save the file.
- Open Colab. Go to colab.research.google.com and sign in with your Google account.
- Upload the notebook. In the window that appears, click Upload on the left (or choose File → Upload notebook at the top) and select the file
colab.ipynb. - Turn on the GPU. In the top menu, go to Runtime → Change runtime type → under Hardware accelerator, select T4 GPU (with Colab Pro: L4 or A100) → Save.
- Start everything. Runtime → Run all (keyboard shortcut Ctrl + F9). If you see the warning “This notebook was not authored by Google,” click Run anyway.
- Wait. The cells run one after another. A green checkmark appears to the left of each cell when it's done. Installation and download take about 64 minutes here.
- Try it out. The result appears below the last cell. To test something else, change the text in the cell and run it again with Shift + Enter.
- Clean up. When you're done: Runtime → Disconnect and delete runtime. This saves your free quota.
Good to know: The free GPU is limited (usually a few hours per day). After about 90 minutes of inactivity, Colab disconnects, and you'll have to start everything over.
Windows 10 / 11
This model runs on Python. Our script handles the setup automatically: it creates an isolated Python environment, installs the required packages (PyTorch, approx. 3 GB) and downloads the model (180 GB (about 4.0 hr at 100 Mbit/s)).
- Update your graphics driver (NVIDIA): install the latest driver. Without an NVIDIA card, it runs on the CPU – much more slowly.
- Install Python. Download Python 3.12 from python.org and run the installer. Important: At the bottom of the first window, tick Add python.exe to PATH, then click Install Now.
- Create a folder and download the files. Create a folder, e.g.
Documents\AI-Test, and save both files into it: - Open a terminal in the folder. Open the folder in File Explorer, right-click an empty spot → Open in Terminal.
- Run it. Paste this command and press Enter:
Installation and download are running now. The first time, this can take 10–30 minutes.powershell -ExecutionPolicy Bypass -File try_windows.ps1 - Result. The window shows the model's answer to a test question.
- Try your own input: Open
demo.pyin an editor, change the sample text, and save. Then run this in the terminal:.\.venv-ernie-5-5-flash-preview\Scripts\Activate.ps1 python demo.py
macOS
Macs with an Apple chip (M1 to M5) are ideal. Older Intel Macs are very slow.
- Open Terminal. Press Cmd + Space, type Terminal, and press Enter.
- Install the developer tools (first time only; includes Python):
Click Install in the window. If you see "already installed," everything is already in place.xcode-select --install - Download the files – both end up in your Downloads folder:
- Run it:
The first time, installation and download take 10–30 minutes.cd ~/Downloads bash try_mac.sh - Result. The window shows the model's answer to a test question.
Linux
- Check your GPU.
nvidia-smishould show your card. If it doesn't, install the driver on Ubuntu and restart:sudo ubuntu-drivers install - Install the Python basics (Ubuntu/Debian):
sudo apt update && sudo apt install -y python3-venv python3-pip git - Put the files in a folder and open a terminal there:
- Run it:
bash try_linux.sh - Result. The window shows the model's answer to a test question.
Try it
Explain in simple terms what a Mixture-of-Experts model is, and give me an everyday example.Write a responsive landing page in HTML, CSS and JavaScript for a small café with a menu, opening hours and a contact form.Here's a Python script that crashes when reading large CSV files. Find the cause, explain it, and write a memory-efficient version.Plan the steps to automatically create invoices from a list of incoming order emails and log them in a spreadsheet. List which tools you would call to do it.Generate a Three.js script that renders a simple 3D model of a house with a roof, windows and a door that you can rotate with the mouse.
Tips for better results
- Start with Baidu's own serving commands from the Model Card. They point to the standard version and are tuned to the architecture.
- Use speculative decoding (the DSpark head) if your framework supports it. It's the main reason for the high output speed.
- Set the maximum context length only as high as you actually need. A million tokens eats an enormous amount of VRAM (video memory).
- For fine-tuning on your own domain data, the Model Card recommends the BF16 version as the starting point.
- Break agentic tasks into clear sub-steps and specify the available tools. According to the benchmarks, that's where the model's strengths lie.
If something goes wrong
Baidu names vLLM and SGLang as inference frameworks. Use a current version, since older releases may not support the new architecture or the MXFP4 format.
The standard version requires FP4 kernels. If it won't start on older GPUs, switch to the FP8 or BF16 version.
Thinking mode is always on, and the reasoning comes back in a separate field. Your own code needs to handle or hide that field.
Apache 2.0 covers only the Preview weights. ERNIE 5.5 Flash Base has its own license that excludes the EU, the UK and South Korea. Don't mix up the repositories.
The downloads range from 166 to 600 GB. Check your disk space and bandwidth beforehand, and use a resumable download in case it drops.
This is a preview release, and the benchmarks come from Baidu itself. Test the model on your own tasks before you rely on it.
“out of memory,” a crash, or your computer freezes
The model is too big for your VRAM (video memory). Pick a smaller variant from the table above and close other programs, especially games and browsers with lots of tabs.
It runs, but extremely slowly
Your CPU is probably doing the work instead of your graphics card. In Ollama, the PROCESSOR column of ollama ps shows how much runs on the GPU. If it says "100% CPU", update your graphics driver or pick a smaller variant that fits entirely into VRAM (video memory).
“ollama” or “python” is not found
Close the terminal window and open it again so it recognizes the newly installed program. For Python on Windows: reinstall it and check Add python.exe to PATH.
Windows: "Running scripts is disabled on this system"
Run the script with exactly the command above: powershell -ExecutionPolicy Bypass -File try_windows.ps1. This allows execution for this one time only.
Error message when loading the model (version, "trust_remote_code", unknown architecture)
Brand-new models often need the latest software version. With Ollama: update Ollama. With Python: pip install -U transformers in the activated environment. The Model Card usually lists the exact version.
Tokenstrom generates the scripts and notebook automatically. Please take a quick look before running them – they're plain, readable text. Mind the model's license: apache-2.0.
Ask the AI assistant
Questions about this article, installation or background? Our assistant knows this page and runs on our own machine, not in someone else's cloud.
The Assistant is an AI (Gemma 4) and can make mistakes – please check important details against the source. Questions are used only to generate an answer and are deleted after one hour. Please don't enter any personal data.
Comments
What do you think? Already tried it? Write it here, no sign-up needed.
Comments are public. Links aren't allowed, and we delete abusive posts. You can delete your own comment at any time in this browser. Learn more in the Privacy Policy.