PROFESSIONAL-MACHINE-LEARNING-ENGINEER · Question #77
Your data science team is training a PyTorch model for image classification based on a pre- trained RestNet model. You need to perform hyperparameter tuning to optimize for several parameters. What sh
The correct answer is B. Run a hyperparameter tuning job on AI Platform using custom containers.. The model is already built in PyTorch, so converting it to Keras (A) or TensorFlow (D) would require significant rework and could introduce errors or performance regressions. AI Platform (now Vertex AI Training) supports custom containers, meaning you can run hyperparameter tunin
Question
Options
- AConvert the model to a Keras model, and run a Keras Tuner job.
- BRun a hyperparameter tuning job on AI Platform using custom containers.
- CCreate a Kuberflow Pipelines instance, and run a hyperparameter tuning job on Katib.
- DConvert the model to a TensorFlow model, and run a hyperparameter tuning job on AI Platform.
How the community answered
(56 responses)- A5% (3)
- B75% (42)
- C16% (9)
- D4% (2)
Explanation
The model is already built in PyTorch, so converting it to Keras (A) or TensorFlow (D) would require significant rework and could introduce errors or performance regressions. AI Platform (now Vertex AI Training) supports custom containers, meaning you can run hyperparameter tuning jobs with your native PyTorch code inside a Docker container. This preserves the original framework, ResNet architecture, and avoids conversion overhead. Kubeflow Pipelines with Katib (C) is a valid but more complex infrastructure setup that requires managing a Kubernetes cluster, making it a heavier solution than simply using the managed AI Platform custom container support.
Topics
Community Discussion
No community discussion yet for this question.