PROFESSIONAL-MACHINE-LEARNING-ENGINEER · Question #209
You developed a Transformer model in TensorFlow to translate text. Your training data includes millions of documents in a Cloud Storage bucket. You plan to use distributed training to reduce…
The correct answer is A. Create a Vertex AI custom training job with GPU accelerators for the second worker pool. Use. To configure a distributed TensorFlow Transformer training job on Cloud Storage data with minimal code modification and cluster management effort, use a Vertex AI custom training job with GPU accelerators and tf.distribute.MultiWorkerMirroredStrategy.
Question
Options
- ACreate a Vertex AI custom training job with GPU accelerators for the second worker pool. Use
- BCreate a Vertex AI custom distributed training job with Reduction Server. Use N1 high-memory
- CCreate a training job that uses Cloud TPU VMs. Use tf.distribute.TPUStrategy for distribution.
- DCreate a Vertex AI custom training job with a single worker pool of A2 GPU machine type
How the community answered
(35 responses)- A74% (26)
- B17% (6)
- C3% (1)
- D6% (2)
Why each option
To configure a distributed TensorFlow Transformer training job on Cloud Storage data with minimal code modification and cluster management effort, use a Vertex AI custom training job with GPU accelerators and `tf.distribute.MultiWorkerMirroredStrategy`.
Creating a Vertex AI custom training job allows you to leverage managed infrastructure for distributed training with minimal cluster management effort. Utilizing GPU accelerators for worker pools and implementing `tf.distribute.MultiWorkerMirroredStrategy` is the standard and recommended approach for synchronous distributed TensorFlow training, requiring minimal code modifications for existing models.
Using Reduction Server is typically for more advanced or custom distributed training setups and might not be the most minimal-effort approach for a standard TensorFlow Transformer model compared to `MultiWorkerMirroredStrategy`.
While Cloud TPU VMs are powerful for Transformer models, `tf.distribute.TPUStrategy` often requires more specific code changes and optimization compared to `MultiWorkerMirroredStrategy` on GPUs, potentially increasing the effort for code modification.
A 'single worker pool' configuration does not enable distributed training, which directly contradicts the requirement to 'use distributed training to reduce training time'.
Concept tested: Vertex AI custom training with TensorFlow distributed strategies
Source: https://cloud.google.com/vertex-ai/docs/training/distributed-training#tensorflow-multimachine-mirrored
Topics
Community Discussion
No community discussion yet for this question.