Scattered Mixture-of-Experts Implementation

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Tan, Shawn, Shen, Yikang, Panda, Rameswar, Courville, Aaron
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866914963813040128
author Tan, Shawn
Shen, Yikang
Panda, Rameswar
Courville, Aaron
author_facet Tan, Shawn
Shen, Yikang
Panda, Rameswar
Courville, Aaron
contents We present ScatterMoE, an implementation of Sparse Mixture-of-Experts (SMoE) on GPUs. ScatterMoE builds upon existing implementations, and overcoming some of the limitations to improve inference and training speed, and memory footprint. This implementation achieves this by avoiding padding and making excessive copies of the input. We introduce ParallelLinear, the main component we use to build our implementation and the various kernels used to speed up the operation. We benchmark our implementation against Megablocks, and show that it enables a higher throughput and lower memory footprint. We also show how ParallelLinear enables extension of the Mixture-of-Experts concept by demonstrating with an implementation of Mixture of Attention.
format Preprint
id arxiv_https___arxiv_org_abs_2403_08245
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Scattered Mixture-of-Experts Implementation
Tan, Shawn
Shen, Yikang
Panda, Rameswar
Courville, Aaron
Machine Learning
Distributed, Parallel, and Cluster Computing
We present ScatterMoE, an implementation of Sparse Mixture-of-Experts (SMoE) on GPUs. ScatterMoE builds upon existing implementations, and overcoming some of the limitations to improve inference and training speed, and memory footprint. This implementation achieves this by avoiding padding and making excessive copies of the input. We introduce ParallelLinear, the main component we use to build our implementation and the various kernels used to speed up the operation. We benchmark our implementation against Megablocks, and show that it enables a higher throughput and lower memory footprint. We also show how ParallelLinear enables extension of the Mixture-of-Experts concept by demonstrating with an implementation of Mixture of Attention.
title Scattered Mixture-of-Experts Implementation
topic Machine Learning
Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2403.08245