What changed

Bayer has demonstrated how to run DINOv2 pretraining for histopathology whole-slide imaging (WSI) on AMD Instinct MI355X GPUs with minimal code changes. The study shows that the official ROCm PyTorch image, an xformers build for gfx950, and the same FSDP training path used in production can be used without altering the training code. All experiments used eight-GPU MI355X nodes unless noted otherwise.

What this means in practice

The setup involves using the official ROCm PyTorch image with ROCm 7.2.2 and PyTorch 2.10 on MI355X (gfx950). Developers must install selected packages such as mmcv and timm with --no-deps to preserve the validated image stack. An xformers wheel built for gfx950 is also required, as no pre-built wheel was available on the PyTorch ROCm index at the time of the work. CPU allocation was adjusted to match GPU count, setting cpus-per-gpu=24 for eight-GPU jobs to stabilize throughput.

The Docker image for MI355X uses ROCm 7.2.2 and the gfx950 xformers wheel built from source. The training command writes checkpoints and other outputs to /workspace/output, which should be mounted to a host directory to preserve outputs after the container exits. The training script includes PyTorch profiling controlled via environment variables to monitor performance.

Limitations and availability

The study focuses on ViT-L/14 and uses eight-GPU MI355X nodes. xformers provides the best end-to-end throughput for DINOv2 on MI355X, but the experiments used different repository revisions, making direct performance comparisons difficult. The attention backend comparison showed xformers achieving higher throughput at every batch size tested, with improvements in throughput as batch size increases despite increased s/iteration. At the default batch size of 16, training was CPU-bound, with GPUs waiting on data loading, augmentation, and DINO teacher-student coordination rather than attention. Switching attention backends made little difference in this scenario.

Source facts for AMD Instinct MI355X Enables DINOv2 Pretraining for Histopathology WSI: Applications & models AI/ML, PyTorch, Fine-Tuning, Computer Vision Developers Foundation models are reshaping computational pathology. Expert annotations are scarce and expensive, so self-supervised pretraining is especially valuable here. Bayer’s production DINOv2 histopathology recipe runs on AMD Instinct with minimal changes.
Original AINewsTrend explainer based on the cited source. This graphic summarizes source statements; it is not an independent benchmark.

Sources and further reading

  1. amd: Scaling DINOv2 pretraining for histopathology WSI on AMD Instinct MI355X GPUs