File size: 1,053 Bytes
8b9defb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | # SPDX-License-Identifier: Apache-2.0
"""One-command reproduction: dataset, eval, static leaderboard, consistency check."""
from __future__ import annotations
import os
import runpy
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
os.environ.setdefault("PYTHONHASHSEED", "20261124")
os.environ.setdefault("TOKENIZERS_PARALLELISM", "false")
os.environ.setdefault("HF_HUB_DISABLE_TELEMETRY", "1")
os.environ.setdefault("OMP_NUM_THREADS", "4")
os.environ.setdefault("MKL_NUM_THREADS", "4")
def _run(name: str) -> None:
print(f"\n=== {name} ===", flush=True)
runpy.run_path(str(ROOT / "scripts" / name), run_name="__main__")
def main() -> None:
sys.path.insert(0, str(ROOT / "scripts"))
_run("generate_dataset.py")
_run("evaluate.py")
_run("build_space.py")
writeup = ROOT / "writeup" / "FINDINGS.md"
if writeup.exists():
_run("check_consistency.py")
else:
print("write-up not found yet; consistency check skipped", flush=True)
if __name__ == "__main__":
main()
|