
Answer-first summary for fast verification
Answer: Register the model, specifying the model_framework and model_framework_version properties.
The question focuses on ensuring the correct PyTorch version (1.2) is identified for the inferencing environment during deployment. Option D is correct because registering the model with the 'model_framework' and 'model_framework_version' properties explicitly specifies the framework (PyTorch) and its version (1.2), which Azure ML uses to set up the appropriate environment. This is supported by the community discussion, where multiple comments (e.g., from shuvovertigo and Tehseen) reference the Azure ML API documentation for model registration, highlighting these properties as the standard way to declare framework details. Option A is incorrect as saving locally and deploying as a local web service does not integrate with Azure ML's environment management. Option B is suboptimal because the default conda environment may not match the required PyTorch version. Option C is insufficient as merely registering the model with a .pt extension and default version does not specify the framework or its version, risking environment mismatches.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are creating a multi-class image classification deep learning model using PyTorch version 1.2. How can you guarantee that the inferencing environment identifies and uses the correct PyTorch version when the model is deployed?
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.
No comments yet.