r/LocalLLaMA • • 4d ago

New Model baidu/ERNIE-5.5-Flash-Preview

https://huggingface.co/baidu/ERNIE-5.5-Flash-Preview is open weights now.

ERNIE 5.5 Flash Preview is the first post-trained model built on ERNIE 5.5 Flash Base, which we released earlier. It is a Mixture-of-Experts (MoE) language model with 280B total parameters, 14B of them active per token, and a 1M-token context window. It does well at coding, 3D modeling, knowledge work and content creation, scores competitively on major benchmarks, and still decodes quickly.

181 Upvotes

74 comments sorted by

17

u/ValidAQ 4d ago

It does well at coding, 3D modeling, knowledge work and content creation, scores competitively on major benchmarks, and still decodes quickly.

Is it just me, or does saying a non-multimodal model does well on 3D modeling when it can't visually examine and correct its own work sound odd to anyone else?

2

u/Ok_Technology_5962 3d ago

By the way they can still see technicly what they do so render the image in a grid of like letter color squares like red, greed, but letters r, g, b etc and look at it that way. Kinda cool my deepseek did this when I removed the vision tower

1

u/ValidAQ 3d ago

Yeah, they fall back on various image processing techniques to figure out what the images you give them are. It's pretty cool how they try to work around limitations.

I imagine it's a lot less detailed and efficient than direct vision input, though.

2

u/Ok_Technology_5962 3d ago

The other workaround it worked out is actually calling my qwen model I had in lmstudio which is didn't specify and just asked it if things looked right

1

u/draconic_tongue 4d ago

3d is just math. but then again so is everything else to llms

7

u/ValidAQ 4d ago

Sure, different input modalities all end up as tokens too.

But in my own tests I sure noticed the difference between models that can only say "math checks out, all's good" and those that can look at the render and say "wait, this model is wrong, I need to fix it before I can call the task complete".

Not to mention being unable to provide image references.

5

u/Korici llama.cpp 4d ago

If it had vision capability, I would strongly consider testing this over GLM 5.3 Flash.
Alas, it does not

1

u/maternion 4d ago

Yeah a deal breaker for a lot it looks like 

1

u/IrisColt 4d ago

This. It's like it's 2023 all over again. Hard pass, heh

16

u/pmttyji 4d ago

ERNIE 5.5 Flash Preview is the first post-trained model built on ERNIE 5.5 Flash Base, which we released earlier. It is a Mixture-of-Experts (MoE) language model with 280B total parameters, 14B of them active per token, and a 1M-token context window. It does well at coding, 3D modeling, knowledge work and content creation, scores competitively on major benchmarks, and still decodes quickly.

KeyValue
ModalityText in, text out
Total Params280B
Activated Params per Token14B
Layers43 (1 dense + 42 MoE)
Hidden Size4096
Attention37 × HCA (head dim 512) + 6 × MLA-DSA (head dim 256), 64 heads
Experts512 routed (top-10) + 1 shared
Vocabulary201,216
Context Length1,048,576
ThinkingAlways on; reasoning is returned in reasoning_content
PrecisionBlockwise FP8; routed experts in MXFP4 (W4A8, quantization-aware trained); FP8 KV cache; FP4 DSA indexer

Inference Performance Optimization

ERNIE 5.5 Flash Preview is designed to be inexpensive to serve. The savings come from three places: the architecture, the way the model is trained, and the serving kernels.

The architecture is inherited from ERNIE 5.5 Flash Base and keeps each decoding step light. Of the 43 layers, 37 use Heavily Compressed Attention (HCA), which caches one entry per 128 tokens of history and so keeps the KV cache small. The other six keep token-level history but use sparse attention (DSA), so each step attends only to selected positions. On top of this, quantization and speculative decoding are trained together with the model under settings that match inference, and the serving kernels are tuned for the ERNIE 5.5 Flash architecture.

4

u/pmttyji 4d ago

DSpark speculative decoding

In speculative decoding, a draft model proposes the next few tokens and the main model verifies them in a single forward pass. The Preview's draft model is DSpark, a draft head that proposes a whole block of tokens in parallel.

ERNIE 5.5 Flash is pre-trained with single-step ECHO MTP (multi-token prediction), which drafts tokens one after another. In post-training, ECHO can be trained further into multi-step MTP with dynamic depth sampling. It extrapolates well across steps: with 7 draft steps, it reaches an average acceptance length above 5.5 on real-world multi-turn conversations.

Autoregressive drafting (ECHO) and parallel drafting (DSpark) each do better on different tasks, depending on whether the output is high- or low-entropy, so post-training also trains DSpark. A single training setup supports both. DSpark is updated continuously as the main model changes, so the two stay aligned and the acceptance rate does not degrade. After training converges, online distillation adapts DSpark to a broader range of data, raising its acceptance length in production by more than 10%.

The Preview ships with DSpark only, and the head is included in the model weights; later releases will offer both DSpark and ECHO MTP. We recommend larger draft blocks (up to 7 tokens) at low concurrency and smaller blocks (2–3 tokens) at high concurrency.

0

u/maternion 4d ago

2 types of spec decoding is new 🤔

13

u/pmttyji 4d ago

W4A8 quantization-aware training

The routed experts hold most of the model's parameters. They are stored in MXFP4 and run as W4A8 (4-bit weights, 8-bit activations). We apply W4A8 quantization-aware training during post-training, and the fake quantization in training uses the same granularity, scaling factors, and rounding rules as inference. Training and inference therefore agree numerically, which removes the accuracy gap that a mismatch between them would otherwise cause. Training throughput is largely unaffected, and the released weights deploy directly in W4A8, with no extra conversion or calibration.

All other weights stay in blockwise FP8, the KV cache is FP8, and the DSA indexer runs in FP4.

9

u/pmttyji 4d ago

Decoding kernel optimization

Every part of the decoding step is tuned for the ERNIE 5.5 Flash architecture.

  • Attention and residual paths: Mathematically equivalent rewrites of the Virtual Head Attention (VHA) and mHC (Manifold-constrained Hyper-Connections) residual computations let fused Mega Kernels merge each operation with the lightweight operators around it, and the computation is reordered to hide more latency.
  • HCA compression: HCA layers do not need to compress tokens at every decoding step, so compression runs separately on a side stream.
  • MoE: For Multi-Router Latent MoE, a single Mega Kernel fuses routing, expert computation, and the projections into and out of the latent space, which avoids repeated kernel launches and shortens the serial MoE path.
  • Scheduling: PDL (Programmatic Dependent Launch) and multi-stream scheduling cut serving overhead further.

2

u/pmttyji 4d ago

Lightweight indexer with head routing

In the six DSA layers, a lightweight indexer scores past tokens and selects the 2,048 highest-scoring positions for attention. Two changes make this step cheaper. First, a plug-in head-routing module picks a subset of indexer heads for each query, which cuts the cost of computing the indexer logits. Second, a threshold-based pre-filter drops low-scoring candidates early. The filtering is exact, and even with TopK as large as 2,048 it removes much of the TopK computation. At a 1M-token context, it gives a 40% speedup.

19

u/HeelsAndAll 4d ago

The repo says it's 166 GB approx. I will wait for more users to test. Seems a little too good 🤔 

It's about the size of DS4 (160 GB approx.) but better than DS4.1? 

3

u/crusaderky 4d ago

fits on 128gb at q3

2

u/HeelsAndAll 4d ago

Are the numbers holding up? Pretty bold claims.

24

u/CTRL___ALT___DEL 4d ago

Not multimodal is a real shame 

30

u/vini542reddit 4d ago

This looks real interesting for those that are running QFN or DS4.1

3

u/smallDeltaBigEffect 4d ago

how do you think someone who is running qfn, lets say with 64 GB VRAM and 64 GB RAM can run Ernie? Although the architecture looks VERY promising, its expert are already mxfp4

1

u/crusaderky 4d ago

64+64 is probably very tight but doable at 3.0bpw. 32+128 or just 128 unified is definitely easier.

1

u/_swill 4d ago

how about 16 + 64 :D

29

u/This_Maintenance_834 4d ago

it was not great for ANT and OpenAI to have 4 AI labs in China that releasing SOTA models in a roll. Now it only get worse for the closed labs, if there are eight of them (Qwen, Deepseek, Kimi, GLM, MiMo, Tencent, MiniMax, Baidu ....)

5

u/tiftik 4d ago

Unfortunately we'll see some mergers and closures of some of those labs due to chip and overseas training sanctions limiting the available training compute...

4

u/This_Maintenance_834 4d ago

it is unlikely to happen any time soon. Chinese do not have the same wall street mentality. It is not the same market.

19

u/JLeonsarmiento 4d ago

I’ve been rocking this one for a week on open router. SOLID.

3

u/yudhanjaya 4d ago

If you had to compare, how is it versus Sonnet?

16

u/JLeonsarmiento 4d ago

I cannot compare it with any antrophic/opeanAI models since I don’t use private/closed source companies models at all 🤷🏻‍♂️. A matter of principles 😐.

But I can compare it with the model I used the most this year: GLM5.3.

  1. it has the “I must verify any task completion at least once before reporting success” burn in its soul. This Is something GLM did but only in the final steps of long/complicated/multistep tasks. This one does that at every step. So i feel like “twice” confident on it. Much much more nuanced and attention to detail.
  2. it’s 2 or 3 times more frequent for it to ask me clarifying questions during long tasks. Since I’m always there when I work with AI I can always redirect/explain if needed and be aware of critical decisions during workflows. In my case this is better than a model that is more autonomous but at the expense of assuming more decisions in its own.
  3. it has on hold my Z.ai subscription renew 🤣. So, it’s up to GLM 5.5 or whatever they launch next.
  4. this is absurd, but there’s was a moment 2 days ago when it feels like thing was reading my mind 🤣

Sorry, no quantifiable benchmarks here. All these frontier models just pass any possible tasks I have for them at this point.

Is the way I can work with them what matters for me lately.

4

u/pendelhaven 4d ago edited 4d ago

I just feel that as an implementation agent, it is almost always confidently wrong. I was running it for 2 days on OpenRouter and every step on my implementation plan that it ran on had errors caught after review by another agent; and the back and forth between it and the reviewer went on for so long it's frustrating. It would check the reviewer's claims and agree, then somehow fail to fix the error and then the reviewer would flag the erroneous fix and Ernie would agree and try again. Ad hominem.

1

u/yudhanjaya 4d ago

Fair nuff, thanks!

1

u/HowlingWolf_1101 3d ago

glm 5.4 will blow it out of the water

2

u/Cold_Tree190 4d ago

In my experience it is faster and deeper thinking (like it will try to read a LOT of sources before giving an answer for instance) than sonnet, but way worse at explanations/planning/implementation than sonnet. Overall sonnet is better, but I do like Ernie and have been using it lately… though I think hy4-flash is outright better in every way (idk what the benchmarks show between the two, but I much prefer hy4-flash)

1

u/yudhanjaya 4d ago

Thanks. I have hy4 flash locally, and I find that its code is quite readable? Or at least more sensible

1

u/Cold_Tree190 4d ago

Yeah I agree. Hy4 flash has been my go-to since it released

1

u/Egeper 4d ago

Can standard .proj files be used with it to give it image capabilities or is this model strictly text only? Also has anyone done comparison with DS1017 if this can allow an upgrade from QFN to DS1017 capabilties but with better speeds?

2

u/maternion 4d ago

Every model has its own vision tower that it needs to be trained with. That's the mmproj we download as a GGUF. The weights belong to the said model. But if someone has the resources they can slap a ViT onto it and train it themselves with data. 

3

u/Kaynenyak 4d ago

Will this be viable for local inference engines / systems ala Strata / QFN? Ie. RTX 4090 / 128GB ballpark range.

2

u/crusaderky 4d ago

it fits on 128gb at q3

1

u/Legitimate_End4690 4d ago

Pardon a noob question - how do people like me get the hardware to run these models?

1

u/maternion 4d ago

You could rent hardware from runpod or others. That's the cheaper way to hold your local llm I guess. But i am not sure, just 16gb vram here. 

7

u/Painted-Arcana 4d ago

rent hardware from the cloud

It kind of stops being local at that point, if you're using cloud infrastructure you may as well just use frontier models too no?

2

u/crusaderky 4d ago

you can't rent abliterated models from API.

And an AWS host is definitely more secure than a random API provider from openrouter. (can't say the same for vast.ai and other places where you rent from randos, though)

1

u/Agitated_Space_672 4d ago

You can on allmodels.io

1

u/crusaderky 3d ago

nothing makes me want to put my credit card details in a website less than seeing it's fully vibecoded

1

u/Agitated_Space_672 3d ago

The website is a poster, the product is an API to obliterated models, and the product works quite well.

0

u/maternion 4d ago

Maybe some have ZDR policy? 

4

u/Painted-Arcana 4d ago

May as well be a pinky promise request

1

u/Legitimate_End4690 4d ago

I have 8 GB VRAM - no way to make this work?

2

u/OnlyKindaThrowAway 4d ago

not no way, but no good way.

a lot of people are using 16-32gb of vram as an expert cache and then streaming from ram/disk.

1

u/crusaderky 4d ago

No. I'd recommend 24 gb VRAM + 96gb host RAM once strata support lands.

16gb + 64gb is good enough for Hy4-flash.

12gb + 48gb is good enough for Qwen3.8-Flash-Next.

4gb + 32gb is good enough for Inkling-2-Mini.

1

u/Illustrious_Grade608 4d ago

Oh, 16gb + 64 gb is enough for hy4 flash? I wanted to upgrade in a few days but thought hy4 flash is going to be a bit beyond it. What quant is it?

1

u/crusaderky 4d ago

https://huggingface.co/strata-engine/Hy4-Flash-Strata SQ-64. Probably quite poorly quantized (strata has a bad reputation for harming quality for the sake of speed). Plan to try it myself as soon as I figure out where to find the disk space for it.

1

u/SpaceTurtles 4d ago

Haven't been able to get Inkling-2-Mini working on 10 VGB/32 GB and I feel dumb for it, given I was able to get Gemma-4 working just fine. 🙃

1

u/phaylon 4d ago edited 4d ago

With llama.cpp? There have been a couple of bugfixes added since yesterday, so I'd keep trying. I got it running on my 8GB 5060 but had to lower the ubatch-size to 24 so it fits. Haven't yet had a chance to check if last nights fixes took care of that (there is an issue on their tracker for it).

Long story short: Might not be your fault :)

Edit: Tried it, still no luck unfortunately.

1

u/SpaceTurtles 3d ago

Unsloth, which uses it under the hood, I believe. So, still maybe the case.

2

u/ttkciar llama.cpp 4d ago

I use pure-CPU inference on ancient E5-2660v3 Xeon servers with 256GB of DDR4 memory, no GPU acceleration. The barebones servers are only about $600 on eBay, but 256GB of DDR4 costs $2000 these days, so it's not as cheap as it once was.

It's slow (GLM-5.3-Flash at Q4_K_M gets about 1.4 tokens/second) but still useful, since I can tell it what to do before going to bed, and it will usually be done before I wake up the next morning.

7

u/beautifulgirl789 4d ago

Can I ask the rationale for that build? Unless your electricity is completely free, that sounds like an awfully expensive power cost per token (and also 1.4 tokens/sec is not what most would call usable :D)

1

u/ttkciar llama.cpp 4d ago

The rationale is that I already had a few of these servers for other tasks (GEANT4 and Rocstar simulations) when I got into LLM inference, and so I started using them for inference too.

I also have some GPUs (32GB MI50, 32GB MI60, 16GB V340, each in different servers) and they host models small enough to fit entirely in VRAM, but larger models get hosted pure-CPU.

My plan is to upgrade to multiple MI210 eventually, but not until they come down in price rather a lot. I'm hoping they drop to near $1000 each when AMD drops ROCm support in a few years.

-2

u/Eastern_Doughnut_222 4d ago

Not him but I run a similar server but have a GPU (5060TI).
It uses less electricity than you think it would, especially idling or casually hosting services, unless you're running something on it 24/7.
I can run GLM5.3/DS4.1Flash-1017 at ~20tps on the biggest quant that would fit, and QFN at 80-100tps.
That is besides what use I get out of my homelab outside of that

5

u/beautifulgirl789 4d ago edited 4d ago

Umm, that GPU makes it absolutely 100% in no way similar to the build I was asking about.

1

u/sk1kn1ght 4d ago

What do you mean the biggest quant that would fit? 5060ti is 16gb. Ds4 flash 1017 does not fit at all on the 5060ti (one expert of output is 16gb, while input is 8gb, so how do you fit the egress? 16gb usually doesn't fit in 16gb) (obviously the rest offloaded etc)

1

u/Eastern_Doughnut_222 3d ago

256GB of DDR4 from my server. DS takes up ~236GB, I also give it ~11GB of VRAM.

1

u/sk1kn1ght 3d ago

I thought an expert at minimum had to be loaded fully in vram to have any nice speed improvement otherwise since the full expert(16gb) cannot stay you lose time constantly loading and unloading. Can you share some more details? Which quant, engine etc? Are your experts smaller? How do you handle the 2 different experts required? 8gb in, 16gb out. I am in almost the same situation (384gb ddr4 ram+ 5060 ti 16gb) but never tried due to the above (perhaps misunderstanding I had)

2

u/Eastern_Doughnut_222 3d ago

Running through Project Maya, check the ORCA.md document since the model I'm running isn't on the defaults.
specific model is orcarouter/DeepSeek-V4.1-Flash-1017-abliterated-GGUF "Mix-256" which is 3.36bpw.

1

u/Flashy-Indication-61 3d ago

add 2 3060s and ur gonna be blazing

1

u/Evgeny_19 4d ago

The cheapest options for models like these are machines like Strix/Gorgon Halo and DGX Spark (and its clones).

2

u/happycube 4d ago

Pure Apache 2.0 license, BTW.

-4

u/Heretek-ai 4d ago

Kyojin! Make this run on a strix Halo and my soul is, well still mine, but I'll be happier

-4

u/EitherMarch1255 4d ago

I'll sell my soul. Who's buying?

0

u/[deleted] 4d ago

[deleted] — view deleted comment

1

u/crusaderky 4d ago

You can shrink down QAT models without any issues.