harbor sweeps command group provides utilities for running parameter sweeps and iterative refinement experiments.
Commands
harbor sweeps run
Run successive sweeps, dropping tasks with at least one success each sweep.Options
Path
required
Job config file in JSON or YAML format.
int
Max number of sweeps to run. Default:
3int
Trials per task per sweep. Default:
2string
Optional generic hint string to pass to agent kwargs.
Path
JSON file mapping task name to hint string. Allows per-task hints.
string
Repo to push DatasetDict with success/failure splits.
string
Repo to push ONLY successes when using
--export-separate.string
Repo to push ONLY failures when using
--export-separate.boolean
Push exported datasets to Hugging Face Hub. Default:
--no-pushboolean
Push one repo with splits vs two separate repos. Default:
--export-splitsExamples
Run 3 sweeps with 2 trials per task:How It Works
- Sweep 1: Run all tasks with N trials each
- Filter: Remove tasks with at least one success (reward > 0.0)
- Sweep 2: Run remaining tasks with N trials each
- Filter: Remove tasks with at least one success
- Repeat: Continue until max sweeps reached or all tasks succeed
- Export: Optionally export all traces to Hugging Face
Example Workflow
Given 10 tasks and 2 trials per task:Configuration File
The config file should be a standardJobConfig (same as harbor run):
n_attempts with --trials-per-task.
Hints System
Generic Hint
Pass a hint to all agents:hint to each agent’s kwargs:
Per-Task Hints
Provide specific hints for each task: hints.json:Export Options
Export as Splits
Export success and failure traces to one repo with splits:Export Separately
Export to two separate repos:myorg/sweep-successes- only successful tracesmyorg/sweep-failures- only failed traces
Use Cases
Progressive Difficulty
Focus computational resources on harder tasks:Iterative Refinement
Provide increasingly specific hints across sweeps:Data Collection
Collect diverse success and failure examples:Curriculum Learning
Generate training data with varying difficulty:Advanced Examples
Multi-Agent Sweeps
Compare multiple agents across sweeps:Cloud Execution
Run sweeps on cloud infrastructure:Adaptive Hints
Generate hints based on previous sweep failures:Job Directory Structure
Sweeps create multiple job directories:See Also
- harbor run - Run standard evaluation jobs
- harbor jobs - Manage jobs
- harbor traces - Export trajectories