Los núcleos de código abierto ZYFA de Zyphra aumentan la velocidad de prefill en AMD MI355X hasta 1,76 veces, reduciendo significativamente los errores FP8 en comparación con la biblioteca predeterminada de AMD.
Resumen generado con IA. Consulta el original para comprobar el contexto y la precisión.
Extracto de la fuente
Este es el extracto disponible del feed. Puede estar abreviado o en el idioma original.
Zyphra has released ZYFA (Zyphra FlashAttention on AMD), a set of FP8 and BF16 prefill attention kernels for AMD Instinct MI355X GPUs. ZYFA is Zyphra’s FP8 attention engine for long-context prefill, and the code is open source under Apache 2.0. On real model activations, its FP8 kernels run 1.16-1.76x faster than AITER, AMD’s default kernel library. At head dimension 128, ZYFA’s FP8 error is 62-78% lower than AITER’s. TL;DR Framework: It is a kernel library. Causal forward (prefill) attention in FP8 e4m3 and BF16, head dim 128 and MLA shape (192/128). Runs on: AMD Instinct MI355X only (CDNA4, gfx950), ROCm 7.2.3, PyTorch 2.12. Drop-in flash_attn_func interface. Performance: 1.16-1.76x AITER’s FP8 throughput on real activations; BF16 roughly ties (1.01-1.02x). Best: 2,672 TFLOP/s FP8 at 32K tokens, 53% of the FP8 datasheet peak (AITER: 39%). Worst: Only 1.16x on Mistral-7B activations; FP8 clock drops to 1,628 MHz vs AITER’s 2,108 MHz. What is ZYFA? ZYFA is shipped in the form of a technical paper along with code from Zyphra. It powers the attention engine of the Zyphra Optimization Engine (ZOE), which runs Zyphra Cloud. The BF16 kernels are written in HIP. The FP8 kernels are hand-scheduled assembly emitted by a Python generator. Why does FP8 attention underperform on MI355X? FP8 matrix instructions run at 2x the BF16 peak. But FP8 only speeds up the 2 matrix products, QKᵀ and PV. The softmax between them runs on the vector unit at the same speed in both precisions. For 32 queries against 128 keys, FP8 matrix work takes 1,024 cycles. The exact FP8 softmax takes 896 vector cycles. So the kernel needs near-perfect overlap to keep matrix units busy. Zyphra’s thread traces show AITER’s matrix pipe idle for 31.7% of cycles. The MI355X does not track matrix instruction completion in hardware, so instruction order must create that overlap. How does ZYFA work? ZYFA uses 3 techniques: Lean P: one multiply-add instead of an exponential An e4m3 bit pattern, rea
Sobre la prioridad
Una ayuda automática para ordenar, basada en fuentes, palabras clave y entidades, en una escala de 1–12. Alta: 9–12; media: 6–8; baja: 1–5. No mide urgencia, verifica noticias ni representa respaldo editorial.
Kinference simplifica la gestión del servicio de modelos de IA en Kubernetes al enrutar inteligentemente las solicitudes a los trabajadores de vLLM, optimizando el rendimiento y el uso de recursos para los equipos que implementan múltiples modelos.
Predecir el comportamiento molecular a partir de datos limitados acelera el descubrimiento de fármacos y materiales, sustituyendo el lento método de prueba y error por una innovación eficiente y basada en datos en diversas industrias.
ToyBlocks ofrece un entorno estandarizado y controlado para entrenar y evaluar algoritmos de aprendizaje de robots, permitiendo comparaciones de rendimiento consistentes y reproducibles.