QuestionQ21

VerifiedScaling and Tuning

A Machine Learning Engineer is training a large-scale gradient-boosting model with SparkML on a cluster of machines. After several iterations, the training job fails because memory overflows on one executor node. Cluster resources are limited to executor nodes that each have 16 CPU cores and 64 GB of RAM. The engineer wants to continue model training without changing hyperparameters or reducing the dataset size. They understand Spark’s architecture well and want to leverage its advantages.

Which approach will enable the Machine Learning Engineer to resolve this issue?

Explanation

Spark supports distributed processing by partitioning data across executors. Adding executor nodes and distributing the training dataset among them lowers the memory required on each executor while preserving the complete dataset and the existing hyperparameters. SparkML gradient-boosted-tree training uses distributed data processing rather than model parallelism that splits a single gradient-boosting model across executors.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!