ZAYA 1 MoE: Training Foundation Models on a Full-Stack AMD Platform
Quick Overview
AMD achieved significant training efficiency gains for foundation models on their full-stack platform by employing a novel, custom-designed kernel architecture called ZAYA 1 MoE, which optimizes data movement and reduces redundant computations compared to standard methods.
Key Points: The ZAYA 1 MoE architecture achieved a 40% increase in iteration time compared to the standard Mixtral 8x7B model when training on the AMD platform. The model achieved 3.33 teraflops per second (TFLOPS/s) aggregate bandwidth, significantly higher than the 8x7B model's performance. The authors used custom-fused HIP kernels and implemented a strategy to reduce latent space memory usage by having each GPU node act as a dedicated page cache for the most recent checkpoint. The ZAYA 1 MoE design proved superior to the standard linear gate approach, effectively eliminating the bottleneck caused by excessive data movement in the standard setup. The paper highlights the success of the custom architecture in achieving peak throughput (around 300 GFLOPS) for a roughly 4B parameter dense model equivalent, validating the design choices. The authors specifically replaced the standard linear gate with a compact MLP featuring MoE-style routing, which smartly distributes computation across the 8 expert paths. The final implementation successfully avoided common pitfalls like silent data corruption or relying on slower residual stream checkpoints.
Context: The video details the technical implementation and results of training large language foundation models, specifically focusing on AMD's hardware and software stack, known as the full-stack approach. The core concept revolves around overcoming communication and memory bottlenecks inherent in Mixture-of-Experts (MoE) models like Mixtral, particularly when deploying them across multiple GPUs.
Detailed Analysis
The presenters discuss a major engineering paper detailing the training of foundation models on a full-stack AMD platform, specifically utilizing the MI300X GPUs and the ROCm software stack. The key achievement is the introduction of a novel architecture, ZAYA 1 MoE, designed to address the major bottleneck in MoE models: data movement and memory usage. The authors implemented custom-fused HIP kernels and a strategy where each GPU node acts as a dedicated page cache for the most recent checkpoint, avoiding slow residual stream transfers. This custom approach, which replaced the standard linear gate with a compact MLP featuring MoE-style routing, resulted in significant performance gains. For example, the ZAYA 1 MoE model achieved an iteration time improvement of 40% over the standard Mixtral 8x7B baseline and sustained 3.33 TFLOPS/s aggregate bandwidth. The design also proved highly efficient for both large-scale clusters and smaller consumer GPUs, delivering peak performance (around 300 GFLOPS) for a 4B parameter dense model equivalent while requiring significantly less memory overhead than older methods. The engineers essentially implemented a proactive automation system to manage memory and communication efficiently, validating their co-design methodology.