Thursday, July 4, 2024
HomeData ModellingFaster 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 Rubhabha Wardslaus
Dominic Rubhabha Wardslaushttps://neveropen.dev
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments