Personal Note & Data Transparency Notice / 新人学习说明与数据真实性声明
- Learning Project: This is my very first quantization upload on Hugging Face. I am still learning as I go by reading papers, source code, and community model cards, so there may be rough edges or room for improvement. I am sharing the checkpoint, runtime patch, and raw evaluation logs mainly as a learning record and in case they help someone else running
2× DGX Spark(GB10). Constructive feedback, bug reports, and suggestions are genuinely welcome.- AI-Assisted Report, 100% Real Measurements: This Model Card was drafted and formatted with AI assistance; however, every benchmark score, perplexity number, Needle-in-a-Haystack (NIAH) result, speed measurement, weight cosine similarity, and tensor byte audit below is an unedited measurement from our own hardware. Raw logs are included verbatim in
bench_results.jsonandconversion-report.json.个人说明:这是我作为新人摸着石头过河的第一次量化学习作品。文中排版与英文表述借助了 AI 辅助整理,但所有基准分数、困惑度、长上下文大海捞针结果、实测速度与权重字节审计均为 100% 真实集群实测数据(原始 JSON 已随仓附带)。水平有限,难免有疏漏之处,非常欢迎各位前辈和同好指正交流。
This repository contains a hybrid EXL3 quantization (~3.23 bpw active runtime / 3.0919 bpw across EXL3-quantized weights) of baidu/ERNIE-5.5-Flash-Preview-FP8 (280B total / 14B active MoE + built-in 20B 3-stage DSpark multi-token speculative draft model), pre-sharded for TP=2 on two 128 GiB NVIDIA DGX Spark (GB10, SM 12.1) nodes with a 1,048,576-token (1M) FP8 KV cache pool.
280B FP8 does not fit in 2× 128 GiB unified memory, so we could not measure an apples-to-apples local FP8 baseline (ΔPPL or ΔKLD). Please treat the numbers below as standalone reference measurements on this quantized build rather than a formal claim of "losslessness".164/164) is the full official split. GSM8K (N=200), CMMLU (N=201), IFEval (N=120), and MATH-500 (N=100, capped at max_tokens=3072) are deterministic subsets chosen to fit our workstation evaluation time.TP=2 layout: Weights are pre-sharded into rank0/ and rank1/ and currently require the included ./sglang_overlay/ patch plus a compiled ExLlamaV3 (exllamav3_ext) build.All runs below were executed against our TP=2 SGLang server (temperature = 0.0, 1,048,576-token FP8 KV cache, DSpark greedy draft) with no retries or cherry-picking:
| Benchmark | Split / Protocol | Mode | Passed / Total | Score | Aggregate Speed (bs=4) |
|---|---|---|---|---|---|
| OpenAI HumanEval | Full official 164/164 (isolated Python subprocess execution) |
thinking=False, temp=0.0 |
160/164 |
97.56% |
83.17 tok/s |
| OpenAI GSM8K | First 200 deterministic test items (\boxed{} exact equiv) |
thinking=False, temp=0.0 |
190/200 |
95.0% |
86.19 tok/s |
| HF MATH-500 | 100 stratified across 7 subjects (max_tokens=3072 cap) |
thinking=True, temp=0.0 |
71/100 |
71.0% |
72.47 tok/s |
| CMMLU | 201 stratified across all 67 Chinese subjects (3/subject) |
thinking=False, 0-shot |
172/201 |
85.57% |
— |
| Google IFEval | 120 verifiable-constraint prompts (strict prompt-level) |
thinking=False, temp=0.0 |
110/120 |
91.67% |
63.34 tok/s |
| Wiki Perplexity | exllamav3/standard_cal_data/wiki.utf8 (10,395 tokens) |
SGLang input_token_logprobs |
— | PPL = 4.9693 |
NLL = 1.60328 |
Evaluation Notes:
- HumanEval: Among the
4misses on164/164, 2 (HumanEval/38,HumanEval/50) were harnessNameErrors because the model omitted re-emitting the prompt's pre-supplied helper (encode_cyclic/encode_shift) in its code block; 2 tasks failed assertions. Exact traces are stored inbench_results.json.- MATH-500 (
thinking=True): Capped atmax_tokens=3072to keep total runtime manageable; several harder problems ran out of token budget mid-reasoning before outputting\boxed{}. All numbers shown are raw unmodified results under that cap.
32K – 1M, 1M Pool)Evaluated with thinking=False, temperature=0.0, max_tokens=512, needle placed at 50% document depth, and a unique session prefix per depth so every run measures genuine cold prefill (zero Radix KV cache hit): 5/5 recalled.
| Target Depth | Actual Prompt Tokens | Recall Status | TTFT | Prefill Throughput | Decode Throughput |
|---|---|---|---|---|---|
| 32K | 31,694 |
PASS (Exact Match) | 48.33 s |
655.7 tok/s |
36.36 tok/s |
| 128K | 126,463 |
PASS (Exact Match) | 150.05 s |
842.8 tok/s |
32.52 tok/s |
| 256K | 252,879 |
PASS (Exact Match) | 331.02 s |
763.9 tok/s |
34.26 tok/s |
| 512K | 505,652 |
PASS (Exact Match) | 836.89 s |
604.2 tok/s |
34.17 tok/s |
| 1M | 1,007,259 |
PASS (Exact Match) | 2319.01 s |
434.3 tok/s |
20.91 tok/s |
Both pre-sharded ranks (rank0 and rank1) were independently audited directly from safetensors headers (full JSON in conversion-report.json).
EXL3 K=3 / K=4)layers 1..42, 512 experts/layer): EXL3 K=3 (3 bpw, QTIP mul1 trellis).stages 0..2): EXL3 K=4 (4 bpw) to keep speculative acceptance stable.wqkv_a, fc1_latent_proj, fc2_latent_proj, MLA q_b_proj/gate_proj, lm_head, and draft trunk stages.0..2): EXL3 K=4 (4 bpw).wq_b, wo_b, o_proj, shared_experts, layer 0 dense MLP): EXL3 K=3 (3 bpw).stages.{0..2}.self_attn.wkv: Native FP8 (~6 MB total) to stay compatible with SGLang's CommitKvProj.triton.embed_tokens, RMSNorms, MoE routers, VHA post-mix (vha_postmix_U/V), attention sinks, and hyper-connections: Native BF16 / FP32.322 linear modules/rank): Checked quantized forward output cosine similarity against dequantized FP8 weights (threshold >= 0.975, observed min_cos = 0.9908, lm_head cos = 0.9980).TP=2)| Metric | Rank 0 (Spark-2) |
Rank 1 (Spark-1) |
Combined (TP=2) |
|---|---|---|---|
| Safetensors Shards | 51 |
51 |
102 |
| Total Tensors | 3,588 |
3,588 |
7,176 |
| EXL3 Quantized Params | 148,884,160,512 |
148,884,160,512 |
297,768,321,024 (297.77B) |
EXL3 K=3 Params |
137,506,062,336 |
137,506,062,336 |
275,012,124,672 |
EXL3 K=4 Params |
11,378,098,176 |
11,378,098,176 |
22,756,196,352 |
EXL3 Payload (bpw) |
53.591 GiB (3.0919 bpw) |
53.591 GiB (3.0919 bpw) |
107.181 GiB (3.0919 bpw) |
| Approx. Active Runtime Weights | ~57.65 GiB |
~57.65 GiB |
~115.30 GiB (~3.23 bpw overall) |
| Total On-Disk Size (incl. fallback FP8 trunk) | 64.644 GiB |
64.644 GiB |
129.288 GiB |
Why on-disk size (
129.288 GiB) is larger than active runtime size (~115.30 GiB):trunk-00001..00004.safetensorsretain the original6.994 GiB/rankFP8 trunk tensors as a fallback. When running withERNIE55_EXL3_TRUNK=1, the EXL3 trunk files (ernie55_trunk_exl3_k4_{target,draft}_rank{0,1}.safetensors) replace those FP8 trunk weights at load time.
GB10, 200GbE RoCEv2)Workload (1M FP8 KV pool, TP=2) |
Earlier patch (FP8 trunk) | With EXL3 trunk + DSpark |
Current overlay (greedy draft + token cache) |
|---|---|---|---|
Single-Stream Code (temp=0) |
28.10 tok/s |
41.01 tok/s |
52.23 tok/s |
Structured JSON / Tools (temp=0) |
36.40 tok/s |
58.83 tok/s |
67.66 tok/s |
| Thinking / Agentic | ~32.0 tok/s |
42.17 tok/s |
45.13 tok/s |
Upstream SGLang's official container tag for ERNIE-5.5 support (lmsysorg/sglang:inkling-2-mini — note: this is SGLang's container image tag, not a different model) expects FP8 weights by default. To load these EXL3 weights on TP=2, mount the patch files in ./sglang_overlay/ and provide a compiled ExLlamaV3 (exllamav3_ext) checkout via ERNIE55_EXL3_ROOT:
rank0/ (including ernie55_trunk_exl3_k4_{target,draft}_rank0.safetensors) on Node 0 and rank1/ on Node 1.lmsysorg/sglang:inkling-2-mini on both nodes and adapt ./sglang_overlay/launch_tp2_example.sh to your network interface and paths.--tp-size 2 --context-length 1048576 --max-total-tokens 1048576 --kv-cache-dtype fp8_e4m3--json-model-override-args '{"dspark_block_size": 4}' --speculative-algorithm DSPARK --speculative-num-draft-tokens 5--chunked-prefill-size 8192 --disable-prefill-cuda-graph --cuda-graph-max-bs-decode 4ERNIE55_EXL3_TRUNK=1, ERNIE55_EXL3_PREFILL_ROWS=8192, SGLANG_DSPARK_USE_GREEDY_DRAFT=1As a newcomer learning quantization from scratch, I stumbled through plenty of dead ends before getting this running. Every useful idea in this repo comes from studying the open-source code, papers, and model cards of the people and teams below—thank you for sharing your work openly:
作为一个从零摸索的新人,一路踩过很多坑才勉强把这套双机量化与评测跑通。这里面的每一步方法都是站在下面这些前辈和开源团队的肩膀上学来的,谨致诚挚感谢:
turboderp (ExLlamaV3): Built the EXL3 trellis format, Random Hadamard + Scaled-Hessian LDLQ quantizer, Viterbi mul1 codebooks, and high-efficiency CUDA kernels that make this checkpoint possible.Albert Tseng et al. — QTIP / QuIP#): Introduced the incoherent processing and trellis-coded quantization theory behind EXL3.Mia-AiLab: Their transparent EXL3 releases and model cards taught me what good release hygiene looks like—including byte/tensor audits (conversion-report.json), checksums (SHA256SUMS), and raw benchmark logs instead of just uploading raw weights.Unsloth (Daniel Han & Michael Han — Dynamic 2.0 Quantization): Inspired the mixed-bitrate idea of giving sensitive bottleneck projections (wqkv_a, latent projections, lm_head, and draft heads) extra bits (K=4) while compressing bulk MoE experts to K=3.SGLang: Provided the ernie5_5_moe engine, RadixAttention, FP8 KV cache, and DSpark speculative decoding pipeline that our small overlay patches.Baidu ERNIE Team: Open-sourced ERNIE-5.5-Flash-Preview-FP8 under Apache 2.0.GB10 (SM 12.1) notes, RoCEv2 configs, and quantization evaluations online.baidu/ERNIE-5.5-Flash-Preview-FP8 — Apache 2.0rank0/trunk-00002-of-00004.safetensors 3.0 GBrank1/trunk-00002-of-00004.safetensors 3.0 GBrank0/trunk-00003-of-00004.safetensors 3.0 GBrank1/trunk-00003-of-00004.safetensors 3.0 GBrank0/trunk-00001-of-00004.safetensors 3.0 GBrank1/trunk-00001-of-00004.safetensors 3.0 GBrank0/trunk-00004-of-00004.safetensors 2.8 GBrank1/trunk-00004-of-00004.safetensors 2.8 GBrank0/experts-mtp-00.safetensors 1.6 GBrank0/experts-mtp-01.safetensors 1.6 GBrank0/experts-mtp-02.safetensors 1.6 GBrank1/experts-mtp-00.safetensors 1.6 GBrank1/experts-mtp-01.safetensors 1.6 GBrank1/experts-mtp-02.safetensors 1.6 GBrank0/ernie55_trunk_exl3_k4_target_rank0.safetensors 1.6 GBrank1/ernie55_trunk_exl3_k4_target_rank1.safetensors 1.6 GBrank0/experts-layer-10.safetensors 1.2 GBrank0/experts-layer-11.safetensors 1.2 GBrank0/experts-layer-12.safetensors 1.2 GBrank0/experts-layer-13.safetensors 1.2 GBrank0/experts-layer-14.safetensors 1.2 GBrank0/experts-layer-15.safetensors 1.2 GBrank0/experts-layer-16.safetensors 1.2 GBrank0/experts-layer-17.safetensors 1.2 GBrank0/experts-layer-18.safetensors 1.2 GBrank0/experts-layer-19.safetensors 1.2 GBrank0/experts-layer-20.safetensors 1.2 GBrank0/experts-layer-21.safetensors 1.2 GBrank0/experts-layer-22.safetensors 1.2 GBrank0/experts-layer-23.safetensors 1.2 GBrank0/experts-layer-24.safetensors 1.2 GBrank0/experts-layer-25.safetensors 1.2 GBrank0/experts-layer-26.safetensors 1.2 GBrank0/experts-layer-27.safetensors 1.2 GBrank0/experts-layer-28.safetensors 1.2 GBrank0/experts-layer-29.safetensors 1.2 GBrank0/experts-layer-30.safetensors 1.2 GBrank0/experts-layer-31.safetensors 1.2 GBrank0/experts-layer-32.safetensors 1.2 GBrank0/experts-layer-33.safetensors 1.2 GBrank0/experts-layer-34.safetensors 1.2 GBrank0/experts-layer-35.safetensors 1.2 GBrank0/experts-layer-36.safetensors 1.2 GBrank0/experts-layer-37.safetensors 1.2 GBrank0/experts-layer-38.safetensors 1.2 GBrank0/experts-layer-39.safetensors 1.2 GBrank0/experts-layer-40.safetensors 1.2 GBrank0/experts-layer-41.safetensors 1.2 GBrank0/experts-layer-42.safetensors 1.2 GBrank1/experts-layer-10.safetensors 1.2 GBrank1/experts-layer-11.safetensors 1.2 GBrank1/experts-layer-12.safetensors 1.2 GBrank1/experts-layer-13.safetensors 1.2 GBrank1/experts-layer-14.safetensors 1.2 GBrank1/experts-layer-15.safetensors 1.2 GBrank1/experts-layer-16.safetensors 1.2 GBrank1/experts-layer-17.safetensors 1.2 GBrank1/experts-layer-18.safetensors 1.2 GBrank1/experts-layer-19.safetensors 1.2 GBrank1/experts-layer-20.safetensors 1.2 GBrank1/experts-layer-21.safetensors 1.2 GBrank1/experts-layer-22.safetensors 1.2 GBrank1/experts-layer-23.safetensors 1.2 GBrank1/experts-layer-24.safetensors 1.2 GBrank1/experts-layer-25.safetensors 1.2 GBrank1/experts-layer-26.safetensors 1.2 GBrank1/experts-layer-27.safetensors 1.2 GBrank1/experts-layer-28.safetensors 1.2 GBrank1/experts-layer-29.safetensors 1.2 GBrank1/experts-layer-30.safetensors 1.2 GBrank1/experts-layer-31.safetensors 1.2 GBrank1/experts-layer-32.safetensors 1.2 GBrank1/experts-layer-33.safetensors 1.2 GBrank1/experts-layer-34.safetensors 1.2 GBrank1/experts-layer-35.safetensors 1.2 GBrank1/experts-layer-36.safetensors 1.2 GBrank1/experts-layer-37.safetensors 1.2 GBrank1/experts-layer-38.safetensors 1.2 GBrank1/experts-layer-39.safetensors 1.2 GBrank1/experts-layer-40.safetensors 1.2 GBrank1/experts-layer-41.safetensors 1.2 GBrank1/experts-layer-42.safetensors 1.2 GBrank0/experts-layer-01.safetensors 1.2 GBrank0/experts-layer-02.safetensors 1.2 GBrank0/experts-layer-03.safetensors 1.2 GBrank0/experts-layer-04.safetensors 1.2 GBrank0/experts-layer-05.safetensors 1.2 GBrank0/experts-layer-06.safetensors 1.2 GBrank0/experts-layer-07.safetensors 1.2 GBrank0/experts-layer-08.safetensors 1.2 GBrank0/experts-layer-09.safetensors 1.2 GBrank1/experts-layer-01.safetensors 1.2 GBrank1/experts-layer-02.safetensors 1.2 GBrank1/experts-layer-03.safetensors 1.2 GBrank1/experts-layer-04.safetensors 1.2 GBrank1/experts-layer-05.safetensors 1.2 GBrank1/experts-layer-06.safetensors 1.2 GBrank1/experts-layer-07.safetensors 1.2 GBrank1/experts-layer-08.safetensors 1.2 GBrank1/experts-layer-09.safetensors 1.2 GBrank0/ernie55_trunk_exl3_k4_draft_rank0.safetensors 133 MBrank1/ernie55_trunk_exl3_k4_draft_rank1.safetensors 133 MB