Reset new topology groups to full binary search
This commit is contained in:
@@ -1061,6 +1061,15 @@ class CoreFlowTests(unittest.TestCase):
|
||||
best_request_rate=3.0,
|
||||
best_request_rate_per_gpu=0.75,
|
||||
next_trial_index=2,
|
||||
best_by_parallel_size={
|
||||
"4": {
|
||||
"trial_id": "trial-0001",
|
||||
"parallel_size": 4,
|
||||
"best_sampling_u": 0.375,
|
||||
"best_request_rate": 3.0,
|
||||
"best_request_rate_per_gpu": 0.75,
|
||||
}
|
||||
},
|
||||
trials=[],
|
||||
)
|
||||
proposal = Proposal.from_dict(
|
||||
@@ -1112,7 +1121,7 @@ class CoreFlowTests(unittest.TestCase):
|
||||
trial, _ = store.materialize_trial(study=study, state=state, proposal=proposal)
|
||||
self.assertEqual(trial.search.low, 0.125)
|
||||
|
||||
def test_materialize_trial_scales_search_floor_for_different_parallel_group(self) -> None:
|
||||
def test_materialize_trial_resets_search_floor_for_new_parallel_group(self) -> None:
|
||||
with tempfile.TemporaryDirectory() as tmp:
|
||||
tmp_path = Path(tmp)
|
||||
study_path = _write_study_assets(tmp_path)
|
||||
@@ -1138,7 +1147,7 @@ class CoreFlowTests(unittest.TestCase):
|
||||
}
|
||||
)
|
||||
trial, _ = store.materialize_trial(study=study, state=state, proposal=proposal)
|
||||
self.assertEqual(trial.search.low, 0.2)
|
||||
self.assertEqual(trial.search.low, study.search.low)
|
||||
|
||||
def test_ingest_trial_results_records_failure_reason(self) -> None:
|
||||
with tempfile.TemporaryDirectory() as tmp:
|
||||
|
||||
Reference in New Issue
Block a user