News for hackers. Stuff that matters.
Re:Deep Learning with Spark and TensorFlow by hcrisp on Monday January 25, 2016 @01:08PM (#10968748)
Impressive, 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-Python workers in an embarrassingly-parallel way. Seems to me that you would just move onto an HPC and use TensorFlow within a IPython.parallel paradigm and be done much sooner.
Re:Deep Learning with Spark and TensorFlow by rxin on Monday January 25, 2016 @01:27PM (#10968862)
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 by gcr on Monday January 25, 2016 @02:11PM (#10969181)
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 training proportionally slower.
Re:Deep Learning with Spark and TensorFlow by rxin on Monday January 25, 2016 @02:19PM (#10969230)
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 by doobwa on Monday January 25, 2016 @03:02PM (#10969548)
Why not just use GNU Parallel (or something similar) instead of Spark?
Re:Deep Learning with Spark and TensorFlow by elyase on Monday January 25, 2016 @04:22PM (#10970040)
I think this could have been done with GNU parallel. One advantage I see with Spark is that is that it is easier to interact with Python, for example these two lines are all is needed to call the relevant Python function:

  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.
Re:Deep Learning with Spark and TensorFlow by orm on Monday January 25, 2016 @05:40PM (#10970567)
I think one reason would fault tolerance. Is there a fault tolerance layer in GNU parallel? last time I checked their homepage ( a few minutes ago), there was no reference to fault tolerance.

Another reason is, perhaps, scheduling.

Re:Deep Learning with Spark and TensorFlow by chimtim on Monday January 25, 2016 @09:32PM (#10971522)
what fault tolerance does spark give you in this scheme? It cannot look into TF progress and checkpoint all state. Using Spark with TF, seems like an overkill -- you need to manage and install two framework what should ideally be a 200 line python wrapper or small mesos framework at most.
Re:Deep Learning with Spark and TensorFlow by ole_tange on Tuesday January 26, 2016 @02:43AM (#10972330)
Does --retries count as fault tolerance?
Re:Deep Learning with Spark and TensorFlow by gcr on Monday January 25, 2016 @08:55PM (#10971410)
Oh dear. You're right, sorry. Shouldn't have commented before actually reading the article...