Render an SBATCH submission script for a clustered training job
harbor run -t vmax-modal/modal-port-v1-patched-multinode-sbatch-render
harbor download vmax-modal/modal-port-v1-patched-multinode-sbatch-render
sbatch.py mirrors the slurm submission script the multinode examples use: a shebang, SBATCH directives, blank line, then the command.
sbatch.py
run_case(case) returns {"content", "n_lines", "nodes", "gpus_per_node"} matching the reference exactly.
run_case(case)
{"content", "n_lines", "nodes", "gpus_per_node"}
Write /app/solution/modal_app.py with module-level app and run_case.
/app/solution/modal_app.py
app
run_case
Expose the workflow as a single Modal remote function: define run_case as an @app.function so the harness can invoke it with run_case.remote(case).
@app.function
run_case.remote(case)
The solution must also use: