MLS-C01 · Question #280
A manufacturing company wants to create a machine learning (ML) model to predict when equipment is likely to fail. A data science team already constructed a deep learning model by using TensorFlow…
The correct answer is B. Turn on SageMaker Training Compiler by adding compiler_config=TrainingCompilerConfig() as a. The goal is to train an existing TensorFlow deep learning model on Amazon SageMaker most cost-effectively.
Question
A manufacturing company wants to create a machine learning (ML) model to predict when equipment is likely to fail. A data science team already constructed a deep learning model by using TensorFlow and a custom Python script in a local environment. The company wants to use Amazon SageMaker to train the model. Which TensorFlow estimator configuration will train the model MOST cost-effectively?
Options
- ATurn on SageMaker Training Compiler by adding compiler_config=TrainingCompilerConfig() as a
- BTurn on SageMaker Training Compiler by adding compiler_config=TrainingCompilerConfig() as a
- CAdjust the training script to use distributed data parallelism. Specify appropriate values for the
- DTurn on SageMaker Training Compiler by adding compiler_config=TrainingCompilerConfig() as a
How the community answered
(29 responses)- A7% (2)
- B76% (22)
- C3% (1)
- D14% (4)
Why each option
The goal is to train an existing TensorFlow deep learning model on Amazon SageMaker most cost-effectively.
While turning on SageMaker Training Compiler is the correct approach, the specific context or additional parameters in the full choice for A might be less optimal or inaccurate compared to B.
Turning on SageMaker Training Compiler by adding compiler_config=TrainingCompilerConfig() to the TensorFlow estimator automatically optimizes deep learning model training jobs. This optimization compiles and tunes the model for faster execution on SageMaker's GPU instances, which directly translates to reduced training time and therefore lower computational costs, making it the most cost-effective solution for deep learning.
Adjusting the training script for distributed data parallelism primarily aims to reduce wall-clock training time for large models or datasets, but it often involves utilizing more or larger instances, potentially increasing overall cost rather than reducing it, especially if not paired with other optimizations.
While turning on SageMaker Training Compiler is the correct approach, the specific context or additional parameters in the full choice for D might be less optimal or inaccurate compared to B.
Concept tested: SageMaker training optimization for cost-effectiveness
Source: https://docs.aws.amazon.com/sagemaker/latest/dg/training-compiler.html
Topics
Community Discussion
No community discussion yet for this question.