ERNIE-5.5-Flash-Preview · exlr8 (K2/K3/K4, mul1)
A multi-width quantization of baidu/ERNIE-5.5-Flash-Preview-BF16 (revision 33a9925b17506c5ff57accac2b31a6520c951c4e) in the exlr8 trellis format using the mul1 codebook. Every routed expert (512 per layer) and shared expert (1 per layer) across all 42 MoE layers (L1–L42, 21,546 expert slots total) is stored at three trellis widths — K2, K3, and K4 — so the serving width can be selected at load time via manifest.
These weights require FP8 E4M3 rounding and the
mul1codebook (0x83DCD12D). A loader must decode trellis states with themul1codebook (0x83DCD12D) and round every decoded value to FP8 E4M3 (round-to-nearest-even, saturating finite) before applying the Hadamard transform and side vectors. Every trellis tensor carries the.mul1suffix (trellis.{gate,up,down}.mul1,shared.trellis.{gate,up,down}.mul1). See exlr8 FORMAT.md.
Model Architecture & Latent MoE Layout
ERNIE-5.5-Flash-Preview (Ernie5_5_MoeForCausalLM) uses a 43-layer hybrid attention + latent MoE architecture:
- Layers:
43total (L0dense MLP with intermediate size14,336;L1–L42MoE with512routed experts, top-10 routing, plus1shared expert per layer). - Latent MoE dimensions:
- Routed experts (
0–511): operate in themoe_latent_size = 2048latent space (gate/up:2048 -> 2048,down:2048 -> 2048,16128-channel units,16hidden-side blocks). Layer signs are stored insigns.in/signs.out(I8 [2048]). - Shared expert (
512): operates in the fullhidden_size = 4096space (gate/up:4096 -> 2048,down:2048 -> 4096,16128-channel units,32hidden-side blocks). Layer signs are stored inshared.signs.in/shared.signs.out(I8 [4096]).
- Routed experts (
- Non-expert weights: All attention, hyper-connection, router, latent projection (
fc1_latent_proj,fc2_latent_proj,latent_norm), Layer 0 dense MLP, normalization, embedding, and LM head weights are preserved verbatim in their original BF16/F32 precision underdense/. - MTP layers: Upstream
config.jsonsetsnum_nextn_predict_layers: 0; unusedmodel.mtp.*tensors are omitted from this release and remain available in the upstream BF16 checkpoint.
Quantization & Full-Model Mathematical Fidelity Audit
All 21,546 expert slots (42 layers × 513 experts) were quantized with exlr8enc (pinned commit 87f05617cc97746633c568b6cc6c1895638d709c, mul1 codebook, 128-block Hadamard rotation, Hessian shrinkage tau = 8000 on L5–L42, ernie55-calib-v1 calibration Hessians).
Every single one of the 21,546 / 21,546 pieces was independently decoded back to FP32 and mathematically audited against the official upstream BF16 reference weights and calibration Hessians prior to publication:
- Pieces audited:
21,546 / 21,546unique(layer, expert)pairs across42 / 42layers (21,504routed +42shared) - Hard failures:
0(zero scale defects, zero NaN/Inf values, zero token-count mismatches, zero Hessian-error mismatches) - Monotonicity inversions (
K4 < K3 < K2):0across all21,546pieces, all 3 projections (gate,up,down), and all metrics - Stored vs. recomputed regularized Hessian error
|herr_reg_recomputed - herr_stored|:p50 = 1.24e-09,p99 = 2.12e-09,p99.9 = 2.85e-09, global max1.34e-06
Global Weight-Fidelity Summary (Mean Across gate, up, down)
| Expert Group | Width | Relative Frobenius Error (min / p50 / p95 / max) | Regularized Hessian Error herr_reg (p50 / p95 / max) |
|---|---|---|---|
Routed (21,504) | K2 | 0.2361 / 0.2862 / 0.3283 / 0.3652 | 0.03793 / 0.04918 / 0.05987 |
Routed (21,504) | K3 | 0.1171 / 0.1448 / 0.1660 / 0.1848 | 0.00950 / 0.01239 / 0.01517 |
Routed (21,504) | K4 | 0.0592 / 0.0735 / 0.0843 / 0.0939 | 0.00244 / 0.00318 / 0.00390 |
Shared (42) | K2 | 0.2854 / 0.2933 / 0.3192 / 0.3219 | 0.01616 / 0.02504 / 0.02582 |
Shared (42) | K3 | 0.1442 / 0.1484 / 0.1616 / 0.1628 | 0.00405 / 0.00627 / 0.00649 |
Shared (42) | K4 | 0.0732 / 0.0754 / 0.0820 / 0.0826 | 0.00104 / 0.00161 / 0.00167 |
Repository Layout
experts/exlr8-layer-001..042.k{2,3,4}.safetensors— 64 KiB-alignedmul1trellis bytes (trellis.{gate,up,down}.mul1andshared.trellis.{gate,up,down}.mul1)experts/exlr8-layer-001..042.index.safetensors— 64 KiB-aligned byte offsets,xxhash64per-unit checksums, side scales,signs.{in,out}([2048]), andshared.signs.{in,out}([4096])dense/exlr8-dense-000..042.safetensors— exact upstream BF16/F32 non-expert weights per layerdense/exlr8-vocab.safetensors— exact upstream BF16/F32 embeddings, LM head, final norm, and hyper-connection head tensorsindex-slices/tp{1,2,3,4}/k{2,3,4}/rank{r}.safetensors— pre-sliced per-rank index files for TP 1–4manifests/exlr8-manifest-{k2,k3,k4}.json—exlr8-v4-manifestdeployment manifests (set_id:2345779190c802b215a11866e623797c99e4419e50a3813d38640df9db2ac549)hashes/— per-file.sha256sidecars and consolidatedhashes/SHA256SUMS- Root tokenizer, config, and license files copied verbatim from upstream
baidu/ERNIE-5.5-Flash-Preview-BF16
Integrity Verification
sha256sum -c hashes/SHA256SUMS
License
Apache 2.0 (inherited from baidu/ERNIE-5.5-Flash-Preview-BF16; see LICENSE).