Created
October 25, 2020 22:04
-
-
Save aribornstein/f394666d5cba4e1762eb315d132083aa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from azureml.core import ScriptRunConfig, Experiment | |
from azureml.core.runconfig import MpiConfiguration | |
cluster = ws.compute_targets[cluster_name] | |
src = ScriptRunConfig( | |
source_directory=source_dir, | |
script=script_name, | |
arguments=["--max_epochs", 5, "--gpus", 2, "--num_nodes", 2, "--accelerator", "ddp"], | |
compute_target=cluster, | |
environment=env, | |
distributed_job_config=MpiConfiguration(process_count_per_node=1, node_count=2), | |
) | |
run = Experiment(ws, experiment_name).submit(src) | |
run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment