selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

baidu logo

ERNIE-5.5-Flash-Preview

baidu·Base model·released 23 Nov 2026

Apache 2.0300BMoE1M ctx ≈179 GB
Your GPU
sglang serve baidu/ERNIE-5.5-Flash-Preview --host 0.0.0.0 --port 30000
All 2 runners ↓

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.

Notify me when

How much VRAM does ERNIE-5.5-Flash-Preview need?

At Q4_K_M ERNIE-5.5-Flash-Preview needs about 179 GB with an 8K context (179 GB at Q4, 587 GB at full precision). Pick your GPU to see what fits and how fast it runs.

--vram
any
--gpus
--quant

Needs: ≈179 GB · Q4_K_M · 8K context — Pick a GPU to check the fit.

Change quant, context or KV cache to compare
Advanced: context 8K · KV cache 16-bit
Context
KV cache

Smallest GPU for each quant and context (KV cache 16-bit)

Quantisation8K16K32K64K128K1M
Q3_K_M
Q4_K_M
Q5_K_M
Q6_K
Q8_0
FP16

≤16 GB card24–32 GB48–96 GBmore

QuantisationQualityWeightsKV cacheTotal
Q2_KHeavy lossSmallest, noticeably worse qualityHeavy loss92 GB 0.7 GB≈97 GB
Q3_K_MNoticeable lossSmall, some quality lossNoticeable loss136 GB 0.7 GB≈144 GB
Q4_K_MrecommendedSmall lossRecommended default for local useSmall loss169 GB 0.7 GB≈179 GB
Q5_K_MNear-losslessNear-lossless for most tasksNear-lossless198 GB 0.7 GB≈210 GB
Q6_KNear-losslessPractically losslessNear-lossless230 GB 0.7 GB≈242 GB
Q8_0LosslessLossless in practice, twice the size of Q4Lossless296 GB 0.7 GB≈312 GB
FP16 / BF16LosslessFull precision, as releasedLossless558 GB 0.7 GB≈587 GB

Estimates for 8K tokens of context: weights + KV cache + runtime overhead. All experts stay in memory, but only the active ones are read per token. Speed assumes memory-bound decoding at your GPU’s bandwidth. Pick a GPU above and the fit column checks every row against it.

How to pick a quant

Take the biggest quant that fits with room left for context. Q4_K_M is the usual sweet spot. Below Q4 quality drops fast, above Q6 you mostly pay memory for nothing. Big models (70B+, large MoE) tolerate low quants better than small ones.

  • LosslessF16, Q8_0
  • Near-losslessQ6_K, Q5_K_M
  • Small lossQ5_K_S, Q4_K_M, IQ4_NL, IQ4_XS, Q4_K_S
  • Noticeable lossQ4_0, Q3_K_L, Q3_K_M, IQ3_M
  • Heavy lossIQ3_XXS, Q3_K_S, IQ2_M, Q2_K

Typical quality loss, not measured per model. Tiers come from KL divergence against FP16 on Llama 3 8B: llama.cpp perplexity README: LLaMA 3 8B scoreboard (KLD and ΔPPL vs FP16, Wikitext-2); llama.cpp quantize tool: ΔPPL per quant type @ Llama-3-8B

How much context fits?

Model quant
KV cache

At 8K context, Q4_K_M needs ≈179 GB(169 GB weights + 0.7 GB KV cache + 9.0 GB overhead). Pick a GPU above to see how much context fits.

01002003001K2K4K8K16K32K64K128K256K512K1MGB

Weights + overheadKV cache

Can the Apple M3 Ultra (512 GB) run ERNIE-5.5-Flash-Preview? →

Speed vs quality per quant

Smaller quants run faster and fit in less memory, but lose quality.

Q2_KQ3_K_MQ4_K_MQ5_K_MQ6_KQ8_0F16

Fits in VRAMTight fitCPU offload✕ won't runQuality is typical KL divergence vs FP16, not measured for this model.

Real-world speed of ERNIE-5.5-Flash-Preview

Tokens per second measured by people running it at home. A GPU shows a median once 3 reports agree on the same setup. Reports far from our estimate wait for a review. Measure yours with llama-bench →

No medians yet. Be one of the first 3 to report a setup.

All reports

Run ERNIE-5.5-Flash-Preview locally

These commands load the original weights from Hugging Face.

Serve an OpenAI-compatible APIdocs
sglang serve baidu/ERNIE-5.5-Flash-Preview --host 0.0.0.0 --port 30000
Docker Compose (NVIDIA)docs
yaml
services:
  sglang:
    image: lmsysorg/sglang:latest
    command: sglang serve baidu/ERNIE-5.5-Flash-Preview --host 0.0.0.0 --port 30000
    ports:
      - "30000:30000"
    ipc: host
    volumes:
      - ~/.cache/huggingface:/root/.cache/huggingface
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu]

API on port 30000.

Install SGLang

Chat with the pipeline APIdocs
python
from transformers import pipeline

pipe = pipeline("text-generation", model="baidu/ERNIE-5.5-Flash-Preview", dtype="auto", device_map="auto")
messages = [{"role": "user", "content": "Explain self-hosting in one paragraph."}]
out = pipe(messages, max_new_tokens=512)
print(out[0]["generated_text"][-1]["content"])

Install Transformers

About ERNIE-5.5-Flash-Preview

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. The Preview shares its architecture and tokenizer with ERNIE 5.5 Flash Base. Its new capabilities come from mid-training and post-training, and mid-training also extends the training context length from 128K to 1M tokens. Our blog post shows work the model completed end to end in an agent harness. ERNIE 5.5 Flash Preview is an intermediate checkpoint from post-training. It already performs competitively among models of its size, but some capabilities may still fall short because training is not finished. Post-training is ongoing and ERNIE 5.5 Flash is improving quickly. We will watch how the Preview performs in real use, listen to user feedback, and address what we learn in the official release. The Preview is trained for the following kinds of work.

Full model card on Hugging Face →

Other ERNIE 5.5 models

Whole family →
baidu logo286BCheck licence≈171 GB↓ 2.1K
baidu logo286BCheck licence≈171 GB↓ 5.5K
baidu logo300BCommercial OK≈179 GB↓ 0

Alternatives to ERNIE-5.5-Flash-Preview

All alternatives →
deepseek-ai logo

DeepSeek-V4-Flash-0731

deepseek-ai·Chat

≈182 GB

DeepSeek-V4-Flash-0731 is the official release of DeepSeek-V4-Flash, superseding the preview version, with substantially enhanced agentic capabilities. It has the same model structure as DeepSeek-V4-Flash-DSpark, i.e. it comes with a speculative decoding module attached.

304BA27.4B1M ctx MIT
1.2MJul 2026gguf
tencent logo

Hy3

tencent·Chat

≈180 GB

Hy3 is a 295B-parameter Mixture-of-Experts (MoE) model with 21B active parameters and 3.8B MTP layer parameters, developed by the Tencent Hy Team. Following the Hy3 Preview launch in late April, we gathered feedback from 50+ products and scaled up post-training with higher quality data.

299BA21B256K ctx Apache 2.0
643.9KJul 2026gguf
deepseek-ai logo

DeepSeek-V4-Flash

deepseek-ai·Chat

≈174 GB

We present a preview version of DeepSeek-V4 series, including two strong Mixture-of-Experts (MoE) language models — DeepSeek-V4-Pro with 1.6T parameters (49B activated) and DeepSeek-V4-Flash with 284B parameters (13B activated) — both supporting a context length of one million tokens.

291BA14.1B1M ctx MIT
1MApr 2026gguf
tencent logo

Hy3-preview

tencent·Chat

≈180 GB

Hy3 preview is a 295B-parameter Mixture-of-Experts (MoE) model with 21B active parameters and 3.8B MTP layer parameters, developed by the Tencent Hy Team. Hy3 preview is the first model trained on our rebuilt infrastructure, and the strongest we've shipped so far.

299BA21B256K ctx Custom licence
114.5KApr 2026
XiaomiMiMo logo

MiMo-V2.6-Flash-RL

XiaomiMiMo·Chat

≈186 GB

MiMo-V2.6-Flash-RL is the efficiency-balanced checkpoint of the MiMo-V2.6 series. The series is built to scale reinforcement learning toward self-improvement — scaling RL compute, environment diversity, and grader compute together, so the model keeps expanding its capability frontier through…

311B1M ctx MIT
43.7KSept 2026gguf
XiaomiMiMo logo

MiMo-V2.6-Flash-MOPD

XiaomiMiMo·Chat

≈186 GB

MOPD2 distills several domain-specialized teachers into the student on-policy. The teachers fall into two families: mixRL teachers, trained on verifiable tasks, and SFT teachers, trained on synthetic demonstrations for open-domain tasks where a reliable reward is hard to design.

311B1M ctx MIT
25.9KSept 2026gguf

ERNIE-5.5-Flash-Preview FAQ

How much VRAM does ERNIE-5.5-Flash-Preview need?
About 179 GB at Q4_K_M with an 8K context. Q8_0 needs about 312 GB and full precision about 587 GB. Longer contexts need more memory for the KV cache.
Can ERNIE-5.5-Flash-Preview run on the Apple M3 Ultra (512 GB)?
Yes. It fits at Q8_0 (about 312 GB), at an estimated 1.4 tokens/s.
Can I use ERNIE-5.5-Flash-Preview commercially?
Yes. It is released under Apache 2.0. Permissive: use, modify and sell freely; keep the notice and licence text.
What is the context length of ERNIE-5.5-Flash-Preview?
1,048,576 tokens (1M). The full window needs far more memory than an 8K context.
How do I run ERNIE-5.5-Flash-Preview locally?
With SGLang: sglang serve baidu/ERNIE-5.5-Flash-Preview --host 0.0.0.0 --port 30000.

Data from Hugging Face, the model card and public leaderboards. Memory and speed figures are estimates; real numbers depend on the runtime, context length and drivers. Always check the licence yourself before commercial use.