cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Cluster Configuration for ML Model Training

johnb1
New Contributor III

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!

johnb1
New Contributor III

Hi @Vidula Khanna​ 

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

John.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.