Spaces:
Sleeping
Sleeping
Add v10 35,390-item benchmark configuration
Browse filesFiles changed (4)
- app.py+5-1
- index.html+15-1
- smoke_board.mjs+3-3
- test_manage.py+2
255 unmodified lines256257258259260261262255 unmodified lines# LEGACY_VERSION also owns the un-prefixed files at the repo root, which is where# every score lived before versioning. Keep this list in step with VERSIONS in# index.html.VERSIONS = [v.strip() for v in os.environ.get("VERSIONS", "v7,v8,v9").split(",") if v.strip()]LEGACY_VERSION = os.environ.get("LEGACY_VERSION", "v7")255 unmodified lines256257258259260261262263264265266255 unmodified lines# LEGACY_VERSION also owns the un-prefixed files at the repo root, which is where# every score lived before versioning. Keep this list in step with VERSIONS in# index.html.VERSIONS = [v.strip()for v in os.environ.get("VERSIONS", "v7,v8,v9,v10").split(",")if v.strip()]LEGACY_VERSION = os.environ.get("LEGACY_VERSION", "v7")
558 unmodified lines559560561562563564565566567568558 unmodified lines// which is exactly why it is a separate board rather than a re-score of v8.const DIMS_V9=DIMS_V8;const KS_V9=KS_V8;const VERSIONS=[{id:"v7", label:"v7 β corpus 34,137", dims:DIMS_34137, ks:KS_34137, legacy:true},{id:"v8", label:"v8 β corpus 32,890", dims:DIMS_V8, ks:KS_V8},{id:"v9", label:"v9 β corpus 32,890", dims:DIMS_V9, ks:KS_V9}];const DEFAULT_VERSION="v7";function versionCfg(id){return VERSIONS.find(v=>v.id===id)||VERSIONS[0];}558 unmodified lines559560561562563564565566567568569570571572573574575576577578579580581582558 unmodified lines// which is exactly why it is a separate board rather than a re-score of v8.const DIMS_V9=DIMS_V8;const KS_V9=KS_V8;// v10 freezes the current 32,890-row corpus together with 2,500 deterministic// answerability/abstention items. The new capability has its own leaderboard// column and fixed denominator; all earlier dimension weights remain unchanged.const DIMS_V10=[["reasoning_logic","Reasoning",3161],["generation_instruction","Generation",3475],["sentiment_emotion_meaning","Sentiment",2549],["safety_trust_bias","Safety",2034],["arabic_language_understanding","Arabic Lang.",3531],["knowledge_stem","Knowledge",3732],["multi_turn_dialogue","Multi-Turn",1679],["translation","Translation",2000],["information_extraction","Extraction",1500],["answerability_abstention","Answerability",2500],["islam","Islam",7838],["completion","Completion",365],["contextual","Contextual",343],["semantic","Semantic",683]];const KS_V10=KS_V8;const VERSIONS=[{id:"v7", label:"v7 β corpus 34,137", dims:DIMS_34137, ks:KS_34137, legacy:true},{id:"v8", label:"v8 β corpus 32,890", dims:DIMS_V8, ks:KS_V8},{id:"v9", label:"v9 β corpus 32,890", dims:DIMS_V9, ks:KS_V9},{id:"v10", label:"v10 β corpus 35,390", dims:DIMS_V10, ks:KS_V10}];const DEFAULT_VERSION="v7";function versionCfg(id){return VERSIONS.find(v=>v.id===id)||VERSIONS[0];}
50 unmodified lines515253545556575859606150 unmodified lines}console.log(" PASS board script executes with no top-level error");// the picker must actually offer both versionsconst versions = script.match(/const VERSIONS=\[([\s\S]*?)\n\];/)[1];const ids = [...versions.matchAll(/id:"(v\d+)"/g)].map(m => m[1]);let ok = ids.includes("v7") && ids.includes("v8");console.log(` ${ok ? "PASS" : "FAIL"} VERSIONS offers v7 and v8: ${JSON.stringify(ids)}`);// ---- owner-only columns must never reach a public viewer ----// heads() is driven purely by state.extra, which only /api/private-metrics fills,50 unmodified lines515253545556575859606150 unmodified lines}console.log(" PASS board script executes with no top-level error");// the picker must offer every published benchmark versionconst versions = script.match(/const VERSIONS=\[([\s\S]*?)\n\];/)[1];const ids = [...versions.matchAll(/id:"(v\d+)"/g)].map(m => m[1]);let ok = ["v7", "v8", "v9", "v10"].every(id => ids.includes(id));console.log(` ${ok ? "PASS" : "FAIL"} VERSIONS offers v7-v10: ${JSON.stringify(ids)}`);// ---- owner-only columns must never reach a public viewer ----// heads() is driven purely by state.extra, which only /api/private-metrics fills,
57 unmodified lines58596061626357 unmodified linesR = types.SimpleNamespace(headers={}, cookies={}, session={})print("manage reports presence per version")rows = {m["model"]: m for m in app.manage(R, version="v8")["models"]}check("alpha scored on v7 and v8", sorted(rows["alpha" if "alpha" in rows else "org/alpha"]["results_by_version"]), ["v7", "v8"])57 unmodified lines585960616263646557 unmodified linesR = types.SimpleNamespace(headers={}, cookies={}, session={})check("v10 is registered by the API", "v10" in app.VERSIONS, True)print("manage reports presence per version")rows = {m["model"]: m for m in app.manage(R, version="v8")["models"]}check("alpha scored on v7 and v8", sorted(rows["alpha" if "alpha" in rows else "org/alpha"]["results_by_version"]), ["v7", "v8"])
app.py+5-1
index.html+15-1
smoke_board.mjs+3-3
test_manage.py+2