Unofficial Hacker News companion — get notified on comment replies, and more.

The Rise of Low Precision Floating Point (opens external site)

83 points by matt_d 8 days ago | arxiv.org | 33 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (9)

  1. I do wonder if we will be getting specialized hardware support for these, aimed at running quantized models. You could fit many FP8 or FP4 units in the same die space as a single FP32 one. Even more if you remove capabilities other than strictly needed (mainly addition and multiplication).
    Replies (3)
    1. NVFP4 seems like what you're after. It's a hardware supported datatype purpose-built for running quantized models. Inkling 2 mini uses it.
      Replies (2)
      1. And MXFP4 for non-CUDA devices like ROCm.
      2. Is that the new one in Blackwell and above ?
    2. Plenty of hardware now supports the microscaled FP4 and FP8 types - for example Blackwell GPUs.
      Replies (1)
      1. Didn't the old ass Titan Black specifically have hardware for something like this that made it desire able for early ML work ?
        Replies (1)
        1. Microscaled types? It was released in 2014 - far before the OCP types. It has INT8 vector according to techpowerup.

          There was FP8 block scaled MSFP on Brainwave FPGAs in 2020 - https://www.microsoft.com/en-us/research/blog/a-microsoft-cu...

    3. For cpu and mobile, I’ve been using int8 a lot because it has broad instruction support and is much faster to inference than fp32.

      I think fp8 instructions are becoming more prevalent on arm and x86 as well. The main issue is just that if you export a model for fp8, then it would not be supported on a large number of platforms yet and would fall back to fp32 and be slower than int8.

      Replies (1)
      1. Zen 6 has already been launched (for servers), so it still supports only BF16, FP16 and INT8, but Zen 7 and the future Intel CPUs will support FP8 and a few other ML/AI small number formats (according to the ACE specification; ACE = AI Compute Extensions).