Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
f393cb6
feat(standard): list a dataset's tasks by search and category
pierreleca Nov 23, 2026
8ac9175
feat(standard): save a named set of a dataset's tasks and run it with…
pierreleca Nov 23, 2026
f5df65c
feat(standard): let a benchmark's list name the list it is cut from
pierreleca Nov 23, 2026
e2e42bc
feat(catalogue): browse a dataset's tasks, save task sets and choose …
pierreleca Nov 23, 2026
8066f87
feat(catalogue): tick a task with a click on its row, its whole text …
pierreleca Nov 23, 2026
a7b8bfd
fix(catalogue): let a read-only list of tasks show a task's whole tex…
pierreleca Nov 23, 2026
2b15035
fix(runs): show a job's task set as a cell of its dataset card
pierreleca Nov 24, 2026
3672c66
Merge remote-tracking branch 'origin/main' into feat/task-sets-and-pages
pierreleca Nov 24, 2026
13ba912
docs(standard): shorten the task set docs to one line a rule
pierreleca Nov 24, 2026
266014b
Merge remote-tracking branch 'origin/main' into feat/task-sets-and-pages
pierreleca Nov 25, 2026
f49334d
Merge remote-tracking branch 'origin/main' into feat/task-sets-and-pages
pierreleca Nov 25, 2026
e3e0119
refactor(web): draw the task set parts with the shared classes
pierreleca Nov 25, 2026
02a2ffa
docs(docs): pair the task set pages with their commands
pierreleca Nov 25, 2026
2d13f68
feat(catalogue): list the tasks of any benchmark from its tasks page
pierreleca Nov 25, 2026
6149c4d
fix(catalogue): drop the New task set menu of a benchmark with severa…
pierreleca Nov 25, 2026
079cf3e
fix(catalogue): give the save form's fields the height of its button
pierreleca Nov 25, 2026
c2f0434
fix(catalogue): open the paste box below the row of chosen tasks
pierreleca Nov 25, 2026
b1eb3f6
fix(catalogue): hide the tasks page's count and message lines while e…
pierreleca Nov 25, 2026
791fb83
feat(catalogue): mark GAIA's three levels as cut from All levels
pierreleca Nov 25, 2026
000837e
feat(catalogue): describe GAIA's and Open Telco's questions for their…
pierreleca Nov 25, 2026
fbded30
feat(standard): draw N of a dataset's tasks at random for a task set
pierreleca Nov 25, 2026
638fa62
Merge remote-tracking branch 'origin/main' into feat/task-sets-and-pages
pierreleca Nov 25, 2026
f0a78a8
fix(catalogue): no rule above the chosen tasks while the search is hi…
pierreleca Nov 25, 2026
cb9ccc9
test(standard): keep a listing test's token value out of the key pattern
pierreleca Nov 25, 2026
5f1201a
fix(standard): redact task listing driver secrets
pierreleca Nov 25, 2026
87d66ef
test(standard): pin task samples for two seeds
pierreleca Nov 25, 2026
0d37e99
fix(web): refuse invalid task sample numbers
pierreleca Nov 25, 2026
b6789d7
fix(standard): read a listing driver's stderr whatever its bytes
pierreleca Nov 25, 2026
f459767
fix(standard): redact a listing driver's secret as JSON or a URL hold…
pierreleca Nov 25, 2026
138c814
fix(standard): keep a listing's task texts whole beside its driver's …
pierreleca Nov 25, 2026
b87332a
test(web): keep the page test's token value out of the key pattern
pierreleca Nov 25, 2026
71cdd91
docs(docs): drop the row on refused draw numbers
pierreleca Nov 25, 2026
a21647e
fix(runs): give Save as task set's fields the height of its button
pierreleca Nov 25, 2026
d791d1b
fix(catalogue): hide the tasks list's category block while it is empty
pierreleca Nov 25, 2026
5e0e81c
fix(catalogue): show the tasks page's save bar once a task is chosen
pierreleca Nov 25, 2026
029a9f5
fix(catalogue): keep a task set's version and date on one line
pierreleca Nov 25, 2026
90d9bc6
Merge remote-tracking branch 'origin/main' into feat/task-sets-and-pages
pierreleca Nov 25, 2026
207fc20
refactor(builder): draw Which tasks? from beside the Dataset step
pierreleca Nov 25, 2026
5268a05
fix(standard): write task sets and the tasks listing through the shar…
pierreleca Nov 25, 2026
4da0d0a
Merge remote-tracking branch 'origin/main' into feat/task-sets-and-pages
pierreleca Nov 26, 2026
6ff9dfe
test(standard): name the job's uuid among a plain run's standard keys
pierreleca Nov 26, 2026
d6afa5a
Merge remote-tracking branch 'origin/main' into feat/task-sets-and-pages
pierreleca Nov 26, 2026
f5cb9d5
feat(standard): task sets of several datasets, chosen on one page
aitianshi Nov 26, 2026
0212f59
fix(standard): listings use the Hugging Face mirror, and the review's…
aitianshi Nov 27, 2026
c3ad533
Merge remote-tracking branch 'origin/main' into review/pr352-ui
aitianshi Nov 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion app/nullius/catalogue/benchmarks/gaia/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import json
import os
from pathlib import Path, PurePosixPath
import re
import shutil
import sys
import urllib.request
Expand All @@ -23,6 +24,8 @@
CACHE = UPSTREAM / ".gaia-cache"
ROWS = {}
MARKER = "FINAL ANSWER:"
# a sentence ends at . ? ! before a space, not after an initial or a title (M. Last, St. Thomas), or at a line's end
SENTENCE_END = re.compile(r"(?<![\s.][A-Z][a-z])(?<![\s.][A-Z])[.?!](?=\s)|\n")


def upstream_module(name):
Expand Down Expand Up @@ -95,6 +98,18 @@ def units(dataset, setup=None):
return {"units": list(load())}


def describe(dataset, **_):
"""Each question, titled by its first sentence, and its level, read from the metadata its unit comes from."""
rows = load()
out = {}
for unit in units(dataset)["units"]:
text = rows[unit]["Question"].strip()
end = SENTENCE_END.search(text)
title = text[:end.end()].strip() if end else text
out[unit] = {"title": title, "text": text, "categories": {"level": str(rows[unit]["Level"])}}
return {"units": out}


def attachment(row):
name = row.get("file_name") or ""
path = row.get("file_path") or ""
Expand Down Expand Up @@ -170,7 +185,7 @@ def answer(unit, dir, setup, model, base_url, key, **_):
return {"answer": value, "model": model}


HANDLERS = {"units": units, "setup": setup, "score": score, "oracle": oracle, "answer": answer}
HANDLERS = {"units": units, "describe": describe, "setup": setup, "score": score, "oracle": oracle, "answer": answer}


def main():
Expand Down
9 changes: 9 additions & 0 deletions app/nullius/catalogue/benchmarks/gaia/standard.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"tested_date": "2026-11-06"
},
"driver": {
"describe": true,
"command": [
"{install}/.venv/bin/python",
"{here}/driver.py"
Expand All @@ -39,25 +40,33 @@
{
"id": "gaia-validation-level1",
"label": "Validation \u00b7 Level 1",
"subset_of": "gaia-validation",
"units": 53,
"environment": "data"
},
{
"id": "gaia-validation-level2",
"label": "Validation \u00b7 Level 2",
"subset_of": "gaia-validation",
"units": 86,
"environment": "data"
},
{
"id": "gaia-validation-level3",
"label": "Validation \u00b7 Level 3",
"subset_of": "gaia-validation",
"units": 26,
"environment": "data"
}
],
"units": {
"noun": "question",
"nouns": "questions",
"categories": {
"level": {
"label": "Level"
}
},
"redistribute": false
},
"environments": {
Expand Down
17 changes: 16 additions & 1 deletion app/nullius/catalogue/benchmarks/gsm8k/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
a GSM8K-Platinum problem keeps the number of the test file's problem
it is (the same question, word for word), so a problem has one name
in both datasets and Platinum's numbers have gaps where it removed one
describe - the question as its text, its first sentence as its title; never its answer
setup - the question goes in the prompt; the workspace stays empty
score - the upstream's own extract_answer and is_correct, imported from
grade_school_math/dataset.py at the tested commit ($NULLIUS_UPSTREAM),
Expand All @@ -27,6 +28,7 @@
"""
import json
import os
import re
import sys
import urllib.request

Expand Down Expand Up @@ -63,6 +65,19 @@ def units(dataset, setup=None):
return {"units": list(load())}


SENTENCE_END = re.compile(r"(?<![MD]r\.)(?<!Mrs\.)(?<!Ms\.)(?<!St\.)(?<=[.?!])\s+(?=[A-Z0-9])")


def describe(dataset=None, **_):
out = {}
for unit, problem in load().items():
text = problem["question"]
line = " ".join(text.split())
title = SENTENCE_END.split(line, maxsplit=1)[0]
out[unit] = {"title": title, "text": text}
return {"units": out}


def prompt(unit):
q = load()[unit]["question"]
return (f"Solve this grade-school math word problem. Work it out step by step, then end your reply with "
Expand Down Expand Up @@ -105,7 +120,7 @@ def oracle(unit, dir):
return {"answer": load()[unit]["answer"]}


HANDLERS = {"units": units, "setup": setup, "answer": answer, "score": score, "oracle": oracle}
HANDLERS = {"units": units, "describe": describe, "setup": setup, "answer": answer, "score": score, "oracle": oracle}
for line in sys.stdin:
try:
req = json.loads(line)
Expand Down
1 change: 1 addition & 0 deletions app/nullius/catalogue/benchmarks/gsm8k/standard.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"license": "MIT"
},
"driver": {
"describe": true,
"command": [
"{install}/.venv/bin/python",
"{here}/driver.py"
Expand Down
20 changes: 19 additions & 1 deletion app/nullius/catalogue/benchmarks/humaneval/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

units - the problems' task ids, in the file's order (human_eval/data.py,
read_problems)
describe - the entry point as its title, its function's docstring as its
text (the prompt when it has none)
setup - writes solution.py (the problem's prompt: imports, signature,
docstring) into the workspace and asks for the body
score - the upstream's own check_correctness (human_eval/execution.py) with
Expand Down Expand Up @@ -94,6 +96,22 @@ def units(dataset, setup=None):
return {"units": list(load())}


def docstring(p):
"""The docstring of the problem's function, read from its prompt's syntax; none when it does not parse."""
try:
tree = ast.parse(p["prompt"])
except (SyntaxError, ValueError):
return None
for node in ast.walk(tree):
if isinstance(node, ast.FunctionDef) and node.name == p["entry_point"]:
return ast.get_docstring(node)
return None


def describe(dataset=None, **_):
return {"units": {u: {"title": p["entry_point"], "text": docstring(p) or p["prompt"]} for u, p in load().items()}}


def code_of(text):
"""The code in a reply: its first fenced block, else the reply itself."""
m = FENCE.search(text)
Expand Down Expand Up @@ -230,7 +248,7 @@ def oracle(unit, dir):
return {"answer": ""}


HANDLERS = {"units": units, "setup": setup, "answer": answer, "score": score, "oracle": oracle}
HANDLERS = {"units": units, "describe": describe, "setup": setup, "answer": answer, "score": score, "oracle": oracle}

if __name__ == "__main__": # check_correctness starts a process: where it re-imports this module, nothing is served
for line in sys.stdin:
Expand Down
1 change: 1 addition & 0 deletions app/nullius/catalogue/benchmarks/humaneval/standard.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"license": "MIT"
},
"driver": {
"describe": true,
"command": [
"python3",
"{here}/driver.py"
Expand Down
11 changes: 10 additions & 1 deletion app/nullius/catalogue/benchmarks/locomo/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,15 @@ def units(dataset, setup=None):
return {"units": out}


def describe(dataset, **_):
out = {}
for unit in units(dataset)["units"]:
q = question(unit)[1]
text = q["question"]
out[unit] = {"title": text, "text": text, "categories": {"category": str(q["category"])}}
return {"units": out}


# What goes into the memory for each session: the run's ``rag_mode`` option, LoCoMo's --rag-mode - dialog
# (the conversation), or the authors' own released extractions, observation (facts per speaker) and
# summary (one per session). How a fact or a summary is put as a turn is ours: a fact is its speaker's
Expand Down Expand Up @@ -288,7 +297,7 @@ def oracle(unit, dir):
return {"answer": gold(q)}


HANDLERS = {"units": units, "setup": setup, "produce": produce, "score": score, "oracle": oracle, "answer": answer}
HANDLERS = {"describe": describe, "units": units, "setup": setup, "produce": produce, "score": score, "oracle": oracle, "answer": answer}
for line in sys.stdin:
try:
req = json.loads(line)
Expand Down
1 change: 1 addition & 0 deletions app/nullius/catalogue/benchmarks/locomo/standard.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"license": "CC-BY-NC-4.0"
},
"driver": {
"describe": true,
"command": [
"{install}/.venv/bin/python",
"{here}/driver.py"
Expand Down
14 changes: 13 additions & 1 deletion app/nullius/catalogue/benchmarks/longmemeval/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,18 @@ def units(dataset, setup=None):
return {"units": [q for q in index() if kind == "all" or TYPES[q] == kind]}


def describe(dataset, **_):
out = {}
for unit in units(dataset)["units"]:
q = entry(unit)
# questions are relative to their date; an abstention question's id ends _abs
date = q.get("question_date")
out[unit] = {"title": q["question"], "text": f"{q['question']}\n\nQuestion date: {date}" if date else q["question"],
"categories": {"question_type": str(q["question_type"]),
"abstention": "yes" if unit.endswith("_abs") else "no"}}
return {"units": out}


def setup(unit, dir):
q = entry(unit)
dates = q.get("haystack_dates") or [""] * len(q["haystack_session_ids"])
Expand Down Expand Up @@ -373,7 +385,7 @@ def score_setup(unit, dir, judge):
("expansion_join", "separate"), ("gen_length", "upstream"))}}}


HANDLERS = {"units": units, "setup": setup, "produce": produce, "score": score, "oracle": oracle, "answer": answer}
HANDLERS = {"describe": describe, "units": units, "setup": setup, "produce": produce, "score": score, "oracle": oracle, "answer": answer}
for line in sys.stdin:
try:
req = json.loads(line)
Expand Down
19 changes: 18 additions & 1 deletion app/nullius/catalogue/benchmarks/longmemeval/standard.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"license": "MIT"
},
"driver": {
"describe": true,
"command": [
"{install}/.venv/bin/python",
"{here}/driver.py"
Expand Down Expand Up @@ -87,7 +88,23 @@
],
"units": {
"noun": "question",
"nouns": "questions"
"nouns": "questions",
"categories": {
"question_type": {
"label": "Question type",
"names": {
"knowledge-update": "Knowledge update",
"temporal-reasoning": "Temporal reasoning",
"multi-session": "Multi-session",
"single-session-user": "Single-session user",
"single-session-assistant": "Single-session assistant",
"single-session-preference": "Single-session preference"
}
},
"abstention": {
"label": "Abstention"
}
}
},
"controls": {
"nop": {
Expand Down
42 changes: 41 additions & 1 deletion app/nullius/catalogue/benchmarks/open-telco/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
else the sample's place in the file (1, 2, ...), zero-padded. A filter
option (TeleQnA's subject, ORANBench's difficulty, 6G-Bench's task)
runs the task with that argument; its samples keep their numbers
describe - each unit's question as the sample holds it (3GPP TSG's title its
document's text, past the classification prompt), and as its categories
the value of each filter its task takes, from the sample's metadata, and
TeleMath's category, from the row the task reads
setup - the task on the unit with a model that replies nothing: what the
solver asks it (TeleMath's system prompt, then the question; the
multiple-choice template with its lettered choices) is the prompt
Expand Down Expand Up @@ -45,6 +49,8 @@
WORK = os.getcwd() # the job's driver folder, shared by its drivers
FILTERS = ("subject", "difficulty", "task_id") # a task argument that picks samples
SCORING = ("eval_type",) # a task argument of the scorer
ROW_FIELDS = {"telemath": ("category",)} # a row's field the task leaves out of its samples
DOCUMENT = "###TEXT:" # 3GPP TSG: the document's text follows the prompt
# The reply each task's prompt asks for; a multiple-choice task's is 'ANSWER: <letter>'.
FORMATS = {"telemath": "\\boxed{%s}", "telelogs": "\\boxed{%s}", "three_gpp": '{"WORKING GROUP": "%s"}'}

Expand Down Expand Up @@ -184,6 +190,40 @@ def units(dataset, setup=None):
return {"units": out}


def text_of(s):
"""A sample's question: its input, or the text of its input's messages."""
if isinstance(s.input, str):
return s.input
return "\n\n".join(str(getattr(m, "text", "") or "") for m in s.input or [])


def rows():
"""The dataset's rows as its file holds them, in the samples' order: read by the
task's own call (Inspect's hf_dataset, from the cache the task's load wrote)."""
with locked(os.path.join(WORK, "open-telco.lock")), quiet():
from inspect_ai.dataset import Sample, hf_dataset
got = hf_dataset(ROOT, name=DATASET.rsplit("-", 1)[0], split=PARAMS["split"].default,
sample_fields=lambda r: Sample(input="", metadata=r))
return [s.metadata for s in got]


def describe(dataset, **_):
every = numbered()
place = {u: i for i, u in enumerate(every)}
fields = ROW_FIELDS.get(NAME, ())
row = rows() if fields else []
out = {}
for unit in units(dataset)["units"]:
s = every[unit]
meta = {**(s.metadata or {}), **{n: row[place[unit]].get(n) for n in fields}}
text = text_of(s)
title = text.split(DOCUMENT, 1)[1].strip().removeprefix("{").removesuffix("}") if DOCUMENT in text else text
out[unit] = {"title": title, "text": text,
"categories": {n: str(meta[n]) for n in (*FILTERS, *fields)
if (n in PARAMS or n in fields) and meta.get(n) not in (None, "")}}
return {"units": out}


def sample_id(unit):
return unit if isinstance(numbered()[unit].id, str) else int(unit)

Expand Down Expand Up @@ -238,7 +278,7 @@ def oracle(unit, dir):
return {"answer": f"ANSWER: {s.target}" if s.choices else FORMATS[NAME] % s.target}


HANDLERS = {"units": units, "setup": setup, "answer": answer, "score": score, "oracle": oracle}
HANDLERS = {"units": units, "describe": describe, "setup": setup, "answer": answer, "score": score, "oracle": oracle}


def main():
Expand Down
Loading
Loading