Training deep networks on the cluster