nemo_rl.models.generation.prefix_recovery.parts#

What prefix recovery needs from the worker that hosts it.

Module Contents#

Classes#

PrefixRecoveryParts

Inputs the host worker builds once in setup_token_capture.

API#

class nemo_rl.models.generation.prefix_recovery.parts.PrefixRecoveryParts#

Inputs the host worker builds once in setup_token_capture.

capture: Any#

None

sink: nemo_rl.data_plane.tq_token_sink.TQTokenSink#

None

staging_source: nemo_rl.data_plane.tq_token_sink.TQTokenSource#

None

registry: nemo_rl.models.generation.prefix_recovery.state.CaptureRegistry#

None

tokenizer: Any#

None

weight_version: collections.abc.Callable[[], int]#

None

control_token: str | None#

None

control_timeout_s: float | None#

None

progress_reader: nemo_rl.models.generation.prefix_recovery.progress.ProgressReader#

None

router_replay: bool#

None

sampler_top_k: int#

None

prefix_row_extras: collections.abc.Callable[[nemo_rl.models.generation.prefix_recovery.state._RequestCaptureState], dict[str, Any] | None]#

None

prefix_write_max_rows: int#

None

prefix_write_max_tokens: int#

None

prefix_read_max_rows: int#

None

write_limits: nemo_rl.models.generation.prefix_recovery.write_pipeline.PrefixWriteLimits#

None