nemo_gym.token_id_capture.control_routes
nemo_gym.token_id_capture.control_routes
Expose rollout capture manifests and ledger removal over HTTP.
The training framework reads one manifest for each rollout. The endpoint returns call metadata and does not read staged token data. The framework builds receipts and removes staged data after use. It then retires the rollout’s ledger, which Gym cannot otherwise know is no longer needed.
Module Contents
Classes
Functions
Data
API
Bases: BaseModel
Body of the retire and delete routes.
Framework-side client for the manifest, retire, and delete routes.
Delete ledgers and their fences; see CaptureLedger.delete. Retrying after a failure is safe.
Fetch a rollout’s manifest. A retired rollout raises RolloutRetiredError.
Retire ledgers; see CaptureLedger.retire. Retrying after a failure is safe.
Install the bearer-protected manifest, retire, and delete routes.
refuse_removal returns a reason to refuse retire and delete for now, with 409; the caller retries later.