Skip to content

Commit 22527d0

Browse files
authored
Update slurm.py
Signed-off-by: Alexandros Koumparoulis <[email protected]>
1 parent cc1fccd commit 22527d0

File tree

1 file changed

+0
-6
lines changed
  • nemo_run/run/torchx_backend/schedulers

1 file changed

+0
-6
lines changed

nemo_run/run/torchx_backend/schedulers/slurm.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,6 @@ def schedule(self, dryrun_info: AppDryRunInfo[SlurmBatchRequest | SlurmRayReques
190190
cmd.append(f"--dependency={slurm_executor.dependency_type}:{':'.join(slurm_deps)}")
191191
req.launch_cmd = cmd
192192

193-
# Create the sbatch script if it does not exist
194-
if not os.path.exists(dst_path):
195-
os.makedirs(os.path.dirname(dst_path), exist_ok=True)
196-
with open(dst_path, "w") as f:
197-
f.write(str(req.materialize()))
198-
199193
# Run sbatch script
200194
req.launch_cmd += [dst_path]
201195
job_id = self.tunnel.run(" ".join(req.launch_cmd)).stdout.strip()

0 commit comments

Comments
 (0)