Lead story
Models & availability
Latest
Lead story
Models & availability
Latest
This blog post introduces Mixture of Experts (MoEs) in Transformers, explaining how sparse feed-forward layers replace dense layers to improve compute efficiency, and details the engineering work in the transformers library to support MoEs, including a weight loading refactor, expert backend, and expert parallelism.
From the source
Making MoEs first-class citizens in transformers means redesigning parts of the loading pipeline, execution model, and distributed abstractions, not just adding new model classes.
huggingface.co