Skip to content

Commit 5aed61d

Browse files
committed
Merge branch 'v1' of https://github.com/NimbleBoxAI/nbox into v1
2 parents 6209de9 + 7ad5ae5 commit 5aed61d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nbox/jobs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,8 @@ def scale(self, replicas: int) -> bool:
574574
"""
575575
if not self.model_id:
576576
raise ValueError("Model ID is required to scale a model. Pass with --model_id")
577-
if replicas < 1:
578-
raise ValueError("Replicas must be greater than 0")
577+
if replicas < 0:
578+
raise ValueError("Replicas must be greater than or equal to 0")
579579

580580
logger.info(f"Scale model deployment {self.model_id} to {replicas} replicas")
581581
rpc(

0 commit comments

Comments
 (0)