Stop harness when feasible probe reaches search high
This commit is contained in:
@@ -798,10 +798,6 @@ def _search_high_saturation_guard(
|
||||
float(study.search.tolerance),
|
||||
(float(study.search.high) - float(study.search.low)) / float(2 ** max(study.search.max_probes, 1)),
|
||||
)
|
||||
latency_summary = last_probe.get("latency_summary")
|
||||
failed = latency_summary.get("failed_reason_counts") if isinstance(latency_summary, dict) else {}
|
||||
if not isinstance(failed, dict):
|
||||
failed = {}
|
||||
if not last_probe.get("feasible"):
|
||||
return {
|
||||
**default,
|
||||
@@ -817,20 +813,12 @@ def _search_high_saturation_guard(
|
||||
"threshold_gap_to_high": threshold_gap,
|
||||
"binary_probe_resolution": binary_probe_resolution,
|
||||
}
|
||||
if failed:
|
||||
return {
|
||||
**default,
|
||||
"reason": "incumbent_high_probe_has_slo_failures",
|
||||
"last_threshold": last_threshold,
|
||||
"threshold_gap_to_high": threshold_gap,
|
||||
"failed_reason_counts": failed,
|
||||
}
|
||||
return {
|
||||
"saturated": True,
|
||||
"reason": "search_high_saturated_by_incumbent",
|
||||
"summary": (
|
||||
"The incumbent's highest measured probe is feasible, has no SLO failures, "
|
||||
"and is within the configured binary-search resolution of search.high."
|
||||
"The incumbent's highest measured probe is feasible and is within "
|
||||
"the configured binary-search resolution of search.high."
|
||||
),
|
||||
"incumbent_trial_id": state.best_trial_id,
|
||||
"search_high": study.search.high,
|
||||
|
||||
Reference in New Issue
Block a user