Deep Learning with Spark and TensorFlow
databricks.com
Deep Learning with Spark and TensorFlow
1–10 of 31 posts
Re: Deep Learning with Spark and TensorFlow
#2Re: Deep Learning with Spark and TensorFlow
#3Impressive, but it seems an inversion of paradigms. Small data to compute ratios is usually associated with high performance computing (HPC). Why use Spark when the data is small and is broadcast to each worker? You have to pay the serialization-deserialization penalties of moving the data from Python to JVM and back again. In fact the JVM isn't really needed here at all since all the computation is done in the pure-…
Re: Deep Learning with Spark and TensorFlow
#4Re: Deep Learning with Spark and TensorFlow
#5Impressive, but it seems an inversion of paradigms. Small data to compute ratios is usually associated with high performance computing (HPC). Why use Spark when the data is small and is broadcast to each worker? You have to pay the serialization-deserialization penalties of moving the data from Python to JVM and back again. In fact the JVM isn't really needed here at all since all the computation is done in the pure-…
The "broadcast" is pretty cheap because often you already have the data in some distributed file system, or if on a single node the network bandwidth is pretty high. The problem with a lot of the deep learning workloads is that it is very compute intensive and as a result takes a long time to run. For example, it is not uncommon to take a week to train some models.
Re: Deep Learning with Spark and TensorFlow
#6Earlier quoted context omitted.
The "broadcast" is pretty cheap because often you already have the data in some distributed file system, or if on a single node the network bandwidth is pretty high. The problem with a lot of the deep learning workloads is that it is very compute intensive and as a result takes a long time to run. For example, it is not uncommon to take a week to train some models.
Deep learning workloads are typically compute-intensive, but they also tend to be extremely I/O intensive, and convergence may depend on a synchronous step where all the nodes must finish making their contribution to the model before any of them can continue. (This may not be quite true though -- see Google's DistBelief paper--but most frameworks work this way). Often times, adding more machines to a cluster may make…
Re: Deep Learning with Spark and TensorFlow
#7That article reminded me of this: http://i.imgur.com/XQJ3ACO.jpg
http://go.databricks.com/hubfs/notebooks/TensorFlow/Distribu...
http://go.databricks.com/hubfs/notebooks/TensorFlow/Test_dis...
You might've missed the section "How do I use it?" Maybe we should've made that section more obvious.
Re: Deep Learning with Spark and TensorFlow
#8That article reminded me of this: http://i.imgur.com/XQJ3ACO.jpg
Re: Deep Learning with Spark and TensorFlow
#9Earlier quoted context omitted.
Deep learning workloads are typically compute-intensive, but they also tend to be extremely I/O intensive, and convergence may depend on a synchronous step where all the nodes must finish making their contribution to the model before any of them can continue. (This may not be quite true though -- see Google's DistBelief paper--but most frameworks work this way). Often times, adding more machines to a cluster may make…
Did you actually read the article? It was using Spark to parallelize hyperparameter tuning, which is embarrassingly parallel.
Re: Deep Learning with Spark and TensorFlow
#10Earlier quoted context omitted.
Did you actually read the article? It was using Spark to parallelize hyperparameter tuning, which is embarrassingly parallel.
Why not just use GNU Parallel (or something similar) instead of Spark?
urls = sc.parallelize(batched_data)
labelled_images = urls.flatMap(apply_batch)
So if you already have a cluster with Spark installed (like Databrick does) then it takes less work to just call your Python code than setting up a GNU Parallel cluster and a writing a small wrapper script. Additionally a Python script would have to load/init the models on every call from Parallel. I agree that this is not a great demonstration of Spark main strengths.