Parameter Sweeps
Parameter sweeps let you run multiple configurations with a single command. Sweeps are automatically detected from config files that contain a sweep: section.
Table of Contents
How It Works
Add a
sweep:section to your YAML config with parameter valuesAdd
{placeholder}markers where you want values substitutedRun
srtctl apply -f <config>- sweep mode is auto-detectedsrtctlgenerates and submits one job per parameter combination
Simple Walkthrough
Step 1: Create a sweep config
Step 2: Preview with dry-run
This shows you what will be generated without submitting. Sweep mode is automatically detected from the sweep: section.
Step 3: Submit
This submits 3 separate jobs, one for each concurrency value (128, 256, 512).
Multiple Parameters
Multiple parameters create a Cartesian product:
This generates 4 jobs (2 x 2):
mem=0.85, conc=256
mem=0.85, conc=512
mem=0.90, conc=256
mem=0.90, conc=512
Where Placeholders Can Go
Placeholders work anywhere in the YAML:
Auto-Detection
Sweep configs are automatically detected by the presence of a sweep: section. You don't need to pass --sweep flag:
Tips
Always use
srtctl dry-run -f <config>first to verifyStart with 2-3 values before running large sweeps
Cartesian products grow fast: 3 params x 4 values = 64 jobs
Each job gets a unique name based on parameter values
Last updated