Skip to content

Commit 2be3f3a

Browse files
committed
only export annotations from runs using the demo prompt set, for now
1 parent b60aead commit 2be3f3a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/modelbench/benchmark_runner.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,20 @@ def __init__(self, runner: "BenchmarkRunner"):
235235
self.add_test(t)
236236

237237
def compile_annotations(self) -> list:
238+
238239
annotations = []
239240
for sut_uid, hazards in self.finished_items.items():
240241
for full_hazard_string, items in hazards.items():
241242
try:
242243
test, hazard, locale, prompt_set, version = full_hazard_string.split("-")
243244
except:
244245
hazard = full_hazard_string
246+
prompt_set = "unknown"
247+
# most prompts and annotations can't be shared. Until we have per-prompt shareability info,
248+
# we only export annotations for items from the demo prompt.
249+
# TODO fix this when we have per-prompt shareability info
250+
if prompt_set != "demo":
251+
continue
245252
for item in items: # this is a TestRunItem
246253
for _, annotation in item.annotations.items():
247254
ann = {

0 commit comments

Comments
 (0)