Repository navigation
Add --min-runtime to protect Beaker evals from preemption - #408
Merged
Merged
Conversation
Beaker deprecated the preemptible flag in favor of a per-task min runtime. `olmo-eval beaker launch --min-runtime 2h` (or `min_runtime: 2h` in a config file) now sets the task's minRuntime, so the job cannot be preempted for its first 2h and keeps auto-resume on. The CLI and config file each supply one preemption setting: when the CLI sets --min-runtime or --preemptible/--no-preemptible, it replaces both config file fields. Setting preemptible and min_runtime in the same source is an error. Raises the beaker-gantry floor to 3.7.0 and beaker-py to 2.6.0, the first versions that accept min_runtime. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- README: protection lasts only for the min runtime on clusters whose policy makes jobs interruptible after it; elsewhere any min runtime protects the whole run. Beaker enforces a fixed 5m-8h range plus the cluster's max task timeout, not a per-cluster range. - Reject a zero min runtime, which Beaker treats as fully preemptible. - Default EvalConfig.preemptible to None so an explicit `preemptible: true` alongside `min_runtime` in a config file is rejected like the CLI combination. - Show min runtime as h/m/s in print_experiment_config, matching the dry-run header, and mark --preemptible deprecated in its help text. - Test the serialized task context and both header printers. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
fabrahman
self-requested a review
September 25, 2026 19:21
fabrahman
approved these changes
Sep 25, 2026
fabrahman
left a comment
Contributor
There was a problem hiding this comment.
Looks all good. Thanks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
--min-runtimetoolmo-eval beaker launch, so an eval can be protected from preemption.The same setting is available as
min_runtime: 4hin a launch config file, or asBeakerJobConfig(min_runtime="4h")in the Python API.Why
Beaker has deprecated
preemptibleand replaced it with a per-taskminRuntime. Until now, the only way to get protection in olmo-eval was--no-preemptible. Beaker turns that into an 8h min runtime with auto-resume off.--min-runtimelets you choose the value and keeps auto-resume on.What Beaker does with it
Behavior in olmo-eval
--min-runtimesendsminRuntimewith nopreemptiblefield. Beaker rejects specs that contain both.h/m/sunits, such as2h,30m, or1h30m. Zero is rejected, because Beaker treats it as fully preemptible.preemptibleandmin_runtimetogether is an error, in the CLI and in a config file.--min-runtimeor--preemptible/--no-preemptible, the CLI value replaces both fields from the config file.preemptible: true.-E): accept the CLI flag. As before, they do not read the config file.beaker-gantry>=3.7.0andbeaker-py>=2.6.0, the first releases that acceptmin_runtime. The lockfile already pins these versions.Testing
Unit tests cover:
uv run pytest tests/ --ignore=tests/integrationpasses. ruff and ty report nothing new.A gantry dry run with
min_runtime="2h"builds a task context of{'priority': 'normal', 'minRuntime': 7200000000000}.A real launch from this branch succeeded: 01M3B0JMJJ7YGT41GB2Q1WCZ0G, commit
fdfebd4.uv run olmo-eval beaker launch -m olmo-2-7b -t arc_easy -o limit=20 -c h100 -G 1 \ --min-runtime 30m -T 1h -w ai2/olmo-eval-debug -B ai2/oe-otherminRuntime: 30m0swithautoResume: true. There is nopreemptiblefield.accuracy:logprobof 0.70.🤖 Generated with Claude Code