Skip to content

Commit

Permalink
relax ondemand cluster compute specificity in factory (#1569)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlewitt1 authored Dec 11, 2024
1 parent 5987483 commit b26725c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runhouse/resources/hardware/cluster_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,10 @@ def ondemand_cluster(
f"local ~/.rh/config.yaml."
)

if instance_type and any([memory, disk_size, num_cpus, accelerators]):
if instance_type and any([memory, disk_size, num_cpus]):
raise ValueError(
"Resources are over-specified. Cannot specify both `instance_type` and any of `memory`, `disk_size`, "
"`num_cpus`, or `accelerators`."
"or `num_cpus`."
)

if name:
Expand Down

0 comments on commit b26725c

Please sign in to comment.