question

RaghuvarranVH-5191 avatar image
0 Votes"
RaghuvarranVH-5191 asked RaghuvarranVH-5191 commented

Downloading images built during ML experiment

I have successfully run a AML experiment . In the beginning of the experiment, I included the below command to build a conda environment with my requirements into a pre built image:

 env = azc.Environment.from_conda_specification(name='my-env', file_path='./envspec.yml')
 env.docker.enabled = True
 env.docker.base_image = 'mcr.microsoft.com/azureml/openmpi3.1.2-cuda10.1-cudnn7-ubuntu18.04'

I understand that during the preparation phase the image is built with the specified dependencies and the experiment is run.
Now, where I can access this built image? I tried in the Azure container Registry inside my resource group but couldnt find anything.

Is there a way I can download this image and use it in a different experiment as a custom image? I assume this must save time in downloading dependencies and ensures reptroduciblity.

Any known way of doing this?

azure-machine-learningazure-container-registry
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello,

I am a little bit confused about the process, could you please share the document/ guidance/ code sample you are following to so that I can look into this?


Thanks.

Regards,
Yutong

0 Votes 0 ·

@YutongTie-MSFT - Thanks for the interest. I tried nothing fancy.
In main.py:
import azureml.core as azc

 ws = azc.Workspace.from_config()
 #%%
 comp_cluster = azc.compute.ComputeTarget(ws,'mltest')
 env = azc.Environment(name='my-env')
 env.docker.enabled = True
 env.docker.base_image = 'mcr.microsoft.com/azureml/openmpi3.1.2-cuda10.1-cudnn7-ubuntu18.04'
    
 scr_conf = azc.ScriptRunConfig(source_directory='./',
                                script='script.py',
                                compute_target = comp_cluster,
                                environment=env)
 exp = azc.Experiment(ws,'sub_script')
 run = exp.submit(config=scr_conf)
 run.wait_for_completion(show_output=True)

IIn script.py it was just a test log.

eparation phase , the package dependencies were installed over the image. I want to know how to access this image so that I can use it later

1 Vote 1 ·

0 Answers