Skip to content
Open
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
5 changes: 5 additions & 0 deletions pathwaysutils/experimental/gke/jobset.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ def __init__(
self._labels = dict(labels) if labels else {}
self._annotations = dict(annotations) if annotations else {}

if elastic_slices > num_slices:
raise ValueError(
f"elastic_slices ({elastic_slices}) cannot be greater than "
f"num_slices ({num_slices})"
)
tpu_version = MACHINE_TYPE_TO_TPU_VERSION_MAP.get(tpu_type.lower())
if not tpu_version:
raise ValueError(f"Unsupported TPU type: {tpu_type}")
Expand Down
Loading