Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

AMD Instinct GPUs with FP8 Support

· 5 min read · Home Tech

In this article
  1. Background: What Is FP8 and Why It Matters
  2. Which AMD Instinct GPUs Support FP8
  3. How FP8 Works on AMD Instinct GPUs
  4. How to Choose an AMD Instinct GPU for FP8 Workloads
  5. Common Problems and Misconceptions
  6. FP8 vs. FP16 and BF16 on AMD Instinct
  7. Software and Framework Support for FP8
  8. Frequently Asked Questions
  9. Alternatives to AMD Instinct for FP8

AMD Instinct GPUs that support FP8 (8-bit floating point) include the AMD Instinct MI300X, MI300A, and MI325X accelerators, which feature native FP8 matrix operations via the CDNA 3 architecture. These accelerators are designed for AI and high-performance computing workloads, with FP8 support enabling faster inference and training for large language models compared to FP16 or BF16.

Background: What Is FP8 and Why It Matters

FP8 is an 8-bit floating-point format that reduces memory usage and increases compute throughput for AI workloads. It comes in two variants: E4M3 (4-bit exponent, 3-bit mantissa) for forward passes and E5M2 (5-bit exponent, 2-bit mantissa) for backward passes and gradient accumulation. The format is particularly useful for transformer-based models, where precision can be traded for speed without significant accuracy loss. AMD introduced FP8 support with the CDNA 3 architecture, which powers the MI300 series, to compete with NVIDIA's Hopper and Ada Lovelace GPUs that also support FP8.

Which AMD Instinct GPUs Support FP8

The following AMD Instinct GPUs natively support FP8:

  • AMD Instinct MI300X – launched in late 2023, designed for generative AI and large language model inference.
  • AMD Instinct MI300A – an APU combining CDNA 3 GPU cores with Zen 4 CPU cores, also supports FP8.
  • AMD Instinct MI325X – a 2024 update of the MI300X with increased memory capacity (288 GB HBM3e), retaining full FP8 support.

Older Instinct GPUs such as the MI250X (CDNA 2) and MI100 (CDNA 1) do not support FP8; they rely on FP16 and BF16. If you are considering a used or refurbished Instinct card, verify the exact model and its architecture—only CDNA 3-based cards have FP8.

How FP8 Works on AMD Instinct GPUs

FP8 on MI300 series is implemented through dedicated matrix cores that perform FP8 multiply-accumulate operations. The GPU can read FP8 data from memory, perform the computation, and accumulate results in FP32 to maintain accuracy. This reduces memory bandwidth requirements by half compared to FP16, allowing larger batch sizes or longer context lengths in AI models. Software support is provided through AMD's ROCm stack, including the rocBLAS library and the MIOpen deep learning primitives. In practice, you enable FP8 by using frameworks like PyTorch or TensorFlow with the appropriate flags, such as setting the dtype to torch.float8_e4m3fn or using automatic mixed precision with FP8.

How to Choose an AMD Instinct GPU for FP8 Workloads

When selecting an Instinct GPU for FP8 tasks, consider the following factors:

  • Compute performance: MI300X and MI325X offer higher FP8 TFLOPS than MI300A, but MI300A integrates CPU cores, which may be beneficial for certain HPC workloads.
  • Memory capacity: For large language models, MI325X's 288 GB HBM3e is advantageous, while MI300X has 192 GB and MI300A has 128 GB.
  • Power and cooling: All MI300 series cards are high-power (up to 750W), requiring server-grade cooling and power delivery.
  • Software compatibility: Ensure your AI framework and ROCm version support FP8 on these GPUs; check AMD's official documentation for the latest support matrix.

For inference, MI300X is often the sweet spot. For training, MI300X or MI325X are better due to higher memory bandwidth. If you need a CPU-GPU unified memory space, MI300A is the only option.

Common Problems and Misconceptions

One common misconception is that FP8 support is a simple driver update for older GPUs. In reality, FP8 requires hardware-level matrix cores, so CDNA 2 and earlier cards cannot be upgraded. Another issue is that not all AI models are FP8-ready; some may show accuracy degradation if not calibrated correctly. Additionally, ROCm's FP8 support is still maturing compared to CUDA, so you may encounter missing operators or performance gaps in certain frameworks. Always test with your specific model and data before deploying.

FP8 vs. FP16 and BF16 on AMD Instinct

FP8 offers roughly double the throughput of FP16 on the same hardware, but with lower precision. For many AI workloads, especially transformer inference, FP8 can be used without noticeable quality loss. However, FP16 and BF16 remain more universally supported and are safer for training from scratch. BF16 is particularly useful for gradient updates because it has the same exponent range as FP32. A practical approach is to use FP8 for the forward pass and BF16 for the backward pass, which some frameworks support automatically.

Software and Framework Support for FP8

To use FP8 on AMD Instinct GPUs, you need ROCm 5.7 or later, as FP8 was introduced with that release. PyTorch added FP8 support in version 2.1 for AMD GPUs, but you may need to install a nightly build or use the ROCm-specific wheels. TensorFlow support is more limited; check the ROCm documentation for the current status. AMD also provides the Composable Kernel library for low-level FP8 kernels, and the vLLM inference server supports FP8 on MI300X for LLM serving. Always verify that your specific framework version and ROCm version are compatible.

Frequently Asked Questions

Does the AMD Instinct MI250X support FP8?

No, the MI250X is based on CDNA 2, which does not have FP8 matrix cores. It supports FP16 and BF16 only. If you need FP8, you must use a CDNA 3-based card like the MI300X.

Can I use FP8 on AMD Instinct for training large language models?

Yes, but with caution. FP8 is primarily recommended for inference and fine-tuning. For full training, you may need to use a mixed-precision approach, such as FP8 for forward passes and BF16 for backward passes, to maintain stability. Some frameworks support this automatically.

What is the difference between E4M3 and E5M2 FP8 formats?

E4M3 has 4 exponent bits and 3 mantissa bits, offering higher precision for values near 1.0, making it suitable for forward passes. E5M2 has 5 exponent bits and 2 mantissa bits, allowing a wider dynamic range, which is better for backward passes where gradients can vary widely. AMD Instinct GPUs support both.

Is FP8 support available in ROCm for consumer AMD GPUs like the RX 7900 XTX?

No, FP8 matrix operations are only available on Instinct GPUs with CDNA 3 architecture. Consumer Radeon GPUs, including the RX 7000 series, do not have FP8 matrix cores. They support FP16 and BF16, but not FP8.

How do I check if my AMD Instinct GPU supports FP8?

You can check the GPU model name and its architecture. If it is an MI300X, MI300A, or MI325X, it supports FP8. You can also run the ROCm command rocminfo and look for the FP8 capability in the output, though it may not be explicitly listed. The most reliable way is to consult AMD's official specifications.

Alternatives to AMD Instinct for FP8

If you are not tied to AMD, NVIDIA GPUs with Hopper architecture (H100, H200) and Ada Lovelace (L40S, RTX 6000 Ada) also support FP8. Intel's Gaudi 2 and Gaudi 3 accelerators also have FP8 support. However, AMD Instinct offers competitive performance and memory capacity, especially with the MI325X's 288 GB HBM3e, which is useful for very large models. The best choice depends on your software ecosystem, budget, and existing infrastructure.