You built a custom ML model using scikit-learn. Training time is taking longer than expected. You decide to migrate your model to Vertex AI Training, and you want to improve the model’s training time. What should you try out first?
A.
Train your model in a distributed mode using multiple Compute Engine VMs.
B.
Train your model using Vertex AI Training with CPUs.
C.
Migrate your model to TensorFlow, and train it using Vertex AI Training.
D.
Train your model using Vertex AI Training with GPUs.
Scikit-learn is not intended to be used as a deep-learning framework and it does not provide any GPU support. (Ref: https://stackoverflow.com/questions/41567895/will-scikit-learn-utilize-gpu).
So I go with B
You decided to migrate to Vertex AI, If you have a model that requires significant computational resources and doesn't rely heavily on specialized GPU operations (like those in option D), then option B might still be a good choice. However, if your model is computationally intensive or involves complex neural network architectures I would go with D instead of B.
B is correct, because scikit only has CPU support for the following services:
- prebuilt containers for custom training (this is the case here)
- prebuilt containers for predictions and explanations
- Vertex AI Pipelines
- Vertex AI Workbench user-managed notebooks
https://cloud.google.com/vertex-ai/docs/supported-frameworks-list#scikit-learn_2
Scikit-learn doesn't natively support GPUs for training. However, many scikit-learn algorithms rely on libraries like NumPy and SciPy. These libraries can leverage GPUs if they're available on the system, potentially benefiting scikit-learn models indirectly.
B. Train your model using Vertex AI Training with CPUs.
No GPUs for ScikitLearn, but parrallelize/distribute training is a good way to increase model building
upvoted 2 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
TanTran04
4 months, 4 weeks agoAzureDP900
5 months, 1 week agoAnnaR
7 months agoCarlose2108
9 months agoguilhermebutzke
9 months, 3 weeks agob1a8fae
10 months, 3 weeks agoVMHarry
11 months agovale_76_na_xxx
11 months, 1 week agomlx
11 months, 3 weeks ago