TorchNeuron: running HF models on AWS Trainium is easier than ever
Read the original on Hugging Face Blog →The Flow has not summarised this story yet — read it at Hugging Face Blog.
The Flow has not summarised this story yet — read it at Hugging Face Blog.
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.
The paper introduces a toolchain that enables machine‑learning model development on AWS EC2 F2 cloud FPGAs using high‑level Vitis HLS. It implements a complete Vitis HLS to HDK bridge to AFI workflow, a four‑level methodology (FP32 PyTorch, bit‑accurate quantized Python, HLS C‑simulation, physical FPGA) for error localization, and documents deployment, timing closure, and HLS engineering decisions. The authors validate the approach by implementing TinyBERT’s embedding layer and first encoder layer on FPGA, noting that weight streaming from host DRAM results in poor performance compared to CPU/GPU implementations.