arXiv:2610.22230cs.DCOct 2026

Manuscript Offprint

arXiv:2610.22230

Architecting for Hardware Diversity: Meta's End-to-End Co-Design for High-Performance AI Training on AMD GPUs

Haoyu Zhang, Arshad Rahman, Adnan Aziz, Ajith Prabhudev, Amin Farmahini, Ben Rhoads, Benson Ma, Brian Shi, Cen Zhao, CK Luk, Dingming Wu, Emad El-Haraty, Eric Chen, Frank Li, Gary Huang, Gefei Zuo, Haoran Zhang, Hiwot Kassa, Hongyi Zeng, Jack Taylor, Jeremy Hadidjojo, John Donati, Jonathan Sheffield, Julio Machado Silva, Karthik Ganesan, Kent Russell, KR Kishore, Lei Tian, Liu Ke, Muhammad Osama, Peng Chen, Rakesh Hemnani, Ryan Swann, Saleel Kudchadker, Shankar Yanamandram, Shobhit Kanaujia, Shucai Xiao, Srinath Bayareddy, Srinivas Vaidyanathan, Sudharssun Subramanian, Supadchaya Puangpontip, Taylor Robie, Tianhao Huang, Tyler Hart, Viswesh Sankaran, Weijun Jiang, Wenkai Du, Xiaodong Wang, Xiaohu Guo, Yao Rong, Yinbin Ma, Yue Dong, Yuzhen Huang, Yvonne Liu, Zhan Shu, Dan Rabinovitsj, Ajit Mathews, Chunqiang Tang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Haoyu Zhang*, Arshad Rahman†, Adnan Aziz*, Ajith Prabhudev*, Amin Farmahini*, Ben Rhoads*, Benson Ma*, Brian Shi†, Cen Zhao*, CK Luk*, Dingming Wu*, Emad El-Haraty*, Eric Chen*, Frank Li*, Gary Huang*, Gefei Zuo*, Haoran Zhang*, Hiwot Kassa*, Hongyi Zeng*, Jack Taylor†, Jeremy Hadidjojo*, John Donati*, Jonathan Sheffield*, Julio Machado Silva†, Karthik Ganesan*, Kent Russell†, KR Kishore*, Lei Tian*, Liu Ke*, Muhammad Osama†, Peng Chen*, Rakesh Hemnani*, Ryan Swann†, Saleel Kudchadker†, Shankar Yanamandram*, Shobhit Kanaujia*, Shucai Xiao†, Srinath Bayareddy*, Srinivas Vaidyanathan*, Sudharssun Subramanian*, Supadchaya Puangpontip*, Taylor Robie*, Tianhao Huang*, Tyler Hart*, Viswesh Sankaran*, Weijun Jiang†, Wenkai Du†, Xiaodong Wang*, Xiaohu Guo†, Yao Rong*, Yinbin Ma*, Yue Dong*, Yuzhen Huang*, Yvonne Liu*, Zhan Shu*, Dan Rabinovitsj*, Ajit Mathews*, Chunqiang Tang*

∗^{*}Meta

†^{\dagger}AMD

Abstract—Meta deploys a heterogeneous fleet comprising NVIDIA GPUs, AMD GPUs, and proprietary MTIA accelerators to reduce costs and mitigate vendor lock-in. However, the extensive history of NVIDIA-specific optimizations hinders performance portability to other hardware. This paper presents our methods for optimizing alternative accelerators, using AMD Instinct™ MI350X versus NVIDIA B200 for recommendation model training as a case study. We propose three reusable principles. First, hardware-model co-design is essential: rather than directly porting models from NVIDIA GPUs, revising model structures and software recipes allows full exploitation of accelerator-specific strengths (e.g., MI350X's 1.6× HBM capacity relative to B200). Second, our analytical performance model enables zero-warmup optimal kernel selection across diverse datatypes and matrix shapes in production models, drastically simplifying tuning. Third, increasingly mature agentic workflows have lowered the barrier to porting from the CUDA ecosystem; we extend these workflows for microarchitecture-aware kernel optimizations and custom shim generation. Compared to the directly ported baseline, these methods deliver up to 1.5× improvement in end-to-end training throughput. To our knowledge, this is the first hyperscaler report on productionizing AMD GPUs for large-scale training. Our contributions have been upstreamed to the open-source PyTorch, Triton, and ROCm ecosystems.

Index Terms—Accelerators, DLRM, GPU, kernels, machine learning, recommendation systems

I. INTRODUCTION

The immense potential of AI applications has catalyzed an unprecedented expansion in the accelerator landscape. While NVIDIA remains the incumbent platform, the AMD Instinct™ [1, 2] GPU has emerged as a viable alternative. Meanwhile, hyperscalers have also developed custom silicon, including Meta MTIA [3–6], Google TPU [7], Amazon Trainium [8], Microsoft Maia [9], Huawei Ascend [10], Alibaba Hanguang [11], and Baidu Kunlun [12].

Capitalizing on this hardware proliferation, Meta deploys a heterogeneous fleet comprising NVIDIA GPUs, AMD GPUs, and proprietary MTIA accelerators at scale. This strategic diversification delivers several benefits: (1) enabling cost optimization by preserving the flexibility to adopt the most economical solutions as the market evolves; (2) strengthening supply-chain resilience; and (3) matching model characteristics to the most suitable hardware.

However, the extensive history of NVIDIA-specific optimizations hinders performance portability to other hardware. For example, fundamental differences in memory hierarchies and execution units (e.g., 32-thread warps vs. 64-thread wavefronts) thwart direct software migration between NVIDIA and AMD GPUs. These challenges are most acute in deep learning recommendation models (DLRMs) [13, 14]. Unlike the relatively uniform large language models (LLMs), DLRMs are characterized by diverse model architectures, fragmented compute kernel sets, irregular matrix dimensions, and complex memory access patterns.

While industry adoption of AMD GPUs has largely focused on inference—evidenced by Meta’s deployment of hundreds of thousands of AMD GPUs—distributed training presents a far greater technical challenge. This paper delivers the first hyperscaler report of enabling AMD GPUs for production-scale DLRM training. We demonstrate that through systematic optimization, AMD MI350X achieves performance comparable to the incumbent NVIDIA B200 GPU across a diverse suite of production DLRMs. We distill our production experience into three reusable principles for new hardware integration:

Hardware-model co-design. Different accelerator microarchitectures offer distinct advantages and trade-offs. Rather than directly porting models from NVIDIA GPUs, hardware-model co-design—revising the model structure and software recipe—is essential to leverage an accelerator's specific strengths. Specifically, we exploit MI350X's 1.6×1.6 \times HBM capacity relative to B200. To maximize training efficiency, we expand per-GPU batch sizes and reduce activation checkpointing while simultaneously optimizing data or model parallelism and implementing efficient embedding re-sharding. Beyond training throughput, we utilize the additional HBM to enhance model quality by enabling longer input sequences, larger hidden dimensions, and expanded embedding tables. This holistic approach delivers a 20% training speedup and a >0.1% improvement in normalized entropy (NE) [15], demonstrating that architectural synergies can simultaneously drive improvements in both hardware efficiency and model quality.

Analytical performance model. Traditionally, selecting high-performance general matrix multiplication (GEMM) kernels relies on offline tuning—a cumbersome process that generalizes poorly across the disparate matrix dimensions common in DLRMs. We propose Origami, an analytical performance model that predicts optimal tile configurations in microseconds, achieving 93% accuracy relative to exhaustively autotuned kernels across diverse matrix shapes. While analytical models are not new, Origami extends prior approaches to multi-chiplet architectures, with accuracy validated at production scale.

Agentic workflows for kernel optimization. To reduce engineering burden and migration friction, we codify complex kernel-tuning principles into agentic workflows: automating microarchitecture-aware configuration selection, swizzling process IDs, incorporating occupancy hints, and leveraging specialized hardware instructions. Together, they achieve 1.6×−2×1.6 \times -2 \times speedups across both hand-written and compiler-generated kernels. Furthermore, we leverage agentic workflows to automate the application of solutions that address hardware-specific bottlenecks; e.g., to mitigate the performance impact of atomics on MI350X, we apply a tree-reduction algorithm that utilizes shared memory to deliver up to 4×4 \times speedup in custom kernels.

Our methods have been validated at scale, supporting production training on tens of thousands of MI350X GPUs at Meta. Across a representative set of production models, MI350X achieves a geometric-mean throughput of 101% relative to our established B200 baseline—a platform highly optimized through extensive deployment. This performance parity validates the viability of our multi-vendor diversification strategy. Limitations. While end-to-end performance is comparable, MI350X's GEMM performance remains an area for improvement, due to both the overhead of emulated TF32 GEMMs in the absence of native hardware support and the relative maturity of NVIDIA cuBLAS over AMD hipBLAS in handling irregular matrix shapes.

Although we use DLRMs to drive our optimizations, the underlying principles are generalizable to a broader spectrum of ML workloads, including LLMs. Indeed, we have successfully optimized LLM training on clusters of more than 2,000 MI350X GPUs; a comprehensive analysis of LLM-specific performance is reserved for future work.

To our knowledge, this is the first hyperscaler report on production-scale training using AMD GPUs. Our purpose is not to rank accelerators, but to share generalizable optimization methods for emerging hardware by synthesizing insights from our large-scale deployment of AMD, NVIDIA, and MTIA platforms. Our contributions have been upstreamed to the open-source PyTorch, Triton, and ROCm ecosystems.

References (55)