AnswerReuse-Arena / source_downloads.md
DoctorJia's picture
Release AnswerReuse-Arena benchmark, frozen inputs and construction vectors
6b5c608 verified
|
Raw History Blame Contribute Delete
6.59 kB

Pinned upstream downloads

AnswerReuse-Arena preserves the identities of its external inputs in upstream_sources.json. The raw Arena shards, Qwen tokenizer files, and SemCacheCombo source datasets remain available from their original Hugging Face repositories. They are not duplicated in this release. Download immutable revisions and verify SHA-256 hashes before use.

Input Pinned revision Local destination Needed for
Arena human preferences 6322995ab34d7c2693e3f47dd13fa5caa0789a74 data/lmarena_arena_human_preference_140k/ Context and source-group reconstruction; frozen paper data verification
Qwen3.5-9B tokenizer c202236235762e1c871ad0ccb60c8ee5ba337b9a cache/qwen3_5_tokenizer/ Frozen paper token accounting and verification
SemBenchmarkCombo bc7e0ac3fe20e5ce0b0da9207d212f4d243bdf2a data/vCache_SemBenchmarkCombo/ Combo replay and paper cross-source analysis
SemBenchmarkClassification 373719c21898ba0914b1934e88e0486de2420c02 data/vCache_SemBenchmarkClassification/ Combo source-membership validation
SemBenchmarkLmArena c6f36229bef6a5f7936e5b9d982bd5766ef2f862 data/vCache_SemBenchmarkLmArena/ Combo source-membership and full-Arena comparison

Download and verify

Run from the AttrSC Git repository root. Install huggingface_hub in the experiment environment first. Save this release's upstream_sources.json as upstream_sources.json in the working directory, or change manifest_path below to its downloaded location.

The default selection downloads the seven Arena shards and five tokenizer files, approximately 1.64 GB in total. Uncomment the additional source IDs only when running the Combo analyses; those three files add approximately 10.95 GB. Dataset users who only load the released query and pair tables do not need these upstream downloads.

from pathlib import Path
import hashlib
import json

from huggingface_hub import hf_hub_download

manifest_path = Path("upstream_sources.json")
manifest = json.loads(manifest_path.read_text(encoding="utf-8"))
checkout = Path.cwd()
selected = {
    "raw_arena",
    "paper_tokenizer",
    # "semcache_combo",
    # "semcache_classification",
    # "semcache_lmarena",
}

for source in manifest["sources"]:
    if source["id"] not in selected:
        continue
    for item in source["files"]:
        options = dict(
            repo_id=source["repo_id"],
            repo_type=source["repo_type"],
            revision=source["revision"],
            filename=item["filename"],
        )
        if source["download_mode"] == "cache_dir":
            options["cache_dir"] = checkout / source["cache_dir"]
        else:
            options["local_dir"] = checkout / source["local_dir"]
        downloaded = Path(hf_hub_download(**options))
        if downloaded.stat().st_size != item["bytes"]:
            raise RuntimeError(f"Size mismatch: {downloaded}")
        digest = hashlib.sha256()
        with downloaded.open("rb") as stream:
            for chunk in iter(lambda: stream.read(8 * 1024 * 1024), b""):
                digest.update(chunk)
        if digest.hexdigest() != item["sha256"]:
            raise RuntimeError(f"SHA-256 mismatch: {downloaded}")
        expected = checkout / item["local_path"]
        if not expected.exists() or expected.resolve() != downloaded.resolve():
            raise RuntimeError(f"Local path mapping differs: {expected}")
        print(f"Verified {source['id']}: {item['filename']}")

The tokenizer uses cache_dir, rather than local_dir, to reconstruct the Hugging Face snapshots/<revision>/ links and corresponding blobs/ paths recorded in the frozen paper manifest. Only the following five files are downloaded; this command does not download the model weights.

Tokenizer filename Frozen cache blob
chat_template.jinja a585dec894e63da457d9440ec6aa7caa16d20860
merges.txt a494e019ca1502219fd0128658b979e5f05ae8e8
tokenizer.json 5f9e4d4901a92b997e463c1f46055088b6cca5ca61a6522d1b9f64c4bb81cb42
tokenizer_config.json eda48d3e75a8e59a8479ee4ec8b37f76e711d9c1
vocab.json 0aa0ce0658d60ac4a5d609f4eadb0e8e43514176

Pass this snapshot directory when a command requests a tokenizer directory:

cache/qwen3_5_tokenizer/models--Qwen--Qwen3.5-9B/snapshots/c202236235762e1c871ad0ccb60c8ee5ba337b9a

Cache blob identifiers and SHA-256 values are different concepts: some blob names are Git object identifiers. The manifest provides the SHA-256 content hash separately for every file.

Frozen path compatibility

The original paper manifests contain absolute paths rooted at /root/AttrSC. These downloads reproduce the files and directory structure under the current checkout. They do not, by themselves, make the original frozen bundle portable to another checkout path. The existing verifier also checks the released benchmark, cleaned QA table, embeddings, and builder identities. Restore those release files using restore_map.json before invoking it. Do not change frozen hashes or paths merely to bypass an identity-check failure. Preparing a new bundle at a different location creates a new bundle identity.

Provenance and terms

The manifest links each pinned dataset card and records its local content hash. Arena's card applies CC BY 4.0 to user prompts and the relevant model-provider terms to model outputs. The three vCache dataset cards declare Apache 2.0. Those declarations are recorded as upstream metadata; the AnswerReuse-Arena release does not relicense these external datasets or the Qwen tokenizer.

The original embedding import and pair-mining manifests are distributed with the construction supplement. A zero-row reference-schema Parquet is included so the dataset builder does not require historical SBLAClean records. These are release files, not additional upstream downloads; their mappings appear in restore_map.json and the construction section of upstream_sources.json.