Hugging Face TRL officially supports AMD GPUs, full test suite runs on MI300X per PR

QGallouedec · x · 2026-10-21

Hugging Face's TRL training library now officially supports AMD Instinct GPUs. It largely worked before; what's new is an explicit support commitment with deep testing — the full test suite now runs on MI300X for every PR.

Per the docs, PyTorch's ROCm build exposes AMD GPUs as cuda devices, so TRL trainers run without code changes. Install the ROCm PyTorch build plus TRL in one environment. Caveat: the FlashAttention kernels used in doc examples (flash-attn2/3/4) have no ROCm build — on AMD GPUs use kernels-community/aiter-flash-attn, downloaded from the Hub.

Original post →

More from Infra

Infra channel →