nemo_gym.core.episode_context
nemo_gym.core.episode_context
The episode that the current request or task belongs to.
Module Contents
Functions
Data
API
Refuse a rollout id whose capture files would pass the 255-byte file name limit at some attempt.
Return the logical rollout and attempt carried by the current capture key.
Return the enclosing verify execution, if any.
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.
Note that the enclosing verify execution sent a request to a model server; outside one, do nothing.
Carry one verify execution’s identity across its concurrent judge calls.
The model servers the enclosing verify execution has sent requests to so far.