nemo_gym.tasks.harbor.validation_report
nemo_gym.tasks.harbor.validation_report
Summarise a gym dataset validate run from its rollout and failure files.
Reads the rows a validation run wrote, keys them by task, reports which tasks passed, which scored below one and which were never run, and returns the text and the overall verdict as a ValidationReport. The task digest lookup the resume checks share lives here as well. cli.py imports it for validate_target and the eval run resume conflict check.
Module Contents
Classes
Functions
API
key(row) -> task digest for materialized rows; shared by the eval and validation resume checks.
The records of a rollouts, failures or materialized inputs file, in order (none when there is no file).
A run killed while appending leaves a final line without a newline that does not parse (the cut may
land inside a multibyte character, so it may not decode either). The collector drops that line from
the rollouts and failures files when it resumes (_drop_truncated_tail), so it is skipped here with
the same tolerance, and a resume that reads the cache first still reaches that repair. A complete final
record without a newline is read like any other. A line that does not parse anywhere else is damage
the collector does not repair, and is reported by file and line rather than resumed over.
Report every selected task/repeat, reconciling results with failed attempts.
The collector stores verify responses directly and keeps historical failed attempts in a
sidecar. A result supersedes failures for the same task/repeat, but never another repeat.
expected contains the collector’s selected, expanded input rows (after limit/repeats).