k2-quant-eval / fetch /README.md
TitanMamo10's picture
eval ids + harness + pipeline drivers + provenance/run docs
d53b365 verified
|
Raw History Blame Contribute Delete
4.4 kB

fetch/ — the upstream text we do not redistribute

We publish token ids, not text. Anything upstream is fetched, not rehosted. This file records exactly which corpora sit behind which number, and which ones you cannot get from us at all.

1. WikiText-2 raw — calibration/SC/PPL (CC BY-SA 4.0) ✅ fetchable

sh fetch/fetch_wikitext2.sh ./data          # -> data/wikitext-2-raw/wiki.{train,test}.raw
  • Source: Salesforce/wikitext, split wikitext-2-raw-v1 (Hub mirror of the Salesforce release), license CC BY-SA 4.0. Cite Merity et al., Pointer Sentinel Mixture Models (arXiv:1609.07843).

  • wiki.train.raw = calibration / SC / calibration trace. wiki.test.raw = PPL eval. Disjoint splits — this is what keeps the PPL column honest.

  • Our exact files (pinned so you can check you have the same layout):

    file bytes sha256
    wiki.train.raw 10,940,747 6707892fa3788b5ab9ed78ab5ff37d9fe825f6011a2ad4fcd6a6d467f0e7da57
    wiki.test.raw 1,290,590 173c87a53759e0201f33e0ccf978e510c2042d7f2cb78229d9a50d79b9e7dd08
  • ⚠️ The Hub parquet is a whitespace-normalised conversion: the fetch script writes ~0.10 % more bytes (blank lines become their own rows), so chunk boundaries shift and a re-run PPL will land near ours, not exactly on it. For bit-identical numbers ask us for the two .raw files — CC BY-SA 4.0, we will hand them over and you can mirror them yourself if you want; we simply do not rehost upstream text in this dataset.

  • The original Salesforce release zip is currently unreachable (research.metamind.io S3 redirects to a host with a mismatched TLS certificate, checked 2026-10-27).

2. GSM8K / ARC-Easy / HellaSwag — the task battery ✅ fetchable

No files needed: harness/k2_task_bench.py pulls them through datasets at run time (openai/gsm8k main test, allenai/ai2_arc ARC-Easy test, Rowan/hellaswag validation), builds the prompts in-file, and scores them. Their licenses (MIT / Apache-2.0 / MIT) permit the download; we deliberately add no redistribution surface.

3. MBPP — the coding bench ✅ included

sanitized-mbpp.json is in this repo, byte-identical to upstream, because Apache-2.0 permits it (see ../PROVENANCE.md, ../licenses/).

4. The OOD PPL corpora — ❌ not fetchable, partially not reproducible

These produced the "+x %" OOD columns in our logs. They are held-out text slices we assembled ourselves; none of them is a public benchmark file, and we do not rehost any of them.

corpus what it is, as verified by inspection license reproducible by you?
code.txt CUDA/C++ source from the ggml / ik_llama.cpp tree (header says "MIT license", authors The ggml authors / I. Kawrakow) MIT yes, in principle — clone that tree and take the same files
gsm8k.txt GSM8K test split, plain (verified disjoint from the GSM8K train text in the calibration pool) MIT yes — openai/gsm8k test
alpaca.txt instruction/response text in the Qwen chat template (`< im_start >user … <
chat.txt instruction/response text in plain alpaca format (### Instruction: / ### Response:), 547 turns — same family as the chat share of the calibration pool not established no
technical.txt = domain_test.txt our own internal engineering handoff document (identical file, 348,748 bytes) ours (not published) no

Consequence, stated in the README as caveat 6: the technical and domain PPL columns and the alpaca/chat OOD columns are internal evidence, not published benchmarks. We quote them only as directional deltas against the F16 baseline measured on the same text, and they should not be compared with anyone else's numbers. If you need a public technical-domain reference, use e.g. a C4/technical slice and expect a different absolute value.

5. The calibration mixes — in this repo

calibration/*.npz are our own token ids over the sources above (WikiText + GSM8K-train + ggml code + chat + ubergarm corpus v02). They are here so the quantization can be re-run exactly; the text behind them is not. See ../LICENSE-DATA.md for the per-source license map and ../PROVENANCE.md for composition.