Add [[ablation]] sweep syntax for eval TOML configs#993
Open
Conversation
Expand cartesian products of parameter values into eval configs automatically. Supports top-level sweep keys and env_args sweep keys, fixed env_args alongside swept ones (with overlap guard), multiple independent ablation blocks, and coexistence with [[eval]]. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Shallow copy of fixed dict caused all expanded configs to share the same env_args reference. Now dict values are copied per config. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Expand cartesian products of parameter values into eval configs automatically. Supports top-level sweep keys and env_args sweep keys, fixed env_args alongside swept ones (with overlap guard), multiple independent ablation blocks, and coexistence with [[eval]].
Description
Type of Change
Testing
uv run pytestlocally.Checklist
Note
Medium Risk
Touches core config-loading logic used by
prime eval, so schema/validation mistakes could break existing TOML workflows, though changes are well-scoped and covered by new tests.Overview
Adds support for
[[ablation]]blocks in eval TOML configs, expanding a cartesian product of[ablation.sweep](and[ablation.sweep.env_args]) values into multiple concrete eval configs alongside existing[[eval]]entries.Updates
load_toml_configto parse/validateablationsections, apply global defaults to generated configs, guard against invalid fields and overlapping fixed vs sweptenv_args, and continue resolvingendpoints_pathrelative to the config. Documentation and the eval skill guide now describe the new syntax, and the test suite adds comprehensive coverage for expansion behavior and error cases.Written by Cursor Bugbot for commit 4d8dd11. This will update automatically on new commits. Configure here.