Article complete

Google open sources Switch Transformer models in T5X/JAX

The models include the 1.6T param Switch-C and the 395B param Switch-XXL.

A hand interacting with a smartphone displaying a question mark, next to the colorful "JAX" logo on a yellow background.

Key takeaways

  • Google has open sourced Switch Transformer models, including the 1.6T param Switch-C and the 395B param Switch-XXL.
  • JAX is a machine learning library that accelerates computing through optimisations and is developed by DeepMind.
  • T5X is a flexible framework designed for high-performance inference of sequence models, particularly in language tasks.
  • The Switch Transformer employs a Mixture of Experts approach, selecting different parameters for each input to improve efficiency.
  • This model primarily supports natural language processing research, utilising an algorithm that activates a single expert for input processing.

Takeaways drafted with AI from the article text.

Check out the GitHub repository here. 

JAX (Just After eXecution) is a machine/deep learning library developed by DeepMind. All JAX operations are based on XLA or Accelerated Linear Algebra. XLA, developed by Google, is a domain-specific compiler for linear algebra that uses whole-program optimisations to accelerate computing. XLA makes BERT’s training speed faster by almost 7.3 times.

T5X

T5X is a modular, composable, research-friendly framework for high-performance, configurable, and inference of sequence models (starting with language) at many scales.

T5X allows many different classes of language tasks to be expressed uniformly, and a single encoder-decoder architecture can handle them without any task-specific parameters. 

Switch Transformer 

In deep learning, models usually reuse the same parameters for all inputs. However, the Switch Transformer uses a Mixture of Experts (MoE) and selects different parameters for each incoming example.

The model is primarily used for NLP research. The Transformer uses an algorithm called Switch Routing. Instead of activating several experts and combining the output, it chooses a single expert to work on an input. The algorithm simplifies the routing computation and reduces communication costs since individual expert models are hosted on different GPU devices.

Published Updated

Spotted an error? Tell our editors. Read our editorial standards and corrections.

Selling to AI teams? Put your brand in front of the 5M+ people who read AIM every month. Plan a campaign