There was an error while loading. Please reload this page.
2 parents 6209de9 + 7ad5ae5 commit 5aed61dCopy full SHA for 5aed61d
nbox/jobs.py
@@ -574,8 +574,8 @@ def scale(self, replicas: int) -> bool:
574
"""
575
if not self.model_id:
576
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")
+ if replicas < 0:
+ raise ValueError("Replicas must be greater than or equal to 0")
579
580
logger.info(f"Scale model deployment {self.model_id} to {replicas} replicas")
581
rpc(
0 commit comments