Designing and Implementing a Data Science Solution on Azure — Question 23
You create a multi-class image classification deep learning model.
You train the model by using PyTorch version 1.2.
You need to ensure that the correct version of PyTorch can be identified for the inferencing environment when the model is deployed.
What should you do?
Answer options
- A. Save the model locally as a.pt file, and deploy the model as a local web service.
- B. Deploy the model on computer that is configured to use the default Azure Machine Learning conda environment.
- C. Register the model with a .pt file extension and the default version property.
- D. Register the model, specifying the model_framework and model_framework_version properties.
Correct answer: D
Explanation
The correct answer is D because registering the model with the model_framework and model_framework_version properties ensures that the specific version of PyTorch used during training is identified in the deployment environment. Options A and B do not provide a method for associating the correct PyTorch version with the model, while option C only includes the file extension without specifying the framework version.