"""Run one model over the frozen benchmark suites (bench/data/suites.jsonl). python bench\\eval_suites.py laya:laya Laya English checkpoint python bench\\eval_suites.py laya:laya-multilingual python bench\\eval_suites.py laya:laya-typed-decisions python bench\\eval_suites.py nirnay:models\\nirnay-v1 Both models are called through their public batch API with their shipped calibration, exactly as a user would. Writes bench/results/suites__.json with per-suite accuracy, macro-F1, ECE, Brier, NLL (+ MAE for ordinal), throughput, an option-order flip test and a determinism check. """ import json import math import os import random import sys import time from collections import defaultdict os.environ.setdefault("USE_TF", "0") os.environ.setdefault("TOKENIZERS_PARALLELISM", "false") import numpy as np # noqa: E402 HERE = os.path.dirname(os.path.abspath(__file__)) ROOT = os.path.dirname(HERE) sys.path.insert(0, ROOT) SUITES = os.environ.get("BENCH_SUITES_FILE") or os.path.join(HERE, "data", "suites.jsonl") OUT_TAG = os.environ.get("BENCH_OUT_TAG", "") # e.g. "multi" -> results/suites_multi____