---
title: ERNIE-5.5-Flash-Preview-INT4
canonical_url: "https://www.modelscope.cn/models/baidu-aicapx/ERNIE-5.5-Flash-Preview-INT4"
md_url: "https://www.modelscope.cn/models/baidu-aicapx/ERNIE-5.5-Flash-Preview-INT4.md"
repository: baidu-aicapx/ERNIE-5.5-Flash-Preview-INT4
chinese_name: ERNIE-5.5-Flash-Preview-INT4
last_updated: 2026-11-24
model_type:
  - ernie5_5_moe
architectures:
  - Ernie5_5_MoeForCausalLM
library_name:
  - safetensors
downloads: 9
stars: 3
---

# ERNIE-5.5-Flash-Preview-INT4

> ERNIE-5.5-Flash-Preview-INT4 - baidu-aicapx 在 ModelScope 开源的模型。ERNIE-5.5-Flash-Preview-INT4

- **Repository**: baidu-aicapx/ERNIE-5.5-Flash-Preview-INT4
- **Downloads**: 9
- **Stars**: 3
- **Last updated**: 2026-11-24

Source: https://www.modelscope.cn/models/baidu-aicapx/ERNIE-5.5-Flash-Preview-INT4

---

# ERNIE-5.5-Flash-Preview-INT4

Routed experts in the decoder and MTP blocks use W4A8 with per-channel INT4 weights and dynamic per-token INT8 activations.

## Accuracy

We evaluated W4A8 against the H20 (BF16) baseline using the same settings for each benchmark. 

| Benchmark | Subsets selected | H20 (BF16) | W4A8 (this model) | Ratio | Sample limit | Max tokens | Temperature | Batch size |
|---|---|---:|---:|---:|---:|---:|---:|---:|
| IFEval | full | 0.9404 | 0.9476 | 100.77% | All | 16384 | 1 | 64 |
| MATH-500 | full | 0.946 | 0.956 | 101.06% | All | 16384 | 1 | 16 |
| LongBench-v2 | short | 0.6889 | 0.7 | 101.61% | All | 65536 | 1 | 8 |
| LiveCodeBench v6 | 300 | 0.8967 | 0.8833 | 98.51% | 50 | 65536 | 1 | 32 |
| SWE-bench Lite | 100 | 0.89 | 0.91 | 102.25% | 100 | 32768 | 1 | 10 |
| General Function Calling | 100 | 0.6966 | 0.6437 | 92.41% | 100 | 8192 | 0 | 16 |

<sub>Both score columns are self-reported. Ratio is the W4A8 score divided by the BF16 score. “All” includes all samples in the selected subsets.</sub>

## Inference

For inference, use [SGLang 0.5.23](https://github.com/sgl-project/sglang) with the [SGLang-Kunlun backend](https://github.com/baidu-baige/sglang-kunlun/tree/v0.5.23-dev-ernie55).

```bash
sglang serve \
  --model-path /path/to/quantized-checkpoint \
  --trust-remote-code \
  --tp 8 --ep 8 --attn-dp-size 8 --enable-dp-lm-head \
  --moe-a2a-backend megamoe --speculative-algorithm DSPARK \
  --dtype float16 --kv-cache-dtype fp16 \
  --context-length 1048576 --chunked-prefill-size 32768 \
  --max-running-requests 32 --mem-fraction-static 0.6 \
  --page-size 256 --swa-full-tokens-ratio 0.1 \
  --cuda-graph-backend-prefill disabled --cuda-graph-backend-decode full \
  --disable-radix-cache --disable-overlap-schedule --disable-custom-all-reduce \
  --enable-metrics --enable-cache-report \
  --tool-call-parser ernie_lite --reasoning-parser ernie_lite \
  --watchdog-timeout 30000
```

## License

This repository and its model weights are licensed under `ernie-5.5-flash-base-model-license-v1.0`, inherited from the base model.
