Research MoE architectures with LibMoE, proposed in this paper, using just 4 GPUs and 2 days of training.
https://arxiv.org/abs/2411.00918
π― Original Problem:
Training Mixture of Experts (MoE) models requires massive compute resources (256 H100/A100 GPUs), making research inaccessible to most academics and limiting innovation in MoE architectures.
-----
π§ Solution in this Paper:
LibMoE framework enables MoE research with just 4 A100 GPUs through:
β Modular design with customizable MoE components, router designs, and expert interactions
β Two-stage training: First trains MLP connector between visual encoder and LLM, then upcycles to MoE model
β Comprehensive evaluation pipeline supporting 100+ zero-shot benchmarks
β Integration with state-of-the-art distributed training strategies and model sharding
-----
π‘ Key Insights:
β Full training pipeline completes in 55 hours on 4 A100 GPUs, with MoE training taking 32 hours
β Final model checkpoint often doesn't give best performance, suggesting benefits of early stopping
β Complex tasks like code reasoning show lower entropy scores, indicating specialized expert usage
β Despite architectural differences, all tested MoE algorithms perform similarly across benchmarks
-----
π Results:
β Trained and evaluated 5 MoE algorithms across 11 zero-shot benchmarks
β Achieved comparable performance to models trained on 256 GPUs
β Perturbed Cosine Router showed fastest convergence in routing strategy
β Reduced training time from weeks to ~2 days on minimal hardware










