rlightning.weights.utils¶
- rlightning.weights.utils.build_weight_buffer(weight_buffer_cls: str, weight_buffer_cfg: WeightBufferConfig | None = None, node_id: str | None = None)[source]¶
Build an instance of WeightBuffer.
If the configuration for building indicates the buffer strategy is shared, then the returned instance would be an instance of ray.actor.ActorHandle.
- Parameters:
- Returns:
An instance of weightbuffer or an Actor.
- Return type:
WeightBuffer | ActorHandle