Repository navigation
feat(omniscience): switch the benchmark to the AA-Omniscience v1.1 public set - #5891
Conversation
…blic set Artificial Analysis now reports AA-Omniscience v1.1. Its public set is a separate Hugging Face dataset, ArtificialAnalysis/AA-Omniscience-Public-v1.1: 300 questions in the test split, none of them from the v1 public set, with a subtopic column and no topic column. - prepare.py loads that dataset at revision 1f9cbcec, checks that it has 300 rows, and writes the dataset version and revision into each row. Its is_prepared_data_current rejects a cached file from any other revision, so a cached v1 file is prepared again. prepare() also removes the metrics sidecars of the rows it replaces, so the next collation does not report a conflict. - The answer prompt names the subtopic, as Artificial Analysis's prompt does. - The omniscience task data declares subtopic and the version and revision fields; topic stays for rows prepared from v1. The server examples use subtopic. - tests/unit_tests/benchmarks/test_omniscience_prepare.py covers the pin, the cache check, the sidecars and the task-data schema. v1.1 scores are not comparable with v1 scores. Signed-off-by: Mahan Fathi <[email protected]>
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP WITH CARE — one RISK: the migration adds parallel task-data and runtime declarations without a check that keeps them aligned. I found no demonstrated failure in the current v1.1 runtime path.
I inspected all 13 changed files and traced the affected preparation, cache, collation, prompt, request, and verification paths. The revision-aware cache check and metrics-sidecar cleanup match their callers. Validation was source-only; I couldn't independently run tests, reproduce the reported rollouts, or inspect the external Hugging Face revision.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
| lines = _prepare(tmp_path).read_text(encoding="utf-8").splitlines() | ||
| adapter = load_task_data_schema(find_server_dir("omniscience")) | ||
|
|
||
| report = validate_jsonl_rows("omniscience", adapter, "omniscience_benchmark.jsonl", lines) |
There was a problem hiding this comment.
RISK — Enforce agreement with the runtime request declaration
Could you extend this check to cover the separately declared OmniscienceRunRequest? This test validates prepared rows only against TaskData. For example, changing the runtime subtopic annotation to Optional[int] leaves this test passing, while newly prepared subtopic="Biology" rows fail runtime validation. The existing correct-answer server case still supplies only the old topic shape. This is a missing drift guard required by the review rubric, not a demonstrated failure of today's runtime.
The smallest correction is focused enforcement for the duplicated fields. The following addition to this test checks both declarations, including removal of a field, without requiring a shared-model refactor. It is a suggested test, not executed code; please verify it before adopting it:
from resources_servers.omniscience.app import OmniscienceRunRequest
from resources_servers.omniscience.task_data import TaskData
for name in ("id", "domain", "subtopic", "topic", "question", "expected_answer"):
schema_field = TaskData.model_fields[name]
wire_field = OmniscienceRunRequest.model_fields[name]
assert wire_field.annotation == schema_field.annotation
assert wire_field.is_required() == schema_field.is_required()
assert wire_field.default == schema_field.default
assert TaskData.model_config["extra"] == OmniscienceRunRequest.model_config["extra"] == "allow"Preserve the distinct supported shapes: v1.1 rows carry subtopic and the two provenance strings; historical v1 rows carry topic without those new fields. The provenance fields intentionally pass through the runtime as allowed extras, so don't require identical full field sets or make subtopic mandatory for legacy requests.
Acceptance checks, proposed and not run: changing or removing subtopic in either declaration must fail the agreement test; changing either unknown-field policy must fail it. Parse one actual _prepare() row through OmniscienceRunRequest with responses_create_params={"input": []} and assert that its subtopic, version, and revision survive model_dump(). Parse a v1 row with topic="History" and no subtopic, plus an arbitrary extra field, and assert that both values survive. Retain the existing clean prepared-row validation and v1 correct-answer reward assertion.
|
Thanks for the review. I agree that That test belongs in a follow-up PR rather than here, so that this PR's head stays as it is while it is vetted and reviewed. The current path is covered:
|
mpatel31415
left a comment
There was a problem hiding this comment.
If v1 is not needed for backward compatibility I'm ok with merging it.
|
/ok to test df7a4a1 |
|
/ok to test 27a294c |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/43400629718 |
…ure (NVIDIA-NeMo#6541) * test(omniscience): cover the chat judge path, empty judge replies and the metric formulas The shipped tests only exercise the Responses judge path, while resources_servers/omniscience/configs/omniscience.yaml selects Chat Completions. They also leave the metric formulas and two failure paths unpinned. These tests add: - the Chat Completions judge request: endpoint, max_tokens, temperature and top_p come from the config, and the prompt carries the question; - an empty judge reply raises JudgeError instead of being graded; - an unclosed <thinking> block is an empty answer, as <think> already is; - compute_metrics() and the key metrics against the AA-Omniscience formulas: index = 100 * (correct - incorrect) / n, hallucination = 100 * incorrect / (n - correct). Test only. No production code changes. Signed-off-by: Mahan Fathi <[email protected]> Signed-off-by: plaszkiewicz <[email protected]> * fix(omniscience): treat a judge reply without a grade as a judge failure A judge reply with no unambiguous grade was counted as INCORRECT (index -1) and never graded again, because omniscience does not take part in the end-of-run re-judge pass. It now raises JudgeError, so the row is masked and graded again from its saved answer, like an empty judge reply. The parser follow-ups from the NVIDIA-NeMo#5783 review: - an explicit verdict counts only when the rest of its line is empty, closing punctuation or a short reason (because, since, based on, -, (); - Grade and Verdict need a separator, as Answer already does; - leftover think tags are checked before the last-line rule; - ':' is no longer a wrapper of the last line (a lone "B:" is not a grade); - the Chat Completions judge path strips think blocks like the Responses path. Tests: the reply shapes listed in the NVIDIA-NeMo#5783 review, the two surviving mutants (upper-case think tag, label without separator), a Chat Completions judge reply with a think block, a judge reply without a grade, and the TaskData/OmniscienceRunRequest field agreement asked for in NVIDIA-NeMo#5891. The Chat Completions judge request, the unclosed <thinking> block and the index and hallucination formulas are covered by the previous commit. The score-triage note now describes the parser as it is. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Sonnet 5.5 <[email protected]> (cherry picked from commit 56e1b2f24aacf6928239d59454ed1aabc3e89e5b) Signed-off-by: plaszkiewicz <[email protected]> * fix(omniscience): reject a reply whose skipped verdict line contradicts the grade A verdict line with a tail the parser does not accept still does not count, but its letters must agree with the grade the other lines give. Patch by Mahan Fathi from the NVIDIA-NeMo#6541 review (request 1). Co-authored-by: Mahan Fathi <[email protected]> Signed-off-by: FrontierJam Agent <[email protected]> Signed-off-by: plaszkiewicz <[email protected]> * test(omniscience): cover verdict tails on later clauses and lines, check TaskData both ways Review of NVIDIA-NeMo#6541, requests 2 and 3: the tail-rule rows and the JudgeError message match from Mahan Fathi, and the two-way TaskData agreement test from the review bot. Signed-off-by: FrontierJam Agent <[email protected]> Signed-off-by: plaszkiewicz <[email protected]> * docs(omniscience): correct the judge_failed note in benchmark-notes Review of NVIDIA-NeMo#6541, request 4: last-line precedence, where the rejected reply is kept, and what happens after the second ask. Signed-off-by: FrontierJam Agent <[email protected]> Signed-off-by: plaszkiewicz <[email protected]> * feat(omniscience): make GPT-5.6 Luna (medium) the default judge openai/gpt-oss-20b, the default judge, was retired on integrate.api.nvidia.com on 2026-11-18 (HTTP 410), so the default config failed on every row. The default is now the judge request EFB uses: Chat Completions, reasoning_effort medium and a 32,768-token judge output cap, on inference-api.nvidia.com with JUDGE_API_KEY. omniscience_judge_base_url, omniscience_judge_api_key and omniscience_judge_model_name select another endpoint, key or model, as in nemotron_recipes/super-3.5. The Nemotron 3.5 Super eval container keeps its Gemini judge request unchanged. Requested by Mahan Fathi in the NVIDIA-NeMo#6541 review. Signed-off-by: FrontierJam Agent <[email protected]> Signed-off-by: plaszkiewicz <[email protected]> * chore(omniscience): drop explanatory comments added in the follow-up Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: plaszkiewicz <[email protected]> * fix(omniscience): keep the Super 3.5 core batch judge request unchanged The core batch config also loads the omniscience benchmark config with its Gemini judge. Drop the Luna default's extra_body there and keep the 2048-token cap, as the eval container config does. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: plaszkiewicz <[email protected]> --------- Signed-off-by: Mahan Fathi <[email protected]> Signed-off-by: plaszkiewicz <[email protected]> Signed-off-by: FrontierJam Agent <[email protected]> Co-authored-by: Mahan Fathi <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
Why this is needed: Artificial Analysis has moved to AA-Omniscience v1.1
Since 2026-10-27 Artificial Analysis (AA) scores models on AA-Omniscience v1.1. Gym's
omnisciencebenchmark still runs the v1 public set, so its scores are not directly comparable with AA's current results. This PR moves the benchmark to the v1.1 public set.There is no separate issue. #5022 pinned v1 and said that a future dataset version needs "an explicit revision bump or a separate variant". This PR takes the first option: it replaces v1 and adds no v1 variant, because AA's current results are v1.1. To run v1, use a commit before this PR. After it,
gym eval prepare --benchmark omnisciencefollowed bygym eval run --benchmark omnisciencemeasures v1.1.This PR and #5783 (the judge-grade parser fix) change different parts of
resources_servers/omniscience/app.py. They merge cleanly in either order.What changes
This PR switches the
omnisciencebenchmark from AA-Omniscience v1 to v1.1.prepare.pyloadsArtificialAnalysis/AA-Omniscience-Public-v1.1at revision1f9cbcec(splittest, 300 questions). This replacesArtificialAnalysis/AA-Omniscience-Publicate4883edb(v1, 600 questions). It also:aa_omniscience_versionandaa_omniscience_dataset_revisioninto every row.is_prepared_data_currentaccepts a cached file only if it holds 300 rows from this revision. Souse_cached_prepared_benchmarks=trueprepares a cached v1 file again instead of silently reusing it.omniscience_benchmark_metrics.jsonnext to the prepared rows, and it stops with a conflict when that file does not describe the rows.prepare()now deletes that file, andomniscience_benchmark_metrics_conflict.json, when it rewrites the rows. Without this, the first collation after the switch stops on the v1 metrics file.{subtopic}instead of{topic}, matching AA's answer prompt. v1.1 has notopiccolumn.subtopicand the version and revision fields, andOmniscienceRunRequestacceptssubtopic.topicstays for rows prepared from v1.data/example.jsonlanddata/example_metrics.jsonnow usesubtopic.data/example_rollouts.jsonlis unchanged.The default judge does not change: it stays
openai/gpt-oss-20b. AA grades v1.1 with GPT-5.6 Luna at medium reasoning effort, so a score is comparable with AA's only when that judge is configured.Compatibility and benchmark results
benchmarks/omniscience/config.yaml, such asbenchmarks/nemotron_3.5_super/core_text.yaml, now measure v1.1.nemotron_recipespin their Gym commit by default, so they keep measuring v1.prompt_configthat still uses{topic}fails on v1.1 rows with a missing-field error. Use{subtopic}.gym eval prepare --benchmark omniscienceagain.gym eval rundoes not prepare data: it reads the file on disk. On a v1 file it stops withPrompt template references field 'subtopic'. Withuse_cached_prepared_benchmarks=true,gym eval preparedoes not reuse a cached v1 file: it downloads the v1.1 set. Offline runs need a file prepared from this revision staged first.Validation
All checks ran on a compute node, on the pushed head
9c0d1a9dunless a merge tree is named.pytest tests/unit_tests/benchmarks/test_omniscience_prepare.py: 6 passed. These are the new tests. They check:pytest resources_servers/omniscience/tests: 39 passed.gym env test --resources-server omniscience: 39 passed.pytest tests/unit_tests/environment/test_benchmarks.py: 85 passed.gym dataset collate ... +mode=example_validation): the recomputedexample_metrics.jsonis byte-identical to the committed one, with no conflict.prepare()from Hugging Face:710938e6,gym eval prepare --benchmark omnisciencewrote the 600 v1 rows, andgym dataset collate "+config_paths=[benchmarks/omniscience/config.yaml]" +mode=train_preparation +output_dirpath=<dir>wrote their metrics file (4,800 examples: 600 questions x 8 repeats).gym eval prepare --benchmark omniscience +use_cached_prepared_benchmarks=true. It prepared the data again (300 v1.1 rows) and removed the v1 metrics file.Number of examples: 4800 != 2400). This is the failure that deleting the file prevents.ruff check,ruff format --checkandpre-commit run --all-files: passed.detect-secrets-hookwith the repo baseline, as CI runs it): passed. As a control, the same test file without its allowlist comment is flagged.test_public_api_facades.py,test_import_linter_coverage.py,test_moved_paths.py,test_packaging_paths.py): 930 passed.tests/unit_testssuite, run twice at the head and twice at its base710938e6: the head has no failure that the base does not have, and it passes the 6 new tests. In the container I used, the same 70 tests fail and the same 7 error on both. Most are sandbox tests. The rest are orchestration, data, export, metrics, agent and telemetry tests, some of which cannot be imported in that container. None is in this benchmark. CI is the reference for the full suite.main(atad910933): no conflicts. On the merged tree the 6 new tests pass, and so do the resources server tests (39), the import and layout tests (945) andtest_benchmarks.py(85).main(at670b6255) and fix(omniscience): parse judge grade from unambiguous tokens only #5783 at its headd34daec7, which changes the same server file: no conflicts, in either order. On that tree the 6 new tests pass, and so do the resources server tests (113), the import and layout tests (945) andtest_benchmarks.py(85).mainat670b6255+ fix(omniscience): parse judge grade from unambiguous tokens only #5783 + this PR). With only the 600 v1 rows on disk (prepared at710938e6),gym eval runstops with the missing-field error forsubtopic.gym eval prepare --benchmark omnisciencethen writes the v1.1 rows.CI has run DCO, lint, the copyright check and the secrets detector: all pass. The test workflows have not started yet. The head commit is not signed, so they need
/ok to test 9c0d1a9dd580b8c1deb665291e1adb224e794e3bfrom a qualified NVIDIA-NeMo member.Rollout evidence
Real rollouts with this PR's dataset, answer prompt and resources server. The policy was Nemotron 3.5 Lightning on a hosted endpoint, with thinking on, temperature 1.0 and top_p 0.95. The judge was GPT-5.6 Luna at medium reasoning effort, the grader AA uses for v1.1. The default judge (
openai/gpt-oss-20b) was not run on v1.1; this PR does not change the judge path.Smoke at this PR's head.
gym eval prepare --benchmark omniscience, thengym eval run --benchmark omniscience --model-type vllm_model --split benchmark --limit 12 --num-repeats 1, on a checkout of9c0d1a9d.genrm_modelpointed at GPT-5.6 Luna withextra_body: {reasoning_effort: medium}, andjudge_responses_create_params.max_output_tokens=32768(the default is 2,048).vllm_modelserver:chat_template_kwargs={enable_thinking: true},extra_body={skip_special_tokens: false}andsequential_reasoning_allowed=false.Smoke together with #5783. The same commands and overrides on
main(670b6255) + #5783 (d34daec7) + this PR.Full run.
gym eval run --benchmark omniscienceon all 300 questions with 10 repeats.git patch-id) on a different base commit.prepare.py, the answer prompt, the manifest, the task data, and the server's code, config, judge prompt and example data are byte-identical to this PR's.benchmarks/omniscience/config.yamldiffers in the judge only: it sets GPT-5.6 Luna withreasoning_effort: mediumand 32,768 judge output tokens, the same values as the overrides in the smoke above.overwrite_metrics_conflicts=true.AA's figures are as of 2026-11-09. The first AA row is the leaderboard figure. The second is from the "Public vs. Private Questions" chart on AA's AA-Omniscience page. Index = 100 x (correct - incorrect) / questions. Hallucination rate = incorrect / (questions - correct).