Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/source/ray-core/scheduling/labels.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,13 @@ Use the `bundle_label_selector` option to add label selector to placement group
# All bundles require the same labels:
ray.util.placement_group(
bundles=[{"GPU": 1}, {"GPU": 1}],
bundle_label_selector=[{"ray.io/accelerator-type": "H100"} * 2],
bundle_label_selector=[{"ray.io/accelerator-type": "H100"}] * 2,
)

# Bundles require different labels:
ray.util.placement_group(
bundles=[{"CPU": 1}] + [{"GPU": 1} * 2],
bundle_label_selector=[{"ray.io/market-type": "spot"}] + [{"ray.io/accelerator-type": "H100"} * 2]
bundles=[{"CPU": 1}] + [{"GPU": 1}] * 2,
bundle_label_selector=[{"ray.io/market-type": "spot"}] + [{"ray.io/accelerator-type": "H100"}] * 2
)
```
## Using labels with autoscaler
Expand Down