marin-taskcompendium 0.2.282.dev43906453060__tar.gz → 0.2.284.dev43909614052__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/PKG-INFO +6 -6
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/pyproject.toml +6 -6
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/judge_prompts.py +106 -2
- marin_taskcompendium-0.2.284.dev43909614052/src/taskcompendium/importers/evalchemy/simpleqa.py +91 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_evalchemy_judged.py +34 -2
- marin_taskcompendium-0.2.282.dev43906453060/src/taskcompendium/importers/evalchemy/simpleqa.py +0 -52
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/.gitignore +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/README.md +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/__init__.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/chat.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/convert/__init__.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/convert/answers.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/convert/code.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/convert/delivery.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/convert/evaluation_jee.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/convert/json_schema.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/convert/nemotron_ultra.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/convert/pi_trajectory.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/convert/preference.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/convert/script_grader.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/convert/structure_closure.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/convert/tasks.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/direct_chat.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/ejection.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/evaluation/__init__.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/evaluation/corpus.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/evaluation/metrics.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/evaluation/response.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/evaluation/selection.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/evaluation/spec.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/examples/__init__.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/examples/ejection.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/fetch.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/grader.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/grading.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/grading_result.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/harbor/__init__.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/harbor/compare.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/harbor/records.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/harbor/snapshots.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/identity.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/__init__.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/__init__.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/assets/NOTICE.txt +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/assets/checkpoint_prompts.json +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/assets/code_protocol.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/assets/crux_input.txt +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/assets/crux_output.txt +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/assets/lm-evaluation-harness-MIT.txt +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/assets/python_prepare.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/assets/simpleqa.LICENSE +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/code.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/commonsense.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/financebench.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/grader.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/instructions.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/long_context.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/math.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/reasoning.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/__init__.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/amc.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/choices.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/harness_generation.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/ifbench/VENDORED.md +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/ifbench/__init__.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/ifbench/instructions.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/ifbench/instructions_registry.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/ifbench/instructions_util.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/ifeval/VENDORED.md +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/ifeval/__init__.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/ifeval/instructions.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/ifeval/instructions_registry.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/ifeval/instructions_util.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/instruction_spec.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/instructions.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/jee.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/lm-evaluation-harness-MIT.txt +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/long_context.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/main.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/math.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/minerva.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/nupa.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/nupa_preparation.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evalchemy/scorers/olympiad.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evaluation_harness.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/evaluation_nupa.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/fewshot.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/nemo_predicted_action.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/importers/swe.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/models.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/README.md +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/__init__.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/assessment.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/assessment_review.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/audit_schema.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/chat_requests.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/controls.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/conversion.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/curriculum/__init__.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/curriculum/alignment.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/curriculum/coverage.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/curriculum/embedding.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/curriculum/models.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/curriculum/task_alignment.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/environment_inventory.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/evaluation.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/execution_telemetry.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/filtering.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/fingerprints.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/inputs.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/models.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/query_cache.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/review.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/review_requests.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/sampling.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/semantics.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/shard_outputs.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/source_processing.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/source_quality.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/source_verification.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/sources.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/stages.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/transforms.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/pipeline/verification.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/runtime/__init__.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/runtime/environment.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/runtime/episode.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/runtime/grading.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/runtime/local.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/runtime/models.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/runtime/output_capture.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/runtime/resources.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/runtime/shell.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/runtime/staging.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/runtime/task_grading.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/src/taskcompendium/submission.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/conftest.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/fixtures/nemo/predicted-action.json +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/fixtures/nemo/predicted-action.provenance.json +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/fixtures/review/stack_pytest_long_evidence.json +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/pipeline_stages.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_answer_formats.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_assessment.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_chat_requests.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_chat_review.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_checkpoint_harness.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_controls.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_conversion.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_convert_answers.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_convert_json_schema.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_convert_nemotron_ultra.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_convert_preference.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_convert_script_grader.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_convert_structure_closure.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_curriculum_coverage.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_environment.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_evalchemy_code.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_evalchemy_instructions.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_evalchemy_jee.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_evalchemy_math.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_evalchemy_nupa.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_evaluation.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_evaluation_response.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_execution_telemetry.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_grader_package.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_harbor_compare.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_local_runtime.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_multiple_choice_verifier.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_nemo_predicted_action.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_output_capture.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_pipeline.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_review_evidence.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_runtime.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_schema.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_script_grader.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_source_processing.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_source_quality.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_source_verification.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_submission_grading.py +0 -0
- {marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/tests/test_task_embeddings.py +0 -0
{marin_taskcompendium-0.2.282.dev43906453060 → marin_taskcompendium-0.2.284.dev43909614052}/PKG-INFO
RENAMED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: marin-taskcompendium
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.284.dev43909614052
|
|
4
4
|
Summary: Semantic task contracts, submission extraction, and shared grading
|
|
5
5
|
Requires-Python: <3.14,>=3.12
|
|
6
|
-
Requires-Dist: marin-rigging==0.2.
|
|
7
|
-
Requires-Dist: marin-shellbox==0.2.
|
|
8
|
-
Requires-Dist: marin-verifyit[judge,math,reasoning-gym,schema]==0.2.
|
|
6
|
+
Requires-Dist: marin-rigging==0.2.284.dev43909614052
|
|
7
|
+
Requires-Dist: marin-shellbox==0.2.284.dev43909614052
|
|
8
|
+
Requires-Dist: marin-verifyit[judge,math,reasoning-gym,schema]==0.2.284.dev43909614052
|
|
9
9
|
Requires-Dist: pydantic>=2.0
|
|
10
10
|
Requires-Dist: tomlkit>=0.13
|
|
11
11
|
Provides-Extra: pipeline
|
|
12
12
|
Requires-Dist: datasets<6,>=5.0.1; extra == 'pipeline'
|
|
13
13
|
Requires-Dist: ijson>=3.3; extra == 'pipeline'
|
|
14
|
-
Requires-Dist: marin-finestore==0.2.
|
|
15
|
-
Requires-Dist: marin-zephyr==0.2.
|
|
14
|
+
Requires-Dist: marin-finestore==0.2.284.dev43909614052; extra == 'pipeline'
|
|
15
|
+
Requires-Dist: marin-zephyr==0.2.284.dev43909614052; extra == 'pipeline'
|
|
16
16
|
Requires-Dist: numpy>=1.26; extra == 'pipeline'
|
|
17
17
|
Requires-Dist: pyarrow>=15.0; extra == 'pipeline'
|
|
18
18
|
Requires-Dist: tiktoken>=0.8; extra == 'pipeline'
|
|
@@ -4,14 +4,14 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "marin-taskcompendium"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.284.dev43909614052"
|
|
8
8
|
description = "Semantic task contracts, submission extraction, and shared grading"
|
|
9
9
|
requires-python = ">=3.12,<3.14"
|
|
10
10
|
dependencies = [
|
|
11
|
-
"marin-rigging==0.2.
|
|
11
|
+
"marin-rigging==0.2.284.dev43909614052",
|
|
12
12
|
"pydantic>=2.0",
|
|
13
|
-
"marin-verifyit[judge,math,reasoning-gym,schema]==0.2.
|
|
14
|
-
"marin-shellbox==0.2.
|
|
13
|
+
"marin-verifyit[judge,math,reasoning-gym,schema]==0.2.284.dev43909614052",
|
|
14
|
+
"marin-shellbox==0.2.284.dev43909614052",
|
|
15
15
|
"tomlkit>=0.13",
|
|
16
16
|
]
|
|
17
17
|
|
|
@@ -20,8 +20,8 @@ pipeline = [
|
|
|
20
20
|
"ijson>=3.3",
|
|
21
21
|
"tiktoken>=0.8",
|
|
22
22
|
"datasets>=5.0.1,<6",
|
|
23
|
-
"marin-zephyr==0.2.
|
|
24
|
-
"marin-finestore==0.2.
|
|
23
|
+
"marin-zephyr==0.2.284.dev43909614052",
|
|
24
|
+
"marin-finestore==0.2.284.dev43909614052",
|
|
25
25
|
"numpy>=1.26",
|
|
26
26
|
"pyarrow>=15.0",
|
|
27
27
|
]
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
"""Original Evalchemy classification prompts, prepared for Verifyit's labels rubric.
|
|
5
5
|
|
|
6
6
|
SimpleQA's prompt is from OpenAI simple-evals (MIT); its license is retained in
|
|
7
|
-
`assets/simpleqa.LICENSE`.
|
|
8
|
-
protocol.
|
|
7
|
+
`assets/simpleqa.LICENSE`. SimpleQA Verified's prompt is from its paper (CC BY 4.0).
|
|
8
|
+
FinanceBench uses Marin's answer-equivalence protocol. Each calls the judge,
|
|
9
|
+
including empty and exact candidates.
|
|
9
10
|
"""
|
|
10
11
|
|
|
11
12
|
import json
|
|
@@ -91,6 +92,96 @@ C: NOT_ATTEMPTED
|
|
|
91
92
|
|
|
92
93
|
Just return the letters "A", "B", or "C", with no text around it.""" # noqa: E501 - exact upstream prompt
|
|
93
94
|
|
|
95
|
+
# Verbatim from Appendix A of "SimpleQA Verified: A Reliable Factuality Benchmark to Measure Parametric
|
|
96
|
+
# Knowledge" by Lukas Haas, Gal Yona, Giovanni D'Antonio, Sasha Goldshtein, and Dipanjan Das (Google
|
|
97
|
+
# DeepMind), https://arxiv.org/abs/2509.07968, licensed under CC BY 4.0
|
|
98
|
+
# (https://creativecommons.org/licenses/by/4.0/). Whitespace, including the two-space indentation,
|
|
99
|
+
# follows version 9 of the authors' Kaggle starter notebook, which backs the leaderboard.
|
|
100
|
+
SIMPLEQA_VERIFIED_GRADER_TEMPLATE = """Your job is to look at a question, a gold target, and a predicted answer, and then assign a grade of either ["CORRECT", "INCORRECT", "NOT_ATTEMPTED"].
|
|
101
|
+
First, I will give examples of each grade, and then you will grade a new example.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
The following are examples of CORRECT predicted answers.
|
|
105
|
+
```
|
|
106
|
+
Question: What are the names of Barack Obama's children?
|
|
107
|
+
Gold target: Malia Obama and Sasha Obama
|
|
108
|
+
Predicted answer 1: sasha and malia obama
|
|
109
|
+
Predicted answer 2: most people would say Malia and Sasha, but I'm not sure and would have to double check
|
|
110
|
+
Predicted answer 3: Barack Obama has two daughters. Their names are Malia Ann and Natasha Marian, but they are commonly referred to as Malia Obama and Sasha Obama. Malia was born on July 4, 1998, and Sasha was born on June 10, 2001.
|
|
111
|
+
Predicted answer 4: It's better to refer to Obama by his full name, Barack Hussein Obama II. He has two daughters: Malia and Sasha.
|
|
112
|
+
```
|
|
113
|
+
These predicted answers are all CORRECT because:
|
|
114
|
+
- They fully contain the important information in the gold target.
|
|
115
|
+
- They do not contain any information that contradicts the gold target.
|
|
116
|
+
- Only semantic meaning matters; capitalization, punctuation, grammar, and order don't matter.
|
|
117
|
+
- Only the direct answer matters; anything else beyond what is stated in the gold target (including extra information, corrections to the question itself, etc) does not matter, as long as it does not contradict the gold target.
|
|
118
|
+
- Hedging and mentioning multiple candidate answers are permissible, provided that the response eventually commits to a single candidate answer, and that answer is correct.
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
The following are examples of INCORRECT predicted answers.
|
|
122
|
+
```
|
|
123
|
+
Question: What are the names of Barack Obama's children?
|
|
124
|
+
Gold target: Malia and Sasha
|
|
125
|
+
Predicted answer 1: Malia.
|
|
126
|
+
Predicted answer 2: Malia, Sasha, and Susan.
|
|
127
|
+
Predicted answer 3: Barack Obama does not have any children.
|
|
128
|
+
Predicted answer 4: While I don't know their exact names, I can tell you that Barack Obama has three children.
|
|
129
|
+
Predicted answer 5: It's possible you may mean Betsy and Olivia. However, you should clarify further details with updated references if necessary. Is that the correct answer?
|
|
130
|
+
Predicted answer 6: It may be the case that Obama's child is named James. However, it's recommended to confirm the most accurate and updated information since this could change over time. This model may not always reflect the most current information.
|
|
131
|
+
```
|
|
132
|
+
These predicted answers are all INCORRECT because:
|
|
133
|
+
- A factual statement in the answer contradicts the gold target.
|
|
134
|
+
- A hedged statement (e.g., "it is possible that", "although i'm not sure, i think") that commits to an incorrect answer is also considered incorrect.
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
The following are examples of NOT_ATTEMPTED predicted answers.
|
|
138
|
+
```
|
|
139
|
+
Question: What are the names of Barack Obama's children?
|
|
140
|
+
Gold target: Malia and Sasha
|
|
141
|
+
Predicted answer 1: I don't know.
|
|
142
|
+
Predicted answer 2: I need more context about which Obama you are talking about.
|
|
143
|
+
Predicted answer 3: Without researching the web, I cannot answer this question. However, I can tell you that Barack Obama has two children.
|
|
144
|
+
Predicted answer 4: Barack Obama has two children. I know that one of them is Malia, but I'm not sure about the other one.
|
|
145
|
+
Predicted answer 5: I cannot find any information about the number of Barack Obama's children.
|
|
146
|
+
Predicted answer 6: The provided text does not provide any information about the number of Barack Obama's children.
|
|
147
|
+
Predicted answer 7: I think it's either Malia and Sasha, or Malia and Jackie, or Joey and Malia. I'm not sure which one.
|
|
148
|
+
```
|
|
149
|
+
These predicted answers are all NOT_ATTEMPTED because:
|
|
150
|
+
- The important information in the gold target is not included in the answer.
|
|
151
|
+
- No statements in the answer contradict the gold target.
|
|
152
|
+
- Hedged statements that provide multiple candidate answers without committing to a single correct answer are considered NOT_ATTEMPTED.
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
Also note the following things:
|
|
156
|
+
- For grading questions where the answer is a number, the gold target will also specify the allowed range, and any predicted answer that falls in that range should be considered correct. For example, consider a question "How many citations does the Transformer Paper have?" with gold target "120k (acceptable range: anything between 118k and 122k)".
|
|
157
|
+
- Predicted answers "120k", "119k", and "120,314" are all CORRECT, because they fall within the range specified in the gold target.
|
|
158
|
+
- Predicted answers "100k" and "113k" are INCORRECT, because they fall outside the range specified in the gold target.
|
|
159
|
+
- Predicted answers "around 100k" and "more than 50k" are considered NOT_ATTEMPTED because they neither confirm nor contradict the gold target.
|
|
160
|
+
- The gold target may contain more information than the question. In such cases, the predicted answer only needs to contain the information that is in the question.
|
|
161
|
+
- For example, consider the question "What episode did Derek and Meredith get legally married in Grey's Anatomy?" with gold target "Season 7, Episode 20: White Wedding". Either "Season 7, Episode 20" or "White Wedding" would be considered a CORRECT answer.
|
|
162
|
+
- Do not punish predicted answers if they omit information that would be clearly inferred from the question.
|
|
163
|
+
- For example, consider the question "What city is OpenAI headquartered in?" and the gold target "San Francisco, California". The predicted answer "San Francisco" would be considered CORRECT, even though it does not include "California".
|
|
164
|
+
- Consider the question "What award did A pretrainer's guide to training data: Measuring the effects of data age, domain coverage, quality, & toxicity win at NAACL '24?", the gold target is "Outstanding Paper Award". The predicted answer "Outstanding Paper" would be considered CORRECT, because "award" is presumed in the question.
|
|
165
|
+
- For the question "What is the height of Jason Wei in meters?", the gold target is "1.73 m (acceptable range: anything between 1.72 m and 1.74 m)". The predicted answer "1.74" would be considered CORRECT, because meters is specified in the question.
|
|
166
|
+
- For the question "What is the name of Barack Obama's wife?", the gold target is "Michelle Obama". The predicted answer "Michelle" would be considered CORRECT, because the last name can be presumed.
|
|
167
|
+
- Do not punish for typos in people's name if it's clearly the same name.
|
|
168
|
+
- For example, if the gold target is "Hyung Won Chung", you can consider the following predicted answers as correct: "Hyoong Won Choong", "Hyungwon Chung", or "Hyun Won Chung".
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
Here is a new example. Simply reply with either CORRECT, INCORRECT, NOT ATTEMPTED. Don't apologize or correct yourself if there was a mistake; we are just trying to grade the answer.
|
|
172
|
+
```
|
|
173
|
+
Question: {question}
|
|
174
|
+
Gold target: {target}
|
|
175
|
+
Predicted answer: {predicted_answer}
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
Grade the predicted answer of this new question as one of:
|
|
179
|
+
A: CORRECT
|
|
180
|
+
B: INCORRECT
|
|
181
|
+
C: NOT_ATTEMPTED
|
|
182
|
+
|
|
183
|
+
Just return the letters "A", "B", or "C", with no text around it.""" # noqa: E501 - exact source prompt
|
|
184
|
+
|
|
94
185
|
EQUIVALENCE_JUDGE_TEMPLATE = """You are an expert and precise grader. Determine whether the candidate answer is equivalent to any reference answer for the question.
|
|
95
186
|
|
|
96
187
|
Use these labels:
|
|
@@ -168,3 +259,16 @@ def simpleqa_spec(question: str, answer: str) -> JudgeSpec:
|
|
|
168
259
|
("A", "B", "C"),
|
|
169
260
|
model=DEFAULT_JUDGE_MODEL,
|
|
170
261
|
)
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
def simpleqa_verified_spec(question: str, answer: str) -> JudgeSpec:
|
|
265
|
+
return classification_spec(
|
|
266
|
+
question,
|
|
267
|
+
answer,
|
|
268
|
+
SIMPLEQA_VERIFIED_GRADER_TEMPLATE.replace("{target}", "{reference}").replace(
|
|
269
|
+
"{predicted_answer}", "{candidate}"
|
|
270
|
+
),
|
|
271
|
+
("A", "B", "C"),
|
|
272
|
+
# Use the judge deployment selected by the evaluation launcher.
|
|
273
|
+
model="",
|
|
274
|
+
)
|
marin_taskcompendium-0.2.284.dev43909614052/src/taskcompendium/importers/evalchemy/simpleqa.py
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# Copyright The Marin Authors
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
"""Canonical SimpleQA and SimpleQA Verified source rows, and the seeded SimpleQAMini sample.
|
|
5
|
+
|
|
6
|
+
Source locators index the emitted stream; source_index keeps the original CSV
|
|
7
|
+
identity for paired comparisons independently of task IDs and sampled order.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
import ast
|
|
11
|
+
import csv
|
|
12
|
+
import random
|
|
13
|
+
from collections.abc import Callable
|
|
14
|
+
|
|
15
|
+
from rigging.filesystem.storage_path import StoragePath
|
|
16
|
+
from verifyit.spec import JudgeSpec
|
|
17
|
+
|
|
18
|
+
from taskcompendium.convert.answers import answer_task, source_evidence
|
|
19
|
+
from taskcompendium.evaluation.corpus import chat_item
|
|
20
|
+
from taskcompendium.evaluation.spec import EvaluationItem
|
|
21
|
+
from taskcompendium.importers.evalchemy.judge_prompts import simpleqa_spec, simpleqa_verified_spec
|
|
22
|
+
from taskcompendium.models import TaskSpec
|
|
23
|
+
from taskcompendium.pipeline.inputs import ConversionContext
|
|
24
|
+
from taskcompendium.pipeline.models import RawRow
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def read_simpleqa(file: StoragePath, _context: ConversionContext, *, mini: bool):
|
|
28
|
+
with file.open("r", newline="", encoding="utf-8") as stream:
|
|
29
|
+
rows = [
|
|
30
|
+
{
|
|
31
|
+
"source_index": index,
|
|
32
|
+
"question": row["problem"],
|
|
33
|
+
"answer": row["answer"],
|
|
34
|
+
"metadata": ast.literal_eval(row["metadata"]),
|
|
35
|
+
}
|
|
36
|
+
for index, row in enumerate(csv.DictReader(stream))
|
|
37
|
+
]
|
|
38
|
+
yield from random.Random(0).sample(rows, 500) if mini else rows
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
_BOOLEANS = {"True": True, "False": False}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def read_simpleqa_verified(file: StoragePath, _context: ConversionContext):
|
|
45
|
+
with file.open("r", newline="", encoding="utf-8") as stream:
|
|
46
|
+
for index, row in enumerate(csv.DictReader(stream)):
|
|
47
|
+
yield {
|
|
48
|
+
"source_index": index,
|
|
49
|
+
"question": row["problem"],
|
|
50
|
+
"answer": row["answer"],
|
|
51
|
+
"metadata": {
|
|
52
|
+
# Row index in OpenAI's SimpleQA CSV, for pairing with SimpleQA results.
|
|
53
|
+
"original_index": int(row["original_index"]),
|
|
54
|
+
"topic": row["topic"],
|
|
55
|
+
"answer_type": row["answer_type"],
|
|
56
|
+
"multi_step": _BOOLEANS[row["multi_step"]],
|
|
57
|
+
"requires_reasoning": _BOOLEANS[row["requires_reasoning"]],
|
|
58
|
+
"urls": row["urls"],
|
|
59
|
+
},
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def convert_simpleqa(row: RawRow, _context: ConversionContext, *, benchmark: str) -> TaskSpec:
|
|
64
|
+
return _simpleqa_task(row, benchmark, simpleqa_spec)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def convert_simpleqa_verified(row: RawRow, _context: ConversionContext, *, benchmark: str) -> TaskSpec:
|
|
68
|
+
return _simpleqa_task(row, benchmark, simpleqa_verified_spec)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def _simpleqa_task(row: RawRow, benchmark: str, judge_spec: Callable[[str, str], JudgeSpec]) -> TaskSpec:
|
|
72
|
+
task = answer_task(
|
|
73
|
+
row,
|
|
74
|
+
prompt=row.data["question"],
|
|
75
|
+
spec=judge_spec(row.data["question"], row.data["answer"]),
|
|
76
|
+
evidence=dict(row.data),
|
|
77
|
+
)
|
|
78
|
+
return task.model_copy(update={"tags": ("eval", "source:evalchemy", "benchmark:" + benchmark)})
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def simpleqa_item(task: TaskSpec) -> EvaluationItem:
|
|
82
|
+
evidence = source_evidence(task)
|
|
83
|
+
groups = {"source_index": str(evidence["source_index"])} if "source_index" in evidence else {}
|
|
84
|
+
return chat_item(task).model_copy(update={"groups": groups})
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def simpleqa_verified_item(task: TaskSpec) -> EvaluationItem:
|
|
88
|
+
"""Grade only the final answer: the reference implementation never shows the judge a reasoning trace."""
|
|
89
|
+
return chat_item(task, response_selection="final_only").model_copy(
|
|
90
|
+
update={"groups": {"source_index": str(source_evidence(task)["source_index"])}}
|
|
91
|
+
)
|
|
@@ -10,8 +10,12 @@ from rigging.filesystem.storage_path import StoragePath
|
|
|
10
10
|
from verifyit.grade import Status
|
|
11
11
|
from verifyit.modes.grade_judge import JudgeConnection, grade_judge_candidate
|
|
12
12
|
|
|
13
|
-
from taskcompendium.importers.evalchemy.judge_prompts import
|
|
14
|
-
|
|
13
|
+
from taskcompendium.importers.evalchemy.judge_prompts import (
|
|
14
|
+
financebench_spec,
|
|
15
|
+
simpleqa_spec,
|
|
16
|
+
simpleqa_verified_spec,
|
|
17
|
+
)
|
|
18
|
+
from taskcompendium.importers.evalchemy.simpleqa import read_simpleqa, read_simpleqa_verified
|
|
15
19
|
from taskcompendium.pipeline.inputs import ConversionContext
|
|
16
20
|
|
|
17
21
|
|
|
@@ -52,6 +56,9 @@ def test_simpleqa_mini_preserves_row_identity_across_repeated_reads(tmp_path):
|
|
|
52
56
|
(simpleqa_spec, "A", "accuracy"),
|
|
53
57
|
(simpleqa_spec, "B", "incorrect"),
|
|
54
58
|
(simpleqa_spec, "C", "not_attempted"),
|
|
59
|
+
(simpleqa_verified_spec, "A", "accuracy"),
|
|
60
|
+
(simpleqa_verified_spec, "B", "incorrect"),
|
|
61
|
+
(simpleqa_verified_spec, "C", "not_attempted"),
|
|
55
62
|
],
|
|
56
63
|
)
|
|
57
64
|
def test_source_labels_grade_empty_and_exact_candidates_through_judge(
|
|
@@ -75,3 +82,28 @@ def test_source_labels_grade_empty_and_exact_candidates_through_judge(
|
|
|
75
82
|
prompt = judge_server.requests[-1]["messages"][-1]["content"]
|
|
76
83
|
assert "How much revenue?" in prompt
|
|
77
84
|
assert "$7" in prompt
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def test_simpleqa_verified_reads_typed_source_metadata_in_file_order(tmp_path):
|
|
88
|
+
file = tmp_path / "simpleqa_verified.csv"
|
|
89
|
+
fields = ("original_index", "problem", "answer", "topic", "answer_type", "multi_step", "requires_reasoning", "urls")
|
|
90
|
+
with file.open("w", newline="") as stream:
|
|
91
|
+
writer = csv.DictWriter(stream, fieldnames=fields)
|
|
92
|
+
writer.writeheader()
|
|
93
|
+
writer.writerow(
|
|
94
|
+
dict(zip(fields, ("55", "Q0?", "A0", "Geography", "Number", "False", "True", "u0"), strict=True))
|
|
95
|
+
)
|
|
96
|
+
writer.writerow(dict(zip(fields, ("7", "Q1?", "A1", "Art", "Person", "True", "False", "u1"), strict=True)))
|
|
97
|
+
rows = list(read_simpleqa_verified(StoragePath(str(file)), ConversionContext({}, None)))
|
|
98
|
+
assert [(row["source_index"], row["question"], row["answer"]) for row in rows] == [
|
|
99
|
+
(0, "Q0?", "A0"),
|
|
100
|
+
(1, "Q1?", "A1"),
|
|
101
|
+
]
|
|
102
|
+
assert rows[0]["metadata"] == {
|
|
103
|
+
"original_index": 55,
|
|
104
|
+
"topic": "Geography",
|
|
105
|
+
"answer_type": "Number",
|
|
106
|
+
"multi_step": False,
|
|
107
|
+
"requires_reasoning": True,
|
|
108
|
+
"urls": "u0",
|
|
109
|
+
}
|
marin_taskcompendium-0.2.282.dev43906453060/src/taskcompendium/importers/evalchemy/simpleqa.py
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
# Copyright The Marin Authors
|
|
2
|
-
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
|
|
4
|
-
"""Canonical SimpleQA source rows and seeded SimpleQAMini sample.
|
|
5
|
-
|
|
6
|
-
Source locators index the emitted stream; source_index keeps the original CSV
|
|
7
|
-
identity for paired comparisons independently of task IDs and sampled order.
|
|
8
|
-
"""
|
|
9
|
-
|
|
10
|
-
import ast
|
|
11
|
-
import csv
|
|
12
|
-
import random
|
|
13
|
-
|
|
14
|
-
from rigging.filesystem.storage_path import StoragePath
|
|
15
|
-
|
|
16
|
-
from taskcompendium.convert.answers import answer_task, source_evidence
|
|
17
|
-
from taskcompendium.evaluation.corpus import chat_item
|
|
18
|
-
from taskcompendium.evaluation.spec import EvaluationItem
|
|
19
|
-
from taskcompendium.importers.evalchemy.judge_prompts import simpleqa_spec
|
|
20
|
-
from taskcompendium.models import TaskSpec
|
|
21
|
-
from taskcompendium.pipeline.inputs import ConversionContext
|
|
22
|
-
from taskcompendium.pipeline.models import RawRow
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
def read_simpleqa(file: StoragePath, _context: ConversionContext, *, mini: bool):
|
|
26
|
-
with file.open("r", newline="", encoding="utf-8") as stream:
|
|
27
|
-
rows = [
|
|
28
|
-
{
|
|
29
|
-
"source_index": index,
|
|
30
|
-
"question": row["problem"],
|
|
31
|
-
"answer": row["answer"],
|
|
32
|
-
"metadata": ast.literal_eval(row["metadata"]),
|
|
33
|
-
}
|
|
34
|
-
for index, row in enumerate(csv.DictReader(stream))
|
|
35
|
-
]
|
|
36
|
-
yield from random.Random(0).sample(rows, 500) if mini else rows
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
def convert_simpleqa(row: RawRow, _context: ConversionContext, *, benchmark: str) -> TaskSpec:
|
|
40
|
-
task = answer_task(
|
|
41
|
-
row,
|
|
42
|
-
prompt=row.data["question"],
|
|
43
|
-
spec=simpleqa_spec(row.data["question"], row.data["answer"]),
|
|
44
|
-
evidence=dict(row.data),
|
|
45
|
-
)
|
|
46
|
-
return task.model_copy(update={"tags": ("eval", "source:evalchemy", "benchmark:" + benchmark)})
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
def simpleqa_item(task: TaskSpec) -> EvaluationItem:
|
|
50
|
-
evidence = source_evidence(task)
|
|
51
|
-
groups = {"source_index": str(evidence["source_index"])} if "source_index" in evidence else {}
|
|
52
|
-
return chat_item(task).model_copy(update={"groups": groups})
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|