Repository navigation
fix(data): resolve deferred dataset paths after config composition - #5790
Closed
rystewart-nvidia wants to merge 8 commits into
Closed
rystewart-nvidia wants to merge 8 commits into
rystewart-nvidia wants to merge 8 commits into
Conversation
This was referenced Nov 7, 2026
rystewart-nvidia
force-pushed
the
lab-refresh/dataset-paths
branch
from
November 7, 2026 03:39
095e024 to
5d5726e
Compare
rystewart-nvidia
force-pushed
the
lab-refresh/dataset-paths
branch
from
November 10, 2026 21:56
5d5726e to
0acce48
Compare
Contributor
|
A few behavior changes from resolving dataset configs more broadly:
Resolving only the declared path fields, and only for in-scope datasets, inside the existing error handling would cover 1 to 3. This core change also looks independent of the LAB stack, so it could land on its own. |
rystewart-nvidia
force-pushed
the
lab-refresh/dataset-paths
branch
from
November 12, 2026 04:48
7d2ab41 to
8c26f4d
Compare
Contributor
Author
rystewart-nvidia
force-pushed
the
lab-refresh/dataset-paths
branch
from
November 12, 2026 20:34
8c26f4d to
d7e7fbd
Compare
cmunley1
previously approved these changes
Nov 13, 2026
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
rystewart-nvidia
force-pushed
the
lab-refresh/dataset-paths
branch
from
November 13, 2026 15:59
d7e7fbd to
9abfeed
Compare
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
7 tasks done
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
Contributor
Author
|
superseded by changes merged in #5791, closing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Fix dataset paths that use configuration expressions such as
${selected_lab_input}. Preparation and validation could treat the expression as a filename instead of using its configured value.Resolve only the dataset fields being consumed, after filtering by dataset type. Leave unrelated settings deferred, report unresolved paths as configuration errors, and keep the correct preparation command in missing-file errors. LAB needs selected-task paths. BioMysteryBench has the same bug: validation can treat
${prepare_script_args.output_dir}/gym.jsonlas a literal filename. This fix substitutes the configured output directory, giving the actual path:benchmarks/biomysterybench/data/gym.jsonl.Builds on #5787. Will rebase this PR once 5787 is merged.
Validation
All 147 focused dataset-preparation, environment-validation, and dataset-source tests passed. They check all consumed path fields, loaded rows, source metadata and fallback preservation, ignored out-of-scope settings, and useful errors and preparation hints. All-files pre-commit and import checks passed.
uv sync --locked --project resources_servers/legal_agent_bench source resources_servers/legal_agent_bench/.venv/bin/activate PYTHONPATH=. LITELLM_LOCAL_MODEL_COST_MAP=True uv run --active --no-sync python -m pytest \ tests/unit_tests/data/test_dataset_preparation.py \ tests/unit_tests/environment/test_environment_validation.py \ tests/unit_tests/config/test_dataset_source.py --import-mode=importlib -qLITELLM_LOCAL_MODEL_COST_MAP=Trueavoids downloading model prices during imports;--active --no-syncuses the activated environment.All three read-only reproductions below passed. They need no downloads, model endpoints, or Docker.
1. Generic configuration example —
example_multi_stepThis changes a literal training path to
${selected_train_input}in memory. It resolves to the selected filename while preserving the configured GitLab source and its compatibility alias. The file need not exist, and no config is changed on disk.2. LAB — selected-task preparation
This applies LAB's planned task-selection setting to the current config in memory, so it works on this PR alone. Before the fix, the path remains an
oc.selectexpression; afterward, it resolves toselected-lab-tasks.jsonl.3. Existing affected configuration — BioMysteryBench
The unchanged BioMysteryBench config uses
${prepare_script_args.output_dir}/gym.jsonl. This fix resolves it tobenchmarks/biomysterybench/data/gym.jsonl.Rollouts
N/A: this changes dataset selection before execution, not agent or verifier behavior. The commands above reproduce the path-resolution issue without a model call.
Compatibility and benchmark impact
Literal paths work as before. Configuration expressions now select the intended dataset, which can change the rows loaded when an override was previously ignored. Scoring, dataset ownership, and dataset types are unchanged. No new configuration field is required.
Checklist
pre-commit run --all-files) (so CI lint/format checks pass).git commit -s) (so the DCO check passes).