Files
Joseph Magly 3ff6e8e020 feat(qwen38): enforced budget hard stop for the A100/H200 campaign
`--budget-hours` only warned, so an overrunning stage kept spending a
fixed rental budget (#527).

- `--hard-stop-hours` and/or `--budget-usd` with `--usd-per-gpu-hour`
  set a wall-clock deadline (the lower of the two); `--reserve-hours`
  (default 2, 0 in dry runs) keeps time for evidence copy-out and
  teardown; `--elapsed-offset-hours` counts rental time already used.
- A stage starts only if its allowance fits before the deadline minus
  the reserve; refused stages and their dependants are skipped while
  later stages that fit still run. Stages run in priority order with
  optional stages (load path, pain axis, multistep) last.
- At the deadline the running stage's whole process group gets SIGTERM,
  then SIGKILL after a grace; the receipt records stopped_by_budget,
  outputs stay hashed and nothing is deleted. A budget stop exits 75 and
  --resume continues from the last completed stage in a later window.
- Ctrl-C now stops the whole process group the same way, so an operator
  stop also frees the GPU; a second Ctrl-C kills immediately.
- Without the new flags behaviour is unchanged; the script still loads
  no ML stack at startup. New logic lives in
  scripts/qwen38_campaign_budget.py.
2026-11-18 11:57:14 -05:00
..
2026-03-04 12:38:18 -08:00
2026-03-04 12:38:18 -08:00