1 00:00:01,000 --> 00:00:09,300 [Hal Turing] Alrighty! Thanks for tuning in! Hello AI world! I am your host, Hal Turing, and my co-host is Dr. Ada Shannon. 2 00:00:09,300 --> 00:00:36,475 [Hal Turing] Today's paper is "Architecting for Hardware Diversity: Meta's End-to-End Co-Design for High-Performance AI Training on AMD GPUs." It's from Haoyu Zhang and colleagues at Meta and AMD, posted in October 2026. The claim is that AMD's MI350X can train Meta's production recommendation models at roughly the throughput of NVIDIA's B200. That's a big claim about a market NVIDIA has owned. 3 00:00:36,475 --> 00:00:58,200 [Dr. Ada Shannon] It's the first report I know of from a hyperscaler on production AMD training for recommendation models. Two things are worth keeping in mind from the start. The result depends heavily on the model recipe changing, not just on a port. And several co-authors, including Muhammad Osama, Ryan Swann and Xiaohu Guo, are AMD engineers. That doesn't invalidate anything, but it affects how independent the comparison is. 4 00:00:58,200 --> 00:01:03,350 [Hal Turing] Why does Meta want AMD at all? Is NVIDIA not working for them? 5 00:01:03,350 --> 00:01:27,099 [Dr. Ada Shannon] It works fine. Meta wants a heterogeneous fleet of NVIDIA, AMD and its own MTIA chips, for cost, supply resilience and matching workloads to hardware. The obstacle is years of NVIDIA-specific optimization baked into the code. AMD inference is already large at Meta. Training is harder: every GPU runs in lockstep, so one slow kernel stalls everyone, and you need backward kernels, optimizer support, and tuning that generalizes instead of per-job hand work. 6 00:01:27,099 --> 00:01:35,399 [Hal Turing] And the models are recommendation models, not LLMs. Most of my intuition is LLM-shaped, so what's different? 7 00:01:35,399 --> 00:01:57,649 [Dr. Ada Shannon] A deep learning recommendation model, or DLRM, has a sparse part and a dense part. The sparse part is embedding tables. Each ID, like a user or an item, maps to a learned vector, and production tables can reach terabytes. The dense part is layers that learn interactions between those vectors and predict click or engagement. This was laid out in the 2019 DLRM paper by Maxim Naumov, Dheevatsa Mudigere and others at Facebook AI. 8 00:01:57,649 --> 00:02:01,599 [Hal Turing] So the memory is in the tables, not the compute. 9 00:02:01,599 --> 00:02:25,824 [Dr. Ada Shannon] Right. Lookups are irregular gathers, so capacity and bandwidth dominate. The tables are sharded across GPUs, which means heavy all-to-all communication. The dense layers produce many odd-shaped matrix multiplies instead of a few big uniform ones. Production also has a fragmented zoo of ranking and ads models, so you get a long tail of distinct kernels. Embedding backward passes lean on atomic updates, which gets painful on new hardware. LLMs are far more uniform. 10 00:02:25,824 --> 00:02:31,524 [Hal Turing] Is that changing? I keep hearing recommenders are turning into transformers. 11 00:02:31,524 --> 00:02:48,424 [Dr. Ada Shannon] Yes. Meta's HSTU, from Jiaqi Zhai and colleagues in 2024, treats recommendation as sequence transduction, and Wukong and Kunlun push dense scaling too. That raises the share of dense compute, which is where AMD's matrix performance matters. 12 00:02:48,424 --> 00:02:50,924 [Hal Turing] Let's compare the chips, then. 13 00:02:50,924 --> 00:03:26,824 [Dr. Ada Shannon] On paper they're close. Peak BF16 is about 2,300 teraflops for the MI350X and about 2,250 for the B200, and HBM bandwidth is about 8 terabytes per second on both. HBM is the GPU's on-package memory. The differences are capacity and interconnect. The MI350X has 288 gigabytes against 180, about 1.6 times more. The B200 has faster scale-up bandwidth between GPUs, 900 versus 538 gigabytes per second, plus native TF32 and larger shared memory. 14 00:03:26,824 --> 00:03:29,824 [Hal Turing] Any difference in how they're run? 15 00:03:29,824 --> 00:03:43,324 [Dr. Ada Shannon] Yes, and I'll flag it now and come back to it later. In Meta's deployment the MI350X runs at 1000 watts, while the B200 is capped at 750. Hold that thought. 16 00:03:43,324 --> 00:03:50,774 [Hal Turing] Noted. Now, the paper says "co-design." Meta did that before, in the 2022 ZionEX paper. 17 00:03:50,774 --> 00:04:11,774 [Dr. Ada Shannon] That's Software-Hardware Co-design for Fast and Scalable Training of Deep Learning Recommendation Models, by Dheevatsa Mudigere and colleagues at Meta. Co-design there meant building the platform: the cluster topology, the network, 4D parallelism and embedding sharding. Here Meta doesn't design the chip. It buys a vendor part, so co-design means adapting the model and training recipe to what that chip makes cheap. 18 00:04:11,774 --> 00:04:15,349 [Hal Turing] And what does the MI350X make cheap? 19 00:04:15,349 --> 00:04:39,474 [Dr. Ada Shannon] Memory capacity. Take activation checkpointing. Training normally stores intermediate activations for the backward pass. Checkpointing saves memory by throwing some away and recomputing them later, which costs throughput. With more HBM you can skip it, use larger batches, relax the sharding plan, keep embeddings in HBM, or build bigger models. FlashAttention, from Tri Dao and colleagues at Stanford in 2022, is a familiar example of reshaping work around a memory hierarchy. 20 00:04:39,474 --> 00:04:45,924 [Hal Turing] The catch is that a recipe changed for one chip isn't a like-for-like comparison. 21 00:04:45,924 --> 00:04:55,550 [Dr. Ada Shannon] Correct, and it also leaves you maintaining validated model variants per hardware type. Meta accepts that cost because of the fleet strategy. 22 00:04:55,550 --> 00:04:59,425 [Hal Turing] One more term before we go on: GEMM. 23 00:04:59,425 --> 00:05:16,200 [Dr. Ada Shannon] General matrix multiply, the core operation of dense layers. The GPU computes the output in tiles, and tile size and shape strongly affect speed. Picking the best tile for each matrix shape is kernel selection, and recommenders have a lot of odd shapes. 24 00:05:16,200 --> 00:05:19,775 [Hal Turing] So what's the research question, in one breath? 25 00:05:19,775 --> 00:05:49,300 [Dr. Ada Shannon] Can the MI350X match the B200 on Meta's production training, and is the reported parity a fair comparison? The paper rests on three ideas. First, co-design: use the extra memory to change the recipe. Second, an analytical GEMM model that predicts the best tile from hardware parameters, instead of benchmarking candidates. Third, agentic porting: coding agents that translate CUDA kernels to AMD and tune them against profiler feedback. We'll take the second and third next, and then check how well the evidence supports the headline. 26 00:05:49,300 --> 00:05:58,625 [Hal Turing] Okay, the hardware is set up. Now the part I can't picture: how do you pick the right tile for a matrix multiply without just trying them all? 27 00:05:58,625 --> 00:06:20,275 [Dr. Ada Shannon] Meta's answer is Origami, a closed-form cost model. For each candidate tile it estimates the compute time. Then it estimates how many bytes move through the L2 cache, the last-level cache, and HBM, and takes whichever is slower, compute or memory, per step of the K loop. It adds a startup and a store cost, and picks the tile with the lowest predicted latency. The search finishes in microseconds. 28 00:06:20,275 --> 00:06:23,250 [Hal Turing] Where does the chiplet design come in? 29 00:06:23,250 --> 00:06:45,800 [Dr. Ada Shannon] MI350X has eight compute dies, and each die has its own private L2. The cache hit rate depends on which workgroups sit on the same die and share tiles. So the model predicts hit rates from how many workgroups share a cache, then cascades the misses downward. It also models wave quantization. If 20 tiles run on 8 compute units, the last round leaves 4 idle. Stream-K, which splits work along K, and the grid size are chosen to shrink that tail. 30 00:06:45,800 --> 00:06:48,975 [Hal Turing] And the claim is it finds good tiles? 31 00:06:48,975 --> 00:07:29,025 [Dr. Ada Shannon] On production shapes, it reaches 93% average selection efficiency against exhaustively autotuned kernels, across datatypes and transposes. It's also in tritonBLAS, so selection needs no warmup. The caveat is that 93% is an average. There's no distribution, so we can't see the worst shapes. The closest prior work is tritonBLAS itself, from Ryan Swann, Muhammad Osama and Xiaohu Guo at AMD in 2025. The paper doesn't measure Origami against it. It also doesn't compare against search-based tuners like Ansor, from Lianmin Zheng at Berkeley in 2020, which it doesn't cite. So what Origami adds is chiplet modeling and production validation, with no head-to-head. 32 00:07:29,025 --> 00:07:36,550 [Hal Turing] Fair enough. Now, the power section. How does a chip rated at 1000 watts run above 1000? 33 00:07:36,550 --> 00:07:57,475 [Dr. Ada Shannon] The Open Compute spec allows short bursts above the rated power, from 1.1 times over 20 milliseconds up to 2 times over 20 microseconds. Meta's platform goes further, supporting an average of 1.36 times over 50 milliseconds. Meta tuned the control loop so compute-heavy kernels borrow that headroom between lighter phases like communication. 34 00:07:57,475 --> 00:07:59,125 [Hal Turing] What did it buy? 35 00:07:59,125 --> 00:08:17,225 [Dr. Ada Shannon] On a synthetic microbenchmark, up to 1.33 times, depending on how much of the time is matrix multiply and how long each kernel runs. In production training, 3 to 6% end to end. What's missing is a per-model breakdown of that gain. We'll come back to what it means for the headline. 36 00:08:17,225 --> 00:08:20,625 [Hal Turing] Then communication. Where did they start? 37 00:08:20,625 --> 00:08:44,825 [Dr. Ada Shannon] Roughly twice as slow as NVIDIA's NCCL, and they got within 10 to 15%. They replaced the LL128 low-latency protocol with LL64, which doubled AllGather and ReduceScatter. AllToAll uses a single queue pair. They also added a direct AllGather and batched point-to-point sends, which cut AllToAll latency 40% at 128 GPUs. There's also a Shampoo optimizer and eigendecomposition library fix, but that's an aside. 38 00:08:44,825 --> 00:08:52,225 [Hal Turing] The kernels were the part I most wanted explained. Hipify translates CUDA mechanically. What does it miss? 39 00:08:52,225 --> 00:09:27,250 [Dr. Ada Shannon] Performance. A kernel assuming 32-thread warps runs on 64-thread wavefronts, and tuning choices differ. NVIDIA's memory-copy hardware favors deep pipelines, but MI350X lacks it, so shallower ones win. The five Triton techniques are chiplet-aware program-ID swizzling, occupancy hints, 16-by-16 matrix instructions, those pipeline depths, and a cheaper GeLU. Together they took one attention forward kernel from 1.47 to 0.59 milliseconds, and another from the HSTU recommendation model about 3.2 times faster. 40 00:09:27,250 --> 00:09:30,400 [Hal Turing] What about the atomics problem you mentioned? 41 00:09:30,400 --> 00:10:02,775 [Dr. Ada Shannon] When thousands of threads add to one counter, each update may need coherence across dies, and those updates serialize. The paper reports MI350X over 10 times slower than B200 on atomic-heavy kernels. The fix is a tree reduction. Threads sum in on-chip memory first, and one thread issues one atomic per block. On the bounds-check kernel that gave up to 4.3 times. On a jagged flash attention kernel, it went from twice as slow as B200 to 15 to 20% faster, about 25% end to end. 42 00:10:02,775 --> 00:10:05,300 [Hal Turing] And agents do this now? 43 00:10:05,300 --> 00:10:27,375 [Dr. Ada Shannon] That's the claim. Agents, built on Meta's KernelEvolve framework, compile, fix errors, profile, match the bottleneck to a codified skill like tree reduction, generate a candidate, then check numerics and speed. They report over 80% success on dozens of Triton kernels, near-expert performance, and an order of magnitude less development time. But the evaluation is deferred to the KernelEvolve work. Nothing here breaks down failures. 44 00:10:27,375 --> 00:10:31,575 [Hal Turing] So back to the question I care about. Does the chip match? 45 00:10:31,575 --> 00:10:59,500 [Dr. Ada Shannon] At the same GPU count and batch size, across ten production models, the geometric mean is 101.2% of B200 throughput. I recomputed it from their table and it holds. But look at the spread. MI350X is slower on six models and faster on four. Drop the two biggest wins, models J and C, and the average falls to roughly 96%. The mean is real, but it's a few large wins offsetting a cluster of 92 to 96% results. 46 00:10:59,500 --> 00:11:02,950 [Hal Turing] Is the memory advantage in that number? 47 00:11:02,950 --> 00:11:32,725 [Dr. Ada Shannon] No, and that matters. Those are matched-batch runs. The co-design results are separate. On a GPT-style model, the AMD card trains about 96 examples per second with no recomputation, while the NVIDIA card manages about 71 because it recomputes activations to fit. On a feed-ranking model, bigger batches, no checkpointing and embedding placement stack to 1.26 times. Those come from changing the recipe, so they aren't like-for-like hardware comparisons, and each is a single model without variance. 48 00:11:32,725 --> 00:11:35,950 [Hal Turing] Last thing. Does it train the same model? 49 00:11:35,950 --> 00:11:54,100 [Dr. Ada Shannon] They report loss within 0.3% and normalized entropy within about one ten-thousandth of NVIDIA at multi-thousand-GPU scale. They say reliability is converging, with mitigations for silent data corruption. That supports validity, but it doesn't change the throughput picture. 50 00:11:54,100 --> 00:12:07,425 [Hal Turing] Part of the headline bothers me. The paper says parity, but one card is capped at 750 watts and the other runs at 1000, with a power boost on top. Is that a fair comparison? 51 00:12:07,425 --> 00:12:27,775 [Dr. Ada Shannon] It's fair for one question and silent on another. Both cards ran on Meta's air-cooled platform in the configuration Meta deploys, so it answers what Meta gets in its fleet. It does not answer what a stock MI350X does against a stock B200 at the standard 1000 watt HGX setting. There is no B200 number at 1000 watts anywhere in the paper. 52 00:12:27,775 --> 00:12:30,975 [Hal Turing] And the boost is bigger than the margin. 53 00:12:30,975 --> 00:13:07,075 [Dr. Ada Shannon] Yes. The boost is worth three to six percent end to end, and the lead is 1.2 percent. Divide 101.2 by 1.06 and you get about 95.5. Divide by 1.03 and you get about 98.2. That assumes the boost applies uniformly across models, which the paper doesn't state. So without the boost, it plausibly lands a few points below B200. The paper also concedes performance per watt favors B200. Its claim that power is a small share of a capital-dominated total cost of ownership comes with no prices, power costs or utilization, so I can't check the lower-cost conclusion. 54 00:13:07,075 --> 00:13:10,475 [Hal Turing] What about the statistics on the ten models? 55 00:13:10,475 --> 00:13:23,150 [Dr. Ada Shannon] There's no run count or variance. So the gaps of a couple of percent on models D, H and I can't be called wins or losses. 'Matches' and 'parity' are claims about the mean only. 56 00:13:23,150 --> 00:13:29,776 [Hal Turing] The biggest wins are attributed to small-message AllToAll communication. Does that hold up? 57 00:13:29,776 --> 00:13:49,751 [Dr. Ada Shannon] It's plausible, given the single-queue-pair and batching changes. But B200 has higher scale-up bandwidth, and the kernel traces don't capture communication hidden behind compute. The paper says as much. So it's an inference. A per-model ablation of the RCCL changes, or runs with communication disabled, would settle it. 58 00:13:49,751 --> 00:13:53,226 [Hal Turing] And the weak side is matrix multiply. 59 00:13:53,226 --> 00:14:15,076 [Dr. Ada Shannon] The matrix-multiply kernels take roughly a third to seven-tenths longer, mostly because TF32 is emulated with three BF16 multiplies. The paper attributes most of model A's 82 percent to that, and the Inductor transformer kernels run about 30 percent slower. This gives a testable prediction: models moving to BF16 and below should close the gap, and TF32-heavy ones shouldn't. 60 00:14:15,076 --> 00:14:19,676 [Hal Turing] How does the co-design story compare with the earlier Meta work? 61 00:14:19,676 --> 00:14:47,501 [Dr. Ada Shannon] The 2022 paper co-designed a platform and network. Here the chip is vendor-supplied, so the lever is adapting the recipe to 288 gigabytes. The boundary is that a team has to own those model changes, and the equal-batch parity numbers exclude them. There's also an unexplained inconsistency: the introduction says 20 percent, but the feed-ranking ablation shows 1.26 times. And the claim that B200 would need more nodes for deeper models is asserted, not measured. 62 00:14:47,501 --> 00:14:52,976 [Hal Turing] Is the tooling better supported? Origami's 93 percent, the agents? 63 00:14:52,976 --> 00:15:30,176 [Dr. Ada Shannon] Less so. Ninety-three percent is an average with no distribution, so poorly chosen shapes could hide inside it. As I said, there's no comparison against tritonBLAS or a learned tuner like Ansor, so Origami's added value is unmeasured against alternatives. 'Substitute a handful of constants' for other chips is asserted, not shown. The agents' eighty percent success has no failure analysis here, and the headline case, jagged flash attention, is a well-known atomics pattern the skill library already encodes. So it looks more like applying a codified rule than discovering something new. 64 00:15:30,176 --> 00:15:35,751 [Hal Turing] Independence matters too, with AMD engineers among the co-authors. 65 00:15:35,751 --> 00:15:49,351 [Dr. Ada Shannon] Right. The models are internal and unreproducible, the study covers recommendation models only, there's no cost data, and the B200 is described as heavily optimized but not independently verified. 66 00:15:49,351 --> 00:15:53,076 [Hal Turing] So what should a team running mixed GPUs do? 67 00:15:53,076 --> 00:16:11,702 [Dr. Ada Shannon] Treat memory capacity as a design variable. Port communication-heavy and attention-heavy models first, and expect the TF32 matrix-multiply models to lag. Use analytical selection, because tuning tables don't scale to thousands of shapes. And budget for owning a recipe per chip. 68 00:16:11,702 --> 00:16:30,527 [Hal Turing] Closing it out: with engineering effort and a recipe adapted to the extra memory, the MI350X runs Meta's production recommendation training at roughly B200 throughput at the same GPU count, with big kernel wins and a matrix-multiply deficit. 69 00:16:30,527 --> 00:16:44,377 [Dr. Ada Shannon] And the boundary is that it's a mean of mixed results, a boosted MI350X against a power-capped B200, with no variance or cost numbers. It isn't a statement about the two chips in general. 70 00:16:44,377 --> 00:16:48,227 [Hal Turing] Thanks for listening, everyone. See you next time.