ML-QuantBench / README.md
CiscoR's picture
ML-QuantBench: per-language and per-item scores, chat prompts
8cab4c8 verified
|
Raw History Blame Contribute Delete
9.48 kB
metadata
license: other
license_name: apache-2.0-and-cc-by-sa-3.0
license_link: https://huggingface.co/datasets/Cis-Labs/ML-QuantBench#provenance-and-licences
pretty_name: ML-QuantBench
language:
  - en
  - zh
  - es
  - fr
  - de
  - ja
  - ar
  - pt
  - ru
  - ko
  - hi
  - tr
  - vi
  - pl
  - id
  - uk
  - da
  - th
  - bn
  - sw
  - ta
  - te
  - mr
  - ur
  - fa
  - he
  - el
  - zu
  - fil
  - is
multilinguality: multilingual
task_categories:
  - text-generation
size_categories:
  - 100K<n<1M
tags:
  - quantization
  - multilingual
  - benchmark
  - kl-divergence
  - vllm
  - llama.cpp
  - gguf
  - nvfp4
configs:
  - config_name: checkpoints
    data_files: checkpoints.parquet
    default: true
  - config_name: per_language
    data_files: per_language.parquet
  - config_name: contrasts
    data_files: contrasts.parquet
  - config_name: kl_items
    data_files: kl_items.parquet
  - config_name: reference_text_items
    data_files: reference_text_items.parquet
  - config_name: multiple_choice_items
    data_files: multiple_choice_items.parquet
  - config_name: mgsm_items
    data_files: mgsm_items.parquet
  - config_name: prompts
    data_files: prompts.jsonl

ML-QuantBench

Per-language scores of 13 quantized checkpoints of Qwen/Qwen3.8-27B and google/gemma-4-26B-A4B-it (FP8, NVFP4, AWQ INT4 and GGUF Q4_K) in 30 languages: KL divergence from the BF16 model on the BF16 model's own sampled answers, extra negative log-likelihood on human reference text, and accuracy change on Belebele, Global-MMLU-Lite, INCLUDE and MGSM. Measured with vLLM 0.34.0 and llama.cpp b12864 on one NVIDIA RTX PRO 6000 Blackwell. Code, method, controls and the summary tables: github.com/Cis-Labs-Hub/ml-quantbench.

Configurations

Every table is written by tables.py in the code repository from the raw per-variant results. A variant is a checkpoint at a pinned revision, optionally with a runtime tag (@kvbf16: BF16 KV cache; @w4a16: NVFP4 weights through Marlin with BF16 activations) or an offline derivation (-dq, -dqfused: dequantized to BF16). Its reference is the BF16 model it is compared with: vLLM BF16, or for GGUF quants the BF16 GGUF of the same repository in llama.cpp. KL values in checkpoints and per_language are in millinats per token; _lo / _hi columns are 95% bootstrap intervals.

checkpoints: one row per variant.

field description
variant, base, checkpoint, tag, role identity; role is quantized, engine control (BF16 GGUF in llama.cpp vs BF16 in vLLM) or control
repo, revision, file, runtime Hugging Face repository, revision, GGUF file pattern, vllm or gguf
format, calibration format and calibration data as documented by the publisher
reference, bpw the BF16 reference; bits per weight
kl_en, kl_nonen KL in English, and the equal-weight mean over the 29 other languages
geo_gap geometric mean over 29 languages of KL(language) / KL(English)
major_gap, major_gap_all_kinds median over the 19 major non-English languages of KL(language) / KL(English), without and with translation prompts
mean_dacc, sig_drops, sig_gains, acc_cells mean accuracy change (points) over language-benchmark cells; cells whose interval lies below or above zero
ref_text_source, dnll_rel_en, dnll_rel_nonen, dtop1_nonen reference-text scores on the raw documents (Qwen3.8; empty where not valid, see below)
ref_chat_source, dnll_rel_refchat_en, dnll_rel_refchat_nonen, dtop1_refchat_en, dtop1_refchat_nonen reference-text scores on the chat-wrapped documents (Gemma 4)

per_language: one row per variant and language: kl_own, gap (KL / English KL), dnll_rel (% extra NLL on reference text), dtop1 (top-1 change, points), the same on the chat-wrapped documents (dnll_rel_refchat, dtop1_refchat), and per benchmark d_<bench> (accuracy change, points), acc_<bench> and acc_<bench>_ref (accuracy of variant and reference), flip_<bench> (% of items whose answer changed), n_<bench>. Benchmarks: belebele, gmmlu_lite, include, mgsm. major marks the 19 major non-English languages.

contrasts: paired difference-in-differences contrasts between checkpoints (did = geo_gap(a) / geo_gap(b)), with the English and non-English KL ratios.

kl_items: one row per variant and BF16 sample (2 samples per prompt, 25 prompts per language): prompt_id (key into prompts), kind, n_tok (answer tokens), logp_reference and logp_variant (summed log-probabilities of the answer), kl_sum = their difference. Per-language KL is the sum of kl_sum over the language's rows divided by the sum of n_tok.

reference_text_items: one row per variant and WMT24++ reference document: summed log-probabilities and top-1 hits under the variant and its reference. Only pairs whose BF16 reference passes the validity rule on that file: Qwen3.8 on the raw documents (source_file score.parquet); Gemma 4 on the documents placed as the model's reply inside its chat template (score_refchat.parquet, format reply_empty; scoring starts at the first document token). Gemma 4's raw and BOS-prefixed scores fail the rule and are not exported. On the wrapped documents ΔNLL does not track divergence for Gemma 4 (code repository README, Controls, V18); use top-1 agreement or KL.

multiple_choice_items, mgsm_items: per variant and item: correct (the variant's answer is right), reference (the variant it is compared with; empty for the two BF16 models) and same_answer_as_reference (the variant gave the same answer as its reference on that item; the per-language flip_<bench> values are 100 minus its mean). The answers themselves are not included. id and item identify the item in the pinned source release (rebuilt by build_data.py).

prompts (750 rows): the chat prompts whose BF16 answers are scored, 25 per language, with source, item id, dataset revision, licence and licence note.

Provenance and licences

The scores, item-level results and tables are Cis Labs measurements, released under Apache-2.0. They contain no text from the evaluation sets and no answer keys: multiple-choice and MGSM items and the reference documents are referenced by id and rebuilt from the pinned sources by build_data.py, and the item files record only whether each answer is correct and whether it matches the reference model's, never the answer itself, so the keys cannot be derived from them. Model answers are not included.

The prompts configuration redistributes prompt text. Every row records its source, item id, dataset revision and licence:

source revision rows licence
CohereLabs/m-ArenaHard ab393a96cd0b134a1acfa96e080af31e5e73a393 160 Apache-2.0 (Google-Translate v3 translations of arena-hard-auto v0.1 prompts, Apache-2.0)
CohereLabs/aya_evaluation_suite (Dolly subsets) e69f652e99144bf9e5019caa6c940fa1e9a24ba3 300 Apache-2.0 release; the prompts derive from databricks/databricks-dolly-15k and carry its CC-BY-SA-3.0 terms
CohereLabs/Global-MMLU 0e619dbeb34206cd48705a1a0ea7fb21cae09993 90 Apache-2.0 (translations of MMLU, MIT)
google/wmt24pp fd7405c06494bc66a57b25f55d217a72f96e60dc 200 Apache-2.0

The Dolly-derived prompts are adapted from databricks/databricks-dolly-15k (Databricks, Inc., CC BY-SA 3.0) through the translations in the Aya Evaluation Suite (Cohere Labs, Apache-2.0), and are redistributed under CC BY-SA 3.0. The other prompts are redistributed under the Apache License 2.0.

The evaluation sets referenced by id: google/wmt24pp @ fd7405c (Apache-2.0), facebook/belebele @ c8e56b6 (CC-BY-SA-4.0), CohereLabs/Global-MMLU-Lite @ 36c2fd7 (Apache-2.0), CohereLabs/include-base-44 @ d2e1f60 (Apache-2.0), juletxara/mgsm @ b2f13d4 (CC-BY-SA-4.0). Model licences and revisions are listed in the code repository's THIRD_PARTY_NOTICES.md.

Use

from datasets import load_dataset

checkpoints = load_dataset("Cis-Labs/ML-QuantBench", "checkpoints", split="train")
per_language = load_dataset("Cis-Labs/ML-QuantBench", "per_language", split="train")
kl = load_dataset("Cis-Labs/ML-QuantBench", "kl_items", split="train").to_pandas()

# per-language KL of one checkpoint, in millinats per token
g = kl[kl.variant == "qwen38-nvidia-nvfp4"].groupby("lang")[["kl_sum", "n_tok"]].sum()
print(1000 * g.kl_sum / g.n_tok)

To score another checkpoint on the same samples, run the harness from the code repository (qb_vllm.py or qb_gguf.py), then tables.py.

Citation

@misc{cislabs2026mlquantbench,
  title  = {{ML-QuantBench}: Quantized Checkpoints Across 30 Languages},
  author = {{Cis Labs}},
  year   = {2026},
  url    = {https://huggingface.co/datasets/Cis-Labs/ML-QuantBench}
}

Please also cite the source datasets: WMT24++ (Deutsch et al., 2025), Belebele (Bandarkar et al., 2024), Global-MMLU (Singh et al., 2024), INCLUDE (Romanou et al., 2024), MGSM (Shi et al., 2022), m-ArenaHard and the Aya Evaluation Suite (Cohere Labs).


Cis Labs is an AI research lab. Towards intelligence for everyone. cislabsai.com · Hugging Face · GitHub