#204 · Primary category: Deep Learning Frameworks
mixture-of-experts
A Pytorch implementation of Sparsely-Gated Mixture of Experts, for massively increasing the parameter count of language models
Project last updated:09/13/23
GitHub Stars
869
Forks
71
Contributors
1
License
MIT
Why we included this project
For PyTorch developers who want to scale up a transformer's parameter count without a matching jump in compute, this library provides a concrete sparsely-gated Mixture of Experts layer. It handles top-2 gating, capacity balancing, and the auxiliary loss that keeps routing stable during training, and it includes a hierarchical two-level variant for GShard-style setups. You can also slot in your own expert networks rather than using the built-in defaults. One thing to know: the author now points people to the newer st-moe-pytorch for production work, so this project mostly serves as a compact, readable reference for how the sparsely-gated mechanism works in code.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
tensorflow
An Open Source Machine Learning Framework for Everyone
pytorch
Tensors and Dynamic neural networks in Python with strong GPU acceleration
keras
Deep Learning for humans
nanoGPT
The simplest, fastest repository for training/finetuning medium-sized GPTs.
ray
Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.