bbkdevops's picture
download
raw
1.02 kB
"""Convert adaptive alignment report into frontier parity imported scores."""
from __future__ import annotations
import json
from pathlib import Path
def write_adaptive_import(
adaptive_report: str | Path,
out_path: str | Path,
) -> dict:
report = json.loads(Path(adaptive_report).read_text(encoding="utf-8"))
scores = dict(report.get("scores", {}))
payload = {
"schema_version": "tinymind-adaptive-score-import-v1",
"source_report": str(adaptive_report),
"scope": "system_wrapper_protocol_scores_not_raw_base_model",
"scores": scores,
"claim_gate": {
"external_official_result": False,
"raw_model_alignment_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(payload, ensure_ascii=False, indent=2, sort_keys=True), encoding="utf-8")
payload["out_path"] = str(out)
return payload

Xet Storage Details

Size:
1.02 kB
·
Xet hash:
497071b60a35d9c3fef602d83b66290ee1f081ba67257bfc2656943e0a00be35

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