Hugging Face Blog

Fetch Cuts ML Processing Latency by 50% Using Amazon SageMaker & Hugging Face

arXiv Machine Learning
Oct 19

DIFFLET: A Fast Inference Engine for Diffusion Transformer Models on AWS Trainium

DIFFLET is a serving engine for diffusion transformer models on AWS Trainium that allows five model pipelines to share a single compilation backend. It splits joint attention across cores by attention head and uses a host controller to decide whether to run the denoiser or reuse previous outputs at each denoising step. Across five image and video model families, DIFFLET’s fused attention accelerates denoiser steps by 1.2–4.3× compared to PyTorch/XLA, and resident serving is 1.5–3.4× faster than standalone runs that reload weights.

By Bin Ma, Min Yu, Vijay Kodamalla, Jialin Liu, Dong Li