Thursday, September 4, 2025
HomeData Modelling & AIFaster Training and Inference Using the Azure Container for PyTorch in Azure...

Faster Training and Inference Using the Azure Container for PyTorch in Azure ML

By Beatriz Stollnitz, Principal Cloud Advocate at Microsoft

Azure Container for PyTorch (ACPT)

Benefits of the ACPT

How to use the ACPT to train a model within Azure ML

CONDA_PATH = Path(Path(__file__).parent, "conda.yml")    
    ...
    # Create the environment.
    environment = Environment(image="mcr.microsoft.com/azureml/" +
                              "openmpi4.1.0-ubuntu20.04:latest",
                              conda_file=CONDA_PATH)

    # Create the job.
    job = command(
        ...
        environment=environment,
        ...
    )
  ...
  environment = "AzureML-ACPT-pytorch-1.12-py39-cuda11.6-gpu@latest"

  job = command(
      ...
      environment=environment,
      ...
  )
environment = "AzureML-ACPT-pytorch-1.12-py39-cuda11.6-gpu:3"

job = command(
    ...
    environment=environment,
    ...
)

Additional Resources:

Deploy real-time machine learning services with Azure Machine Learning – Training | Microsoft Learn

Administer containers in Azure learning path – Training | Microsoft Learn

Part 1: Training and Deploying Your PyTorch Model in the Cloud with Azure ML

Part 2: Training Your PyTorch Model Using Components and Pipelines in Azure ML

Article originally posted here. Reposted with permission.

Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32261 POSTS0 COMMENTS
Milvus
81 POSTS0 COMMENTS
Nango Kala
6626 POSTS0 COMMENTS
Nicole Veronica
11795 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11855 POSTS0 COMMENTS
Shaida Kate Naidoo
6747 POSTS0 COMMENTS
Ted Musemwa
7023 POSTS0 COMMENTS
Thapelo Manthata
6695 POSTS0 COMMENTS
Umr Jansen
6714 POSTS0 COMMENTS