bbkdevops's picture
download
raw
1.33 kB
"""Merge multiple frontier parity score-import files."""
from __future__ import annotations
from datetime import datetime, timezone
import json
from pathlib import Path
from typing import Iterable
def merge_score_imports(paths: Iterable[str | Path], out_path: str | Path) -> dict:
merged_scores: dict[str, float] = {}
sources = []
for raw in paths:
path = Path(raw)
if not path.exists():
continue
payload = json.loads(path.read_text(encoding="utf-8"))
sources.append(str(path))
for key, value in payload.get("scores", {}).items():
merged_scores[key] = float(value)
result = {
"schema_version": "tinymind-merged-score-import-v1",
"created_at": datetime.now(timezone.utc).isoformat(),
"sources": sources,
"scope": "merged_system_protocol_scores_not_official_external",
"scores": merged_scores,
"claim_gate": {
"external_official_result": False,
"raw_model_result": False,
"usable_for_frontier_gap_analysis": True,
},
}
out = Path(out_path)
out.parent.mkdir(parents=True, exist_ok=True)
out.write_text(json.dumps(result, ensure_ascii=False, indent=2, sort_keys=True), encoding="utf-8")
result["out_path"] = str(out)
return result

Xet Storage Details

Size:
1.33 kB
·
Xet hash:
e6e105d65d34e57280230c578cf27979214afdb2155035dcbe0a81fd2cd946fb

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.