mirror of
https://github.com/wassname/ray.git
synced 2026-07-13 17:45:08 +08:00
[docs] Placement group documentation (#10555)
Co-authored-by: Richard Liaw <rliaw@berkeley.edu>
This commit is contained in:
+8
-1
@@ -407,8 +407,15 @@ class GlobalState:
|
||||
def get_strategy(strategy):
|
||||
if strategy == PlacementStrategy.PACK:
|
||||
return "PACK"
|
||||
else:
|
||||
elif strategy == PlacementStrategy.STRICT_PACK:
|
||||
return "STRICT_PACK"
|
||||
elif strategy == PlacementStrategy.STRICT_SPREAD:
|
||||
return "STRICT_SPREAD"
|
||||
elif strategy == PlacementStrategy.SPREAD:
|
||||
return "SPREAD"
|
||||
else:
|
||||
raise ValueError(
|
||||
f"Invalid strategy returned: {PlacementStrategy}")
|
||||
|
||||
assert placement_group_info is not None
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user