From 65350ade747cc2fed6cfd3571a7bcdf6d53367fd Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Fri, 16 Feb 2024 13:57:48 +0100 Subject: [PATCH] better warning about uncosnumed configs --- slate/slate.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/slate/slate.py b/slate/slate.py index 302e560..d228193 100644 --- a/slate/slate.py +++ b/slate/slate.py @@ -237,7 +237,9 @@ class Slate(): num_parallel_jobs = min(self.consume(slurmC, 'num_parallel_jobs', num_jobs), num_jobs) array = f'0-{last_job_idx}%{num_parallel_jobs}' job = pyslurm.JobSubmitDescription(name=s_name, script=script, array=array, **slurmC) - if self.verify: + if config != {}: + pprint('Unconsumed Config: ', config) + if self.verify or config != {}: input(f'') job_id = job.submit() print(f'[>] Job submitted to slurm with id {job_id}') @@ -323,7 +325,7 @@ class Slate(): **wandbC ) as run: runner = Runner(self, runnerConf) - runner.setup(wandbC['job_type']) + runner.setup(wandbC['group']+wandbC['job_type']) runner.run(run) except wandb.errors.CommError as e: retry -= 1 @@ -363,7 +365,7 @@ class Slate(): self.deep_update(config, wandb.config) run.config = copy.deepcopy(config) runner = Runner(self, config) - runner.setup(wandbC['job_type']) + runner.setup(wandbC['group']+wandbC['job_type']) runner.run(run) if config != {}: