cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Cluster Configuration for ML Model Training

johnb1
Contributor

Hi!

I am training a Random Forest (pyspark.ml.classification.RandomForestClassifier) on Databricks with 1,000,000 training examples and 25 features. I employ a cluster with one driver (16 GB Memory, 4 Cores), 2-6 workers (32-96 GB Memory, 8-24 Cores), and a 11.3.x-cpu-ml-scala2.12 runtime. I use default values for most hyperparameters, and maxDepth=18 and numTrees=150 (no tuning). Runtime of training is 80 min.

What parameters should I play around with to efficiently speed up training (i.e. w/o wasting resources)? I am already leveraging multiple nodes, right? What about max number of workers, worker type (general purpose, memory optimized, compute optimized, hdd, delta cache accelerated), GPU, spot instances, autoscaling, photon acceleration?

Your input would be highly appreciated!

3 REPLIES 3

karthik_p
Esteemed Contributor

@John Bโ€‹ It can be based on use case, but for ML jobs ( Deep learning etc..), you can go with GPU cluster, as it will be faster compared to normal cluster . as for ML Runtime Photon is not supported . once you are comfortable with final sizing you can schedule as job

Anonymous
Not applicable

Hi @John Bโ€‹ 

Hope everything is going great.

Just wanted to check in if you were able to resolve your issue. If yes, would you be happy to mark an answer as best so that other members can find the solution more quickly? If not, please tell us so we can help you. 

Cheers!

Hi @Vidula Khannaโ€‹ 

Unfortunately no answer was yet provided which helped me to resolve my issue.

John.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group