nemo_gym.rollout_correlation
nemo_gym.rollout_correlation
Module Contents
Classes
Functions
Data
API
Strip a rollout prefix and expose it to downstream Gym calls for this request.
Return the logical rollout and attempt carried by the current capture key.
Build the capture key for a run request.
An explicit _ng_rollout_id takes precedence.
Otherwise derive "{task}-{rollout}" from the task and rollout indices.
Re-dispatch attempts append -a{n}.
The suffix is reserved: an explicit id ending in -a<N> names attempt N of the rollout before it,
as a training controller names a restored attempt,
and rollout collection refuses dataset rows that use it as a plain id.
Writers and consumers must use this same identity.
Reused task and rollout indices produce a repeated capture key.
Use an explicit id when numbering restarts across dispatches.
Copy the scope for routing and share the rewritten path with outer middleware.