ReadingResearchRadarInvestment framework
Sign in / Sign up
← Back to reading
NewsQuick take2 min readDisconfirmAI Editorial

AMD Engineers: DINOv2 Training on MI355X Shifts from CPU-Bound to GPU-Bound as Batch Size Grows

A ROCm blog post reports that Bayer's DINOv2 histopathology pretraining recipe on AMD Instinct MI355X GPUs is CPU-bound at batch size 16, meaning data loading and teacher-student coordination dominate wall-clock time rather than attention computation. Only at larger batch sizes does the workload become GPU-bound and attention backend choice matter. The authors provide strong-scaling and weak-scaling efficiency measurements showing that FSDP outperforms DDP on a single node and that weak scaling holds at 85.6% efficiency across 16 GPUs on two nodes.

2026-12-03 08:00 GMT+8

The most actionable finding from AMD's ROCm engineering team's benchmark of Bayer's DINOv2 histopathology training recipe on MI355X GPUs is not the throughput number itself but the diagnostic: at the default batch size of 16, training is CPU-bound. The GPUs wait on data loading, augmentation, and DINO teacher-student coordination rather than on attention computation. Switching attention backends made little difference in wall-clock time at that batch size.

The team compared xformers against PyTorch SDPA efficient attention at batch sizes where both backends were measured. At batch size 160 on an eight-GPU node, xformers achieved 2,207 samples/s versus 2,000 for SDPA efficient — a roughly 10% throughput gain. But this advantage only materializes once the workload has transitioned into a GPU-bound regime. The authors recommend a specific ordering: first increase batch size within memory limits to move past the CPU bottleneck, then select xformers as the attention backend at production batch sizes, and only then tune individual kernels after profiling confirms the workload is GPU-bound.

For distributed training, the recipe uses FSDP rather than DDP. On a single eight-GPU MI355X node at the same global batch size, FSDP consistently achieved lower total training time than DDP, consistent with the DINOv2 paper's observation that sharding can outperform plain DDP through faster mixed-precision communication patterns. Multi-node jobs used HYBRID_SHARD, which shards within a node and replicates across nodes.

Sign in / Sign up
ReadingResearchRadarInvestment framework

The scaling data gives concrete expectations. Under strong scaling with global batch fixed at 320, efficiency drops from 100% at one GPU to 54.8% at eight and 29.3% at 16, because the per-GPU batch shrinks while gradient synchronization overhead does not. Under weak scaling with batch fixed at 320 per GPU, efficiency holds at 85.6% across 16 GPUs on two nodes, reaching 4,078.9 samples/s total. The authors note that correct RCCL configuration over RDMA is essential for multi-node performance; incorrect fabric settings caused jobs to hang at rendezvous or fall back to slow socket transport.

Sources

  • rocm.blogs.amd.comROCm Blogs↗
Continue researching →