trinity.buffer.pipelines.experience_pipeline module#
- trinity.buffer.pipelines.experience_pipeline.get_input_buffers(pipeline_config: ExperiencePipelineConfig) Dict[源代码]#
Get input buffers for the experience pipeline.
- trinity.buffer.pipelines.experience_pipeline.default_input_save_path(config: Config) str[源代码]#
Compute the default
input_save_pathfor the experience pipeline.This is the single source of truth for where the pipeline writes its input database when
save_inputis enabled but no path is provided: a SQLite database at<checkpoint_job_dir>/buffer/explorer_output.db.It is derived purely from the config components (no Ray/GPU side effects), so callers that load a config without a full validation pass — e.g.
trinity view— resolve the exact same path the pipeline writes to at run time. TheabspathmirrorsGlobalConfigValidatormaking a relativecheckpoint_root_dirabsolute, keeping the two contexts consistent.
- class trinity.buffer.pipelines.experience_pipeline.ExperiencePipeline(config: Config)[源代码]#
基类:
objectA class to process experiences.
- async process(exp_bytes: bytes) Dict[源代码]#
Process a batch of experiences.
- 参数:
exp_bytes (bytes) -- Serialized experiences to process. These experiences are typically generated by an explorer in one step.
- 返回:
A dictionary containing metrics collected during the processing of experiences.
- 返回类型:
Dict