nerdexam
Google

PROFESSIONAL-MACHINE-LEARNING-ENGINEER · Question #109

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.

The correct answer is C. Train your model with DLVM images on Vertex AI, and ensure that your code utilizes NumPy and. DLVM (Deep Learning VM) images on Vertex AI come pre-installed with hardware-optimized numerical libraries such as Intel MKL-accelerated NumPy and SciPy. Since scikit-learn heavily relies on NumPy under the hood, running it on a DLVM ensures those operations use optimized BLAS/LA

Submitted by miguelv· Apr 18, 2026ML model development

Question

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?

Options

  • AMigrate your model to TensorFlow, and train it using Vertex AI Training.
  • BTrain your model in a distributed mode using multiple Compute Engine VMs.
  • CTrain your model with DLVM images on Vertex AI, and ensure that your code utilizes NumPy and
  • DTrain your model using Vertex AI Training with GPUs.

How the community answered

(54 responses)
  • A
    6% (3)
  • B
    4% (2)
  • C
    80% (43)
  • D
    11% (6)

Explanation

DLVM (Deep Learning VM) images on Vertex AI come pre-installed with hardware-optimized numerical libraries such as Intel MKL-accelerated NumPy and SciPy. Since scikit-learn heavily relies on NumPy under the hood, running it on a DLVM ensures those operations use optimized BLAS/LAPACK routines - providing a meaningful speedup with minimal code changes. This should be tried first because it is the least invasive option. scikit-learn has no native GPU support, so adding GPUs (D) would require significant refactoring. Migrating to TensorFlow (A) is a major rewrite. Distributed training across multiple VMs (B) requires rearchitecting the training loop.

Topics

#Vertex AI Training#Scikit-learn optimization#Performance tuning#Optimized libraries

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-MACHINE-LEARNING-ENGINEER Practice