Zyphra releases ZYFA, an FP8 attention kernel for AMD MI355X GPUs
Overview
Zyphra introduces ZYFA, an 8-bit floating-point attention kernel for AMD MI355X GPUs.
Zyphra says its prefill kernels deliver 1.16–1.76x the throughput of AMD's AITER inference kernel library on real model inputs at 16K tokens under sustained load. Zyphra also says ZYFA reduces numerical error by 62–78% versus AITER's FP8 kernel at head dimension 128 on Mistral-7B and Qwen3-8B at 4K tokens.
Zyphra says softmax, not FP8 matrix math, is the bottleneck in long-context prefill. Its "lean P" method replaces the softmax exponential with a multiply-add and an integer conversion, cutting vector work per score from 14 to 6 cycles, and it says the matrix unit is busy 86% of steady-state cycles, up from 60%. ZYFA also rescales blocks before rounding so small attention weights are not rounded to zero. Zyphra further reports that across three models it studied, most FP8 error comes from converting inputs to 8 bits.
Written by AI from the articles below · updated Nov 5, 9:54 PM ET
Check the sources:
Developments
7 developments
- Nov 5, 9:36 PM ET · 1 articleZyphra's ZYFA attention kernel runs in its ZOE engine on AMD MI355XZyphra: Zyphra's ZYFA attention kernel runs in its ZOE engine on AMD MI355X
- Nov 5, 9:36 PM ET · 1 articleZyphra reports findings on FP8 input quantization errorZyphra: Zyphra finds most FP8 error comes from 8-bit input conversion
- Nov 5, 9:36 PM ET · 1 articleZyphra explains ZYFA's numerical and hardware performanceZyphra: Zyphra says ZYFA keeps more weights and finishes in fewer clock cycles
- Nov 5, 9:36 PM ET · 1 articleZyphra reports lower numerical error with ZYFAZyphra: Zyphra's ZYFA cuts FP8 attention numerical error 62–78% versus AITER
- Nov 5, 9:36 PM ET · 1 articleZyphra explains its attention instruction schedulingZyphra: Zyphra schedules attention softmax and matrix multiplies to overlap in assembly
- Nov 5, 9:36 PM ET · 1 articleZyphra explains ZYFA's lean P softmax optimizationZyphra: Zyphra's ZYFA cuts softmax work per score from 14 to 6 cycles
- Nov 5, 9:36 PM ET · 1 articleZyphra introduces FlashAttention FP8 attention kernels for AMD MI355XZyphra: Zyphra introduces ZYFA, an FP8 attention kernel for AMD MI355X
Article timeline
The articles in this story. Times are ET.
Zyphra@ZyphraAIOfficialZyphra finds most FP8 error comes from 8-bit input conversionAIZyphra says that across three models it studied, most FP8 error comes from converting inputs to 8 bits. On Mistral-7B, rotating queries and keys to spread out large values roughly halves input error, with almost no extra time when fused with quantization.

Zyphra@ZyphraAIOfficialZyphra's ZYFA attention kernel runs in its ZOE engine on AMD MI355XAIZyphra says ZYFA is the attention engine within its Zyphra Optimization Engine (ZOE) on AMD MI355X hardware. ZOE powers Zyphra Cloud and can be deployed on-premises. The company links a paper, code, and a blog post for ZYFA.
Zyphra@ZyphraAIOfficialZyphra says ZYFA keeps more weights and finishes in fewer clock cyclesAIZyphra says rounding small weights to zero makes fewer bits switch, letting AITER run at a higher clock on real inputs but reducing accuracy. Its ZYFA method preserves more of those weights and still finishes sooner because it needs fewer clock cycles.

Zyphra@ZyphraAIOfficialZyphra's ZYFA cuts FP8 attention numerical error 62–78% versus AITERAIZyphra reports that its ZYFA method reduces numerical error by 62–78% compared with AITER's FP8 kernel at head dimension 128 on Mistral-7B and Qwen3-8B at 4K tokens. ZYFA rescales blocks before rounding so small attention weights are not incorrectly rounded to zero in FP8, and it normalizes using the rounded values.

Zyphra@ZyphraAIOfficialZyphra's ZYFA cuts softmax work per score from 14 to 6 cyclesAIZyphra says its ZYFA "lean P" replaces softmax's exponential with a multiply-add and an integer conversion, cutting vector work per score from 14 to 6 cycles. The post notes that FP8 makes matrix math 2x faster than BF16 but leaves softmax unchanged, making softmax the bottleneck in long-context prefill.

Zyphra@ZyphraAIOfficialZyphra schedules attention softmax and matrix multiplies to overlap in assemblyAIZyphra writes its attention instruction schedule in assembly so two thread groups alternate, one computing softmax while the other runs matrix multiplications. With lean P, the matrix unit is busy 86% of steady-state cycles, up from 60% using exponentials.

Zyphra@ZyphraAIOfficialZyphra introduces ZYFA, an FP8 attention kernel for AMD MI355XAIZyphra introduces Zyphra FlashAttention (ZYFA), an 8-bit floating-point attention kernel for AMD MI355X GPUs. Its prefill kernels deliver 1.16–1.76x the throughput of AMD's AITER inference kernel library on real model inputs at 16K tokens under sustained load.

Heat Trend
Not enough continuous observations to show a trend yet.