as_placement_group_factory#

ScalingConfig.as_placement_group_factory() → PlacementGroupFactory[source]#

Returns a PlacementGroupFactory to specify resources for Tune.

Returns:

A PlacementGroupFactory with an empty head bundle, one bundle that combines the trainer’s resources with the first worker’s, and one bundle for each other worker.

Return type:

PlacementGroupFactory