Suite
steerability.evaluation.suite
Inspect task sets runnable against one steered pipeline.
InspectSuite
dataclass
A named set of Inspect tasks evaluated together against one pipeline.
Every arm and every trial evaluated with the same suite scores the identical sample set per
task: explicit sample_ids pass through, and limit otherwise selects the first N samples in
the task's native dataset order. First-N is deterministic across arms, which is what paired
comparison needs; it is a biased estimate of the full-benchmark score.
Tasks with model-graded scorers need a grader model supplied through the task's own arguments
(task_args). The grader must be an explicit, separate model (an API model or a second local
model), never the pipeline under evaluation, since self-grading is circular and grader traffic
would compete with evaluation traffic inside the provider's collator.
Attributes:
| Name | Type | Description |
|---|---|---|
name |
str
|
Namespace key in results (e.g. |
tasks |
tuple[str, ...]
|
Task references (e.g. |
limit |
int | None
|
Per-task sample cap (the first N in dataset order), or None for the full dataset. |
sample_ids |
Mapping[str, tuple] | None
|
Explicit per-task sample selection, keyed by task name; a task with an entry
ignores |
task_args |
Mapping[str, Any]
|
Task arguments forwarded to every task (e.g. a grader model reference). |
generate_overrides |
Mapping[str, Any]
|
|
retry_attempts |
int
|
|
Source code in steerability/evaluation/suite.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | |
generate_overrides = field(default_factory=dict)
class-attribute
instance-attribute
limit = None
class-attribute
instance-attribute
name
instance-attribute
retry_attempts = 3
class-attribute
instance-attribute
sample_ids = None
class-attribute
instance-attribute
task_args = field(default_factory=dict)
class-attribute
instance-attribute
tasks
instance-attribute
run(pipeline, *, log_dir, options=None, base_seed=None, model_name='steering-pipeline', generate_defaults=None, display='none', score=True, model_roles=None)
Run every task in the suite against pipeline through eval_set.
One provider is built per call and discarded when it returns; eval_set retries reuse
the same model object within the call. log_dir must be dedicated to this suite run;
eval_set resumes completed samples from its logs, so re-running with the same log_dir
completes only the missing work. With sample_ids set, each task runs in its own
eval_set call under a per-task subdirectory of log_dir.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pipeline
|
SteeringPipeline
|
The steered pipeline to evaluate. |
required |
log_dir
|
str | Path
|
Directory for the |
required |
options
|
ProviderOptions | None
|
Provider options forwarded to |
None
|
base_seed
|
int | None
|
Seed forwarded to |
None
|
model_name
|
str
|
Bare model name; renders as |
'steering-pipeline'
|
generate_defaults
|
Mapping[str, Any] | None
|
|
None
|
display
|
str
|
Inspect's |
'none'
|
score
|
bool
|
Whether |
True
|
model_roles
|
Mapping[str, str | Model] | None
|
Inspect model roles forwarded to |
None
|
Returns:
| Type | Description |
|---|---|
dict
|
A mapping from task name to a result dict with keys:
|
Raises:
| Type | Description |
|---|---|
RuntimeError
|
If |
Source code in steerability/evaluation/suite.py
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | |