ERNIE 5.5 Flash Preview — HTR v3

Special thanks to @boxwrench for artistic direction and testing!

280B MoE · 1M Context · DSpark-5 Speculative Decoding · ~112–113 GiB VRAM/GTT on a Single 128 GB Strix Halo

Exact BF16 Teacher Fidelity (v3) Memory & Context (1M NVFP4) Speculative Decoding (Bundled)
0.0143 Assistant KL (0.029 overall, 2K held-out)
0.0218 Assistant KL at 8K (0.053 4K Code · 0.055 STEM)
1M context retained in v0.3.1 (1,069,855 KV tokens)
Prior v0.3.0 footprint: 111.87 GiB GTT (113.9 GiB total)
~5.0 GiB host RAM free on a 128 GB box (0.50% idle CPU)
DSpark-5 (draft/, 5.14 GiB K2) bundled 3-layer drafter
39.58 tok/s baidu_math · 27.85 tok/s baidu_prose
52.33 tok/s aggregate B=4 baidu on runtime v0.3.1
94.97% Top-1 held-out 2K (96.24% factual · 95.73% STEM · 94.25% 4K Code · 90.64% across 131K-tok 8-domain gauntlet) 101.87 GiB target (3.13 bpw, 5.48× compression vs 558.4 GiB BF16) + 3.75 GiB NVFP4 KV Baidu native defaults (temperature=1.0, top_p=0.95, do_sample=true) — no v1 penalty overrides needed

The Big Three — v3 weights, now served by vLLM HTR v0.3.1

ERNIE-5.5-Flash-Preview-HTR v3 remains the default on main, produced by HTR quantizer v0.3.0. The new vLLM HTR v0.3.1 serving runtime improves decode, prefill, concurrent requests and multi-turn latency, and fixes probabilistic top_k sampling. No new quantization or weight download is needed if you already have v3.

Pillar Release Role in the Stack
1. Quantizer HTR v0.3.0 Open-source Halo Trellis quantizer & Multi-Scale (2K/4K/8K) BF16 Self-Gen calibration suite (MaCa, softp_sq_blend, CurveTQ), proven across a 13-arm controlled ablation (EVIDENCE.md).
2. Flagship Model ERNIE-5.5-Flash-Preview-HTR v3 (this repo, default on main) Full HTR v0.3.0 showcase: -18.2% routed-expert proxy error vs v2 at the exact same 101.87 GiB size, bundled 5.14 GiB 3-layer DSpark K2 drafter (draft/), and Baidu native sampling defaults.
3. Serving Runtime vLLM HTR v0.3.1 (ghcr.io/hawgauto/vllm-htr:v0.3.1) Zero-overlay RDNA 3.5 serving: faster ERNIE decode/prefill, concurrency-aware DSpark, corrected probabilistic sampling, and retained 1M NVFP4 capacity.

Release status: v3 is now the default on main (and pinned at branch/tag v3). Earlier checkpoints remain archived at tags v2 and v1. Runtime v0.3.1 is a serving-only update; the quality results below retain their original runtime and checkpoint scope.


Why v3 Is a Big Leap Over v2

At the exact same 101.87 GiB (3.13 bpw) target footprint, switching from HTR v0.2.0 (v2) to HTR v0.3.0 (v3 — Multi-Scale 2K + 4K + 8K BF16 Self-Gen calibration with MaCa, softp_sq_blend MoE Hessians, and CurveTQ curvature-weighted row-scale refit) cuts routed-expert mean relative proxy error 0.00829 (v1) → 0.00799 (v2) → 0.00654 (v3) (-18.2% vs v2, -21.1% vs v1) and delivers broad exact-BF16 KL and Top-1 gains across 2K, 4K, and 8K evaluations (VERIFIED.json):

  • Held-out Assistant KL: 0.01430 at 2K (94.97% overall Top-1, 96.24% factual) and 0.02179 at 8K (91.33% overall Top-1) — the first multi-scale 2K + 4K + 8K calibrated ERNIE-5.5 release.
  • 4K Code (code_4k) recovered & improved: Exact KL drops 0.0555 (v2) → 0.05257 (v3) (delta_nll +0.0334 → +0.02757) at 94.25% Top-1 agreement.
  • 4K Agentic (agentic_4k) PPL slashed: Perplexity drops 2096.5 (v2) → 1658.7 (v3) (-5.8% KL vs v1), pushing full eval_4096 to delta_nll = -0.00743 (26.688 → 26.491 PPL, 86.33% Top-1).
  • 2K Agentic (agentic_hermes) keeps climbing: Top-1 rises 83.43% (v1) → 83.76% (v2) → 83.98% (v3) while PPL improves 94.01 → 90.42 → 89.69.
  • 131K-token 8-domain gauntlet (eval_2048): 0.16935 KL / 90.64% Top-1, led by 95.73% Top-1 / 0.05527 KL on reasoning_stem, 93.61% Top-1 / 0.06973 KL on code_tools, and 0.10746 KL on zh.
  • Zero WikiText overfitting: Matches v2's wikitext2 PPL (2.401 vs 2.400) while cutting WikiText calibration share 25% → 7.8% spread across 297 articles (vs 78 in v2).
  • Lean 3-Layer DSpark Drafter (draft/, 5.14 GiB K2): Keeps 1M NVFP4 at 111.87 GiB GTT with ~5.0 GiB host RAM free, delivering 34.44 tok/s aggregate decode (3.08 tok/step) in the historical v0.3.0 six-prompt qualification. See the separately measured v0.3.1 workloads below.
  • Native Baidu Sampling Defaults: Ships cleanly on Baidu's published generation_config.json (temperature=1.0, top_p=0.95, do_sample=true), retiring the v1 --override-generation-config penalty workaround.

At a glance

Release v3 (HTR v0.3.0, default on main & tag v3; prior versions at v2 and v1)
Base model baidu/ERNIE-5.5-Flash-Preview-BF16 — 280B MoE, 14B active, 1M context, 558.4 GiB BF16
Quantizer & recipe HTR v0.3.0 (HTR-W1, qtip seam, softp_sq_blend, MaCa 0.50/0.28/0.22, CurveTQ intra_block_curv=true, 2,883,584 BF16 self-gen calib tokens / 768 prompts across 2K+4K+8K)
Weights K3 routed experts (3.01 bpw), K5 trunk / shared experts / lm_head (5.01 bpw), BF16 embeddings — 3.13 bpw overall target (3.07 bpw quantized-only)
Footprint 101.87 GiB target (44 shards) + 5.14 GiB draft/ (K2) → 111.87 GiB GTT (~113.9 GiB total) at 1M NVFP4 (measured on v0.3.0; v0.3.1 retains the 1M profile)
Speculative decoding Bundled 3-layer DSpark draft (draft/, 5.14 GiB K2); 5 speculative tokens at B=1, automatically 3 at B=2 and 2 at B≥3 with multi-sequence serving
Sampling defaults Baidu published generation_config.json: temperature=1.0, top_p=0.95, do_sample=true (no --override-generation-config needed)
KV cache FP8, or NVFP4 + MXFP4 indexer — 1M context in 3.75 GiB (up to 2.1M KV pool)
Hardware AMD Ryzen AI Max+ 395 / Radeon 8060S, 128 GB (gfx1151)
Runtime vLLM HTR v0.3.1 (ghcr.io/hawgauto/vllm-htr:v0.3.1) — table-free RoPE, FlashIndexer H=8, dynamic DSpark, debounced idle memory trim

Exact BF16 Logit Verification (VERIFIED.json)

Every token below was scored against the exact BF16 teacher (baidu/ERNIE-5.5-Flash-Preview-BF16). Full receipts are in VERIFIED.json.

v1 → v2 → v3 Progression (identical 101.87 GiB target budget)

Shared Eval Domain v1 v2 v3 (HTR v0.3.0) Takeaway
Routed-expert rel_proxy (64,512 modules) 0.00829 0.00799 0.00654 -18.2% vs v2, -21.1% vs v1 at identical size
eval_2048 — agentic_hermes (Top-1 / PPL) 83.43% / 94.01 83.76% / 90.42 83.98% / 89.69 Best top-1 agreement and lowest PPL (kl_mean = 0.48001)
eval_4096 — agentic_4k (KL / PPL) 1.0192 / 2054.7 0.9468 / 2096.5 0.9604 / 1658.7 Slashes 4K agentic PPL 2096.5 → 1658.7 (-5.8% KL vs v1)
eval_4096 — code_4k (KL / delta_nll) 0.0454 / +0.0192 0.0555 / +0.0334 0.05257 / +0.02757 Recovers v2's code_4k regression (94.25% Top-1)
wikitext2_2048 (PPL / Wiki calib share) 2.471 2.400 (25% Wiki, 78 arts) 2.401 (7.8% Wiki, 297 arts) Matches v2 PPL while slashing Wiki calib share 25% → 7.8%
Held-out v3_2048 Assistant KL (17,341 tok) unmeasured unmeasured 0.01430 Multi-scale BF16 self-gen fidelity (94.97% overall Top-1)
Held-out v3_8192 Assistant KL (23,884 tok) unmeasured uncalibrated at 8K 0.02179 First 2K + 4K + 8K multi-scale calibration (91.33% Top-1)

Full v3 Exact BF16 Teacher Breakdown (VERIFIED.json)

Suite / Domain Tokens PPL (BF16) PPL (HTR v3) delta_nll Exact KL Top-1
v3_2048 — Assistant role 17,341 — — — 0.01430 —
v3_2048 — v3_visual_game_video 14,329 4.077 4.166 +0.02175 0.02476 94.61%
v3_2048 — v3_factual_calib 4,094 4.265 4.349 +0.01944 0.04488 96.24%
v3_2048 — Overall 18,423 4.118 4.206 +0.02124 0.02923 94.97%
v3_8192 — 8K Assistant role 23,884 — — — 0.02179 —
v3_8192 — v3_long_8k (overall) 57,337 3.202 3.365 +0.04969 0.16560 91.33%
eval_2048 — reasoning_stem 28,658 4.270 4.296 +0.00622 0.05527 95.73%
eval_2048 — code_tools 28,658 4.148 4.244 +0.02287 0.06973 93.61%
eval_2048 — zh 20,470 18.580 19.867 +0.06698 0.10746 88.35%
eval_2048 — prose_chat 24,564 5.749 6.076 +0.05525 0.10779 90.91%
eval_2048 — agentic_hermes 28,658 94.885 89.694 -0.05626 0.48001 83.98%
eval_2048 — Overall 131,008 11.124 11.291 +0.01488 0.16935 90.64%
eval_4096 — code_4k 8,190 3.231 3.321 +0.02757 0.05257 94.25%
eval_4096 — reasoning_4k 8,190 5.842 5.862 +0.00338 0.08909 94.75%
eval_4096 — prose_zh_4k 8,190 14.654 15.251 +0.03998 0.16030 87.31%
eval_4096 — agentic_4k 8,190 1834.289 1658.653 -0.10065 0.96043 69.00%
eval_4096 — Overall 32,760 26.688 26.491 -0.00743 0.31560 86.33%
wikitext2_2048 65,504 2.145 2.401 +0.11266 0.17119 89.24%

Verification provenance note: VERIFIED.json's exact BF16 logit pass was collected on the sm_86 (8× A40) encode of the identical HTR v0.3.0 recipe, calibration dataset, and random seeds. The published sm_90 (8× H100) shards match per-layer routed-expert rel_proxy across all 42 MoE layers to < 1 × 10⁻⁶ mean absolute delta (0.006538 on sm_86 vs 0.006537 on sm_90; mean |Δ| = 8.99 × 10⁻⁷, max |Δ| = 3.80 × 10⁻⁶).


Recorded quality evaluations (v1 / v2 / v3)

The previously published serving evaluations below were recorded zero-overlay on a single 128 GB GMKtec EVO-X2 (gfx1151) with ghcr.io/hawgauto/vllm-htr:v0.3.0, FlashIndexer (H=8), DSpark-5 (draft/, 5.14 GiB K2), --reasoning-parser ernie55, and --tool-call-parser ernie55. Live v3 suites run under Baidu's published sampling defaults (temperature=1.0, top_p=0.95, do_sample=true):

Benchmark v1 Baseline v2 Baseline v3 (main, HTR v0.3.0) Notes / Reference
AA-LCR v1.1 (100 Qs, ~95K multi-doc ctx) — 81.0% (81 / 100) Result not recorded in this table Baidu: 79.0% · NVFP4 1M c1
AA-Omniscience-Public (600 / 300 Qs) +3.00 (32.67% acc) +5.00 (34.67% acc) Result not recorded in this table Baidu card: 25.2 · blinded frontier judge
Terminal-Bench 2.1 Shard 1 (8 frozen tasks) 5 / 8 (62.5%) 6 / 8 (75.0%) Result not recorded in this table NVFP4 c1 · pass@1
HermesAgent20 v3 (20 agentic tasks) 1,910 / 2,000 (95.5%) 1,990 / 2,000 (99.5%) 1,910 / 2,000 (95.5%) NVFP4 1M · 18 pass / 1 partial / 1 fail
HumanEval+ Repaired-164 (164 tasks) 158 / 164 (96.34%) 158 / 164 (96.34%) Result not recorded in this table NVFP4 1M (157 / 164 FP8 262K)
ToolEval Standard-69 (69 scenarios) — 129 / 138 (93.48%) FP8 · 128 / 138 NVFP4 130 / 138 (94.2%) NVFP4 1M · native score 94 (63 pass / 4 partial / 2 fail)
DSpark-5 Live Qualification (draft/, 6 prompts) — 31.4–61.4 tok/s 34.44 tok/s (3.08 tok/step) Baidu defaults · 76.9 / 53.0 / 36.2 / 25.6 / 16.0% pos accept

Performance — vLLM HTR v0.3.1

Published zero-overlay measurements on a single 128 GB Strix Halo with ERNIE v3, nvfp4_ds_mla, FlashIndexer H=8, probabilistic DSpark-5, --max-num-seqs 4, and --max-num-batched-tokens 2048. The separate mbt=4096 prefill column uses 128K configured context, not the 1M quick-start profile. Original workload labels are retained below; the release labels its 8K/16K/32K prefill workloads as approximately 12K/24K/48K actual tokens. B=2/B=4 rates are aggregate decode, not per-user or full-request-wall throughput; multi-turn time is wall time.

Workload v0.3.0 (mbt=2048) v0.3.1 (mbt=2048) v0.3.1 (mbt=4096, 128K) Gain vs v0.3.0
Cold Prefill 8K (12K tok) 583.9 tok/s (PASS) 599.0 tok/s (PASS) 619.8 tok/s (PASS) +2.6% (+6.1% @ 4K)
Cold Prefill 16K (24K tok) 538.3 tok/s (PASS) 588.0 tok/s (PASS) 617.5 tok/s (PASS) +9.2% (+14.7% @ 4K)
Cold Prefill 32K (48K tok) 560.0 tok/s (FAIL) 568.9 tok/s (PASS) 605.8 tok/s (PASS) +1.6% (+8.2% @ 4K) + needle PASS
B=1 baidu_math (temp=1.0, top_p=0.95) 33.42 tok/s 39.58 tok/s (86.4 ms/step) — +18.4%
B=1 baidu_prose (temp=1.0, top_p=0.95) 17.36 tok/s 27.85 tok/s — +60.4%
B=1 top_k=40 (no penalties) 10.39 tok/s (acc=1.00) 30.71 tok/s (acc=2.75) — +195.6% (2.96x, fixes #16)
B=1 lc16k_greedy (25.6K ctx) 32.30 tok/s 34.56 tok/s — +7.0%
B=2 greedy (auto Dynamic SD k=3) 38.99 tok/s 44.22 tok/s (22.11/usr) — +13.4%
B=2 baidu (auto Dynamic SD k=3) 25.77 tok/s 42.23 tok/s (21.12/usr) — +63.9%
B=4 greedy (auto Dynamic SD k=2) 29.44 tok/s 50.63 tok/s (12.66/usr) — +72.0%
B=4 baidu (auto Dynamic SD k=2) 40.45 tok/s 52.33 tok/s (13.08/usr) — +29.4%
Sequential seq_6x_short 28.65 tok/s 29.42 tok/s — +2.7%
Multi-turn 6K (4 turns, prefix-cached) 34.75 s 30.66 s — -11.8% wall

What changed:

  • Probabilistic sampling fix: top_k <= 64 without penalties no longer collapses DSpark acceptance to 1.00. The measured top_k=40 workload rises from 10.39 to 30.71 tok/s (acc=2.75).
  • Faster native kernels: adaptive dual-bucket MoE prefill, NVFP4 sparse MLA, small-batch decode, INT4 DSpark Markov storage, and exact sparse rejection sampling.
  • Automatic dynamic DSpark: when --max-num-seqs >= 2, draft length adapts to the live batch: 5 tokens for B=1, 3 for B=2, 2 for B≥3; matching graph sizes are selected automatically. Set -e ERNIE_DYNAMIC_DSPARK=0 to opt out.
  • Smoother sequential requests: idle memory trimming is debounced by 5 seconds (HTR_IDLE_TRIM_DELAY_S=5.0), and OMP_NUM_THREADS=1 avoids host-thread contention.
  • 1M profile preserved: the separate production gate used --max-num-seqs 1, mbt=2048, 3.75 GiB NVFP4 KV and reported 1,069,855 KV tokens (1.02× at 1M).

Source: v0.3.1 release notes and verification. These are the published release measurements, not new benchmarks run for this card refresh. Historical results below are not relabeled as v0.3.1 results.

Historical runtime performance and KV profiles (v0.3.0 and earlier)

Performance (vLLM HTR v0.3.0 Runtime Baseline)

Measured zero-overlay on a GMKtec EVO-X2 (Ryzen AI Max+ 395, 128 GB) running ghcr.io/hawgauto/vllm-htr:v0.3.0 (HTR-W1 kernels and wire format are identical between v2 and v3):

Benchmark (v0.3.0 Zero-Overlay, draft/) v0.2.7 / v0.2.8 v0.3.0 Result
1M NVFP4 GTT / Total Container Footprint 114.68 / 118.70 GiB (v0.2.8) 111.87 / 113.9 GiB -4.8 GiB erased (~5.0–5.8 GiB host RAM free)
Boot to /health (1M NVFP4) 270 s (v0.2.8) 88–128 s 2.1–3.1× faster (AsyncInprocClient, 0.50% idle CPU)
Cold prefill, 8K / 16K / 32K 328 / 319 / 309 tok/s (v0.2.7) 669 / 666 / 658 tok/s 2.04–2.13× · Needle pass
B=1 decode, code / primes (tk40/tp95) — 61.41 / 60.78 tok/s mean_acc = 5.35 / 5.27
B=1 decode, prose / code (top_p-only) — 31.44 / 31.31 tok/s mean_acc = 2.75 / 2.84
B=1 decode, v3 6-prompt mix (Baidu defaults) — 34.44 tok/s mean_acc = 3.08 (111.87 GiB GTT)
B=2 concurrent decode (T=12) — 42.83 tok/s agg (21.42/user) mean_acc = 3.13
95K multi-doc prefill / decode (AA-LCR, mbt=2048) — ~548 tok/s prefill · 37.5 tok/s warm dec 2.76 h full 100Q run (31–37 tok/s @ 93–109K)

Long-context KV profiles verified on the same 128 GB Strix Halo box:

Profile KV cache KV tokens 8K needle
1M, NVFP4 (recommended) 3.75 GiB (mbt=2048) / 3.40 GiB (mbt=1024) nvfp4_ds_mla + MXFP4 indexer 1,069,855–1,099,854 (1.02–1.05×) pass
1M, FP8 5.40 GiB fp8 1,058,592 (1.01×) pass
2M pool, NVFP4 (2 sequences) 6.55 GiB nvfp4_ds_mla + MXFP4 indexer 2,118,842 (2.02×) pass

Without speculative decoding, the target alone decodes at 18.8 tok/s single-stream and 41.7 tok/s aggregate at batch 4. Quantized-KV fidelity against BF16 (cosine similarity on GPU): fp8_ds_mla 0.99966, nvfp4_ds_mla 0.99550, MXFP4 indexer 0.99946. Sources: v0.3.0 release notes, v0.2.13 release notes, v0.2.9 release notes, and v0.2.8 release notes.


Quick start (v3 weights + vLLM HTR v0.3.1)

1. Download v3 weights and pull vLLM HTR v0.3.1

hf download hstolte/ERNIE-5.5-Flash-Preview-HTR \
  --local-dir ./ERNIE-5.5-Flash-Preview-HTR

# Verify target & draft shards
(cd ./ERNIE-5.5-Flash-Preview-HTR && sha256sum --check SHA256SUMS.txt)
(cd ./ERNIE-5.5-Flash-Preview-HTR/draft && sha256sum --check SHA256SUMS)

docker pull ghcr.io/hawgauto/vllm-htr@sha256:ecb15ba086dcfcf394bc4dccc9174d89b8a7f6af6f212c2d67e0cf6e74b47a08

This digest pins vllm-htr v0.3.1 (aliases ghcr.io/hawgauto/vllm-htr:v0.3.1, :latest). Keep draft/ and flashindexer/ beside the 44 root shards.

2. Serve — 1M context, NVFP4 KV, DSpark-5 (Baidu native sampling defaults)

v3 reads Baidu's published sampling defaults directly from generation_config.json (temperature=1.0, top_p=0.95, do_sample=true) — the v1 --override-generation-config workaround is no longer needed:

RENDER_GID="$(getent group render 2>/dev/null | cut -d: -f3 || true)"
docker run -d --name ernie55-v3 \
  --memory=117g --memory-swap=117g \
  --security-opt seccomp=unconfined \
  --device=/dev/kfd --device=/dev/dri --group-add video ${RENDER_GID:+--group-add "$RENDER_GID"} --ipc=host \
  -p 8000:8000 \
  -v /path/to/ERNIE-5.5-Flash-Preview-HTR:/model:ro \
  -v /path/to/workspace:/workspace \
  ghcr.io/hawgauto/vllm-htr@sha256:ecb15ba086dcfcf394bc4dccc9174d89b8a7f6af6f212c2d67e0cf6e74b47a08 \
  /model \
  --host 0.0.0.0 --port 8000 \
  --served-model-name ernie-5.5-flash \
  --trust-remote-code \
  --max-model-len 1048576 \
  --kv-cache-dtype nvfp4_ds_mla \
  --kv-cache-memory-bytes 4026531840 \
  --max-num-batched-tokens 2048 \
  --max-num-seqs 1 \
  --reasoning-parser ernie55 \
  --enable-auto-tool-choice \
  --tool-call-parser ernie55 \
  --speculative-config '{"method":"dspark","model":"/model/draft","num_speculative_tokens":5,"draft_sample_method":"probabilistic"}'

Reasoning & tool-calling field note: Both ernie55 and ernie5 aliases are registered out of the box, and v0.3.1 automatically enables FlashIndexer H=8, -cc.mode=none, right-sized HIP graph capture sizes, single-process AsyncInprocClient, VLLM_ROCM_USE_AITER=0, and Strix Halo allocator defaults (pass -e VLLM_ENABLE_V1_MULTIPROCESSING=1 or -e ERNIE55_AUTO_DEFAULTS=0 to opt out). This vLLM build exposes parsed <ernie:think>…</ernie:think> output on message.reasoning / delta.reasoning (not the deprecated reasoning_content field), so OpenAI-compatible clients reading thinking output should inspect reasoning.

Sampling profiles

Default: Baidu's unchanged generation_config.json (temperature=1.0, top_p=0.95, do_sample=true). No override is needed. On v0.3.1, the published B=1 workloads measured 39.58 tok/s baidu_math and 27.85 tok/s baidu_prose; these are distinct workloads, not a universal speed range.

Optional top-k: add top_k=40 per request. Runtime v0.3.1 fixes the no-penalty top-k drafting bug; its published no-penalty workload measured 30.71 tok/s, versus 10.39 tok/s on v0.3.0.

The earlier speed/agentic profile remains an optional user choice, not a Baidu default or a newly measured v0.3.1 quality result:

# Optional server-wide sampling override
--override-generation-config '{"temperature":1.0,"top_p":0.95,"top_k":40,"presence_penalty":0.35,"repetition_penalty":1.05}'

Concurrency and prefill tuning

The 1M quick start deliberately uses one sequence and mbt=2048. For shorter-context concurrent serving, use --max-model-len 131072 --max-num-seqs 4; dynamic DSpark and graph sizes are automatic. Keep --max-num-batched-tokens 2048 for the main release benchmark configuration, or use 4096 for the separately measured 128K prefill profile. The existing KV pool is shared across requests: four configured slots do not mean four simultaneous full 1M contexts. The reported B=4 baidu result is 52.33 tok/s aggregate / 13.08 tok/s per user.

The alternative KV profiles below retain their earlier qualification and memory measurements; the v0.3.1 release rechecked the 1M NVFP4 profile. Change these flags from the single-sequence quick start:

Profile Flags Historical host RAM left (v0.3.0)
1M, NVFP4 (default above) --kv-cache-dtype nvfp4_ds_mla --kv-cache-memory-bytes 4026531840 --max-num-batched-tokens 2048 ~5.0–5.8 GiB
1M, FP8 --kv-cache-dtype fp8 --kv-cache-memory-bytes 5798205850 --max-num-batched-tokens 1024 ~4.3 GiB
2M pool, NVFP4 --kv-cache-memory-bytes 7033008947 --max-num-seqs 2 --max-num-batched-tokens 1024 (dynamic DSpark and matching graph sizes are automatic in v0.3.1) ~3.0–3.2 GiB

The 1M FP8 and 2M profiles need the host tuning below. If sharing the machine with other workloads, use the 1M, NVFP4 profile.

3. Talk to it

curl -s http://localhost:8000/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{"model":"ernie-5.5-flash","messages":[{"role":"user","content":"Write a haiku about unified memory."}]}'

Host tuning for 128 GB Strix Halo

Ubuntu HWE kernels 7.0+ enable CONFIG_KEXEC_HANDOVER_ENABLE_DEFAULT=y, which quietly reserves about 9 GiB as MIGRATE_CMA. ROCm/TTM can't allocate from it, even though /proc/meminfo shows CmaTotal: 0 kB. To get the full ~118 GiB GPU-visible ceiling:

  1. Add the full Strix Halo GTT + KHO parameters to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub (exposes 123.47 GiB GTT + 2.00 GiB VRAM on 128 GB boxes), run sudo update-grub, and reboot:
    iommu=pt amdgpu.gttsize=126976 amdgpu.no_system_mem_limit=1 ttm.pages_limit=32505856 kho=off
    
  2. Keep the BIOS UMA carve-out small (2 GiB) so the GPU draws on unified GTT memory dynamically.
  3. Optional: lower MemoryMin on user.slice to 512M if desktop cgroup protection is holding 3+ GiB.
  4. Don't set PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True this close to the memory ceiling on gfx1151.

How it was made (HTR v0.3.0)

HTR rotates each weight matrix with a randomized Hadamard transform, then encodes it as a compact K-bit trellis stream (block-LDLQ feedback, tail-biting Viterbi search). At inference time, weights are reconstructed in Wave32 registers from a procedural codebook — no per-weight lookup tables, and no BF16 copy of the weights is ever materialized.

Every precision upgrade in HTR v0.3.0 was validated on a controlled 13-arm OLMoE-1B-7B K3 ablation (98,244 held-out tokens across wiki_test, gsm_eval, mbpp_eval, and long_4k), locking A6_curv_maca_sq (-21.4% mean K3 proxy error, -12.5% tail-expert MSE, -7.2% GSM8K KL, -4.2% MBPP KL, -3.2% assistant KL vs v0.2.0, while rejecting asst_alpha=1.0, QEP, and GPTAQ; see EVIDENCE.md):

  1. Multi-Scale BF16 Self-Gen Calibration (2,883,584 tokens, 768 prompts): BF16 teacher trajectories across 2K, 4K, and 8K contexts with MaCa trace-normalized scale weights (0.50 / 0.28 / 0.22).
  2. softp_sq_blend MoE Hessians (floor_alpha=0.05, n0=256): Router-weighted squared-probability blending with adaptive damping for rare/tail experts.
  3. CurveTQ (intra_block_curv=true): Intra-block curvature-weighted FP16 row-scale refit on routed MoE experts.
Component Recipe (HTR v0.3.0) Scope Mean relative proxy error (v3)
Routed experts K3 (3.01 bpw), QTIP seam, softp_sq_blend + MaCa (0.50/0.28/0.22) + CurveTQ FP16 row-scale refit 42 MoE layers (64,512 modules) 0.00654 (max 0.01409)
Trunk & shared experts K5 (5.01 bpw), QTIP seam 43 layers (798 modules) 0.00034
lm_head K5 (5.01 bpw), QTIP seam 1 matrix 2.62 × 10⁻⁵
Embeddings & protected tensors BF16 (unchanged) — 0
DSpark draft (draft/) K2 (2.01 bpw) routed experts + K5 trunk (5.14 GiB, 2.21 bpw overall) 3 layers (4,662 modules) —

That is 65,311 encoded target modules (3.13 bpw overall target / 3.07 bpw quantized-only) plus 4,662 encoded modules in the bundled 3-layer DSpark drafter. Per-layer diagnostics are in HTR-REPORT.json.

HTR builds on exlr8, ExLlamaV3, QTIP, QuIP# and GPTQ/LDLQ; see Methodology, Evidence, and Lineage.

Good to know

  • Preview base. Baidu describes ERNIE 5.5 Flash Preview as an intermediate post-training checkpoint. Read their model card for capabilities and caveats.
  • Custom format. These are HTR-W1 packed weights, not standard BF16 safetensors or GGUF. They load only in an HTR-aware runtime such as vllm-htr, so Transformers, llama.cpp and stock vLLM can't read them.
  • One machine class. Every serving result here comes from a 128 GB Strix Halo system (gfx1151).

Files (v3 on main)

*.safetensors, model.safetensors.index.json   44-shard HTR-W1 target (101.87 GiB)
draft/                                        4-shard DSpark K2 draft (5.14 GiB) + config.json + index
flashindexer/                                 Baidu's original FlashIndexer
config.json, generation_config.json           HTR-W1 schema config & Baidu sampling defaults
tokenizer*, *_ernie.py                        Baidu tokenizer and model code
HTR-REPORT.json                               per-layer quantization diagnostics
VERIFIED.json                                 exact BF16 teacher logit verification receipts
SHA256SUMS.txt                                checksums for the 44 v3 target shards

License

  • Base weights, tokenizer code and FlashIndexer: Baidu, Apache-2.0 (see LICENSE).
  • Quantization format and toolchain: HawgAuto/HTR, MIT.
  • Serving runtime: HawgAuto/vllm-htr.

Earlier videos

Downloads last month
2,476
Safetensors
Model size
28B params
Tensor type
F32
·
I32
·
BF16
·
F16
·
U8
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for hstolte/ERNIE-5.5-Flash-Preview-HTR

Quantized
(3)
this model

Paper for hstolte/ERNIE-5.5-Flash-Preview-HTR