Quarantine transport-invalid oracle trial
This commit is contained in:
@@ -20,7 +20,11 @@ from analyze import CONFIGS, PHASES, atomic_json, score_trial, summarize_trials
|
||||
|
||||
|
||||
SCHEMA = 1
|
||||
AMENDMENT = "A-OG-1"
|
||||
AMENDMENT = "A-OG-2"
|
||||
AMENDMENT_REASON = (
|
||||
"retry one quarantined P06-C01-r2.2-rep0 transport-invalid attempt "
|
||||
"without changing its logical trial"
|
||||
)
|
||||
REMOTE_ROOT = Path("/home/admin/cpfs/wjh/oracle-gap-20260713")
|
||||
RUN_ROOT = REMOTE_ROOT / "runs"
|
||||
STATE = RUN_ROOT / "controller-state.json"
|
||||
@@ -235,6 +239,7 @@ def fingerprint() -> dict[str, Any]:
|
||||
|
||||
def resume_compatible(old: dict[str, Any], current: dict[str, Any]) -> bool:
|
||||
immutable = (
|
||||
"analyzer_sha256",
|
||||
"p5_client_sha256",
|
||||
"p3_client_sha256",
|
||||
"vllm_commit",
|
||||
@@ -245,7 +250,21 @@ def resume_compatible(old: dict[str, Any], current: dict[str, Any]) -> bool:
|
||||
"config_details",
|
||||
"base_rates",
|
||||
)
|
||||
return all(old.get(key) == current.get(key) for key in immutable)
|
||||
if not all(old.get(key) == current.get(key) for key in immutable):
|
||||
return False
|
||||
old_extensions = old.get("up_extensions")
|
||||
current_extensions = current.get("up_extensions")
|
||||
if old_extensions == current_extensions:
|
||||
return True
|
||||
# The only earlier compatible transition was A-OG-1, which appended the
|
||||
# five registered P06 anchors after the original 2.3-rps list.
|
||||
if not isinstance(old_extensions, dict) or not isinstance(current_extensions, dict):
|
||||
return False
|
||||
return (
|
||||
old_extensions.get("P01") == current_extensions.get("P01")
|
||||
and list(old_extensions.get("P06", [])) + [2.4, 2.5, 2.6, 2.8, 3.0]
|
||||
== current_extensions.get("P06")
|
||||
)
|
||||
|
||||
|
||||
def ensure_provenance(current: dict[str, Any]) -> None:
|
||||
@@ -650,10 +669,7 @@ def execute(resume: bool) -> None:
|
||||
{
|
||||
"id": AMENDMENT,
|
||||
"accepted_at": time.time(),
|
||||
"reason": (
|
||||
"C00/P06 feasible through the original 2.3-rps "
|
||||
"upper extension"
|
||||
),
|
||||
"reason": AMENDMENT_REASON,
|
||||
"completed_trials_before": len(
|
||||
state.get("completed_trials", [])
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user