nemo_gym.utils.task_ids
nemo_gym.utils.task_ids
The task ids a run selects (task_ids or task_ids_fpath), their digest, and the record a subset run keeps.
Nothing here writes; the run that collects the rows writes the record (rollouts_task_selection.json).
Module Contents
Classes
Functions
API
Bases: NamedTuple
The ids a run selects, as strings, and where they came from: task_ids or the id file’s path.
The ids a task id file lists, one per line; blank lines and lines starting with # are skipped.
A saved selection record; None when the run selected no tasks (no record). An unreadable record is a subset whose source and digest are unknown, never a run of every task.
Inline ids as strings: Hydra reads an unquoted 7 as an int and true as a bool. A float is refused, since
its text (1e3, 1.50) is gone; anything that is not a list is returned for the caller to reject.
The sha256 of the selected ids, sorted and unique, one per line: the same set always gives the same digest.
The run’s selection from its task_ids or task_ids_fpath setting; None when it selects no tasks by id.
What rollouts_task_selection.json holds: the source, the counts, the sorted ids and their digest.