MacMusic  |  PcMusic  |  440 Software  |  440 Forums  |  440TV  |  Zicos
gpipe
Recherche

Google Open-Sources GPipe, a Library For Training Large Deep Neural Networks

mardi 5 mars 2019, 23:03 , par Slashdot
An anonymous reader quotes a report from VentureBeat: Google's AI research division today open-sourced GPipe, a library for 'efficiently' training deep neural networks (layered functions modeled after neurons) under Lingvo, a TensorFlow framework for sequence modeling. It's applicable to any network consisting of multiple sequential layers, Google AI software engineer Yanping Huang said in a blog post, and allows researchers to 'easily' scale performance. As Huang and colleagues explain in an accompanying paper ('GPipe: Efficient Training of Giant Neural Networks using Pipeline Parallelism'), GPipe implements two nifty AI training techniques. One is synchronous stochastic gradient descent, an optimization algorithm used to update a given AI model's parameters, and the other is pipeline parallelism, a task execution system in which one step's output is streamed as input to the next step.

Most of GPipe's performance gains come from better memory allocation for AI models. On second-generation Google Cloud tensor processing units (TPUs), each of which contains eight processor cores and 64 GB memory (8 GB per core), GPipe reduced intermediate memory usage from 6.26 GB to 3.46GB, enabling 318 million parameters on a single accelerator core. Without GPipe, Huang says, a single core can only train up to 82 million model parameters. That's not GPipe's only advantage. It partitions models across different accelerators and automatically splits miniature batches (i.e., 'mini-batches') of training examples into smaller 'micro-batches,' and it pipelines execution across the micro-batches. This enables cores to operate in parallel, and furthermore accumulate gradients across the micro-batches, thereby preventing the partitions from affecting model quality.

Read more of this story at Slashdot.
rss.slashdot.org/~r/Slashdot/slashdot/~3/exzNlQ8jEH0/google-open-sources-gpipe-a-library-for-trainin...
News copyright owned by their original publishers | Copyright © 2004 - 2024 Zicos / 440Network
Date Actuelle
mar. 30 avril - 09:03 CEST