Revise action-aware pilot after token overload
This commit is contained in:
@@ -184,6 +184,23 @@ def main() -> None:
|
||||
assert len(plan["sessions"]) == 5
|
||||
assert plan["projected_h20_hours"] == 7.0
|
||||
assert "--max-num-batched-tokens 256" in plan["sessions"][0]["commands"]["server"]
|
||||
revised = prepare.build(
|
||||
ROOT / "runs/intervention-response-v2/pilot-manifest-v3.json",
|
||||
token_source_mbbt=2048,
|
||||
prior_attempt_h20_hours=0.38598689953486126,
|
||||
prior_attempt_artifact="/tmp/operational-stop-v0.json",
|
||||
)
|
||||
assert revised["schema"] == "action-aware-constraint-pilot-manifest-v1"
|
||||
assert revised["configs"][0]["mbbt"] == 2048
|
||||
assert revised["configs"][3]["mbbt"] == 2048
|
||||
assert revised["budget"]["hard_cap_h20_hours"] < 8.0
|
||||
controller.configure(args, revised)
|
||||
revised_plan = controller.dry_run_plan(args, revised)
|
||||
assert revised_plan["projected_h20_hours"] < revised_plan["hard_cap_h20_hours"]
|
||||
assert (
|
||||
"--max-num-batched-tokens 2048"
|
||||
in revised_plan["sessions"][0]["commands"]["server"]
|
||||
)
|
||||
print("action-aware constraint pilot: PASS")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user