跳到正文
返回论文列表
cs.DC提交于 已译

Difflet: 基于 AWS Trainium 的 Diffusion Transformer 快速推理引擎

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

Bin Ma · Min Yu · Vijay Kodamalla · Jialin Liu · Dong Li

中文摘要

在 AWS Trainium2 上,扩散模型组件以固定形状预编译运行,但不同模型、提示长度及去噪步骤间的缓存决策存在差异。Difflet 是一个推理引擎,五个模型流水线共享一个编译后端,联合注意力按注意力头分割至不同核心,主机控制器在每步去噪时决定运行去噪器或复用早期输出。小型探针程序在设备上计算缓存信号并每步返回一个数值,常驻模型进程在请求间保持所有程序加载。在五个图像和视频模型家族中,融合注意力使去噪步骤比使用 PyTorch/XLA 注意力的相同框架加速 1.2-4.3 倍,且在 32.8k 视觉令牌下是唯一可编译的注意力机制。在五个模型中的四个上,常驻服务比每次生成从热文件缓存重新加载权重的独立运行快 1.5-3.4 倍。

关键要点

  1. 01解决 AWS Trainium2 上扩散模型因形状固定和流水线差异导致的推理效率问题。
  2. 02采用共享编译后端、按头分割注意力及主机控制器动态缓存决策的推理架构。
  3. 03融合注意力使去噪步骤加速 1.2-4.3 倍,且在 32.8k 视觉令牌下唯一可编译。
  4. 04常驻服务机制比独立运行快 1.5-3.4 倍,避免每次生成重新加载权重。

解读

尚无解读。

原始英文摘要

arXiv:2610.23047v1 Announce Type: cross Abstract: On AWS Trainium2, every component of a diffusion model runs as a program compiled ahead of time for fixed shapes, while pipelines differ across models, prompt lengths across requests, and caching decisions across denoising steps. We present Difflet, a serving engine in which five model pipelines share one compilation backend, joint attention is split across cores by attention head, and a host controller decides at each denoising step whether to run the denoiser or reuse its earlier output. A small probe program computes the caching signal on the device and returns one number per step, and a resident model process keeps every program loaded across requests. Across five image and video model families, fused attention accelerates denoiser steps by 1.2-4.3x over the same framework using PyTorch/XLA attention, and at 32.8k visual tokens it is the only attention that compiles. On four of the five models, resident serving is 1.5-3.4x faster than standalone runs that reload weights from a warm file cache for each generation.

同方向论文 · cs.DC

查看全部 →

反向发现 · 这篇论文相关的工具与提示词

去交叉发现 →

关联提示词 · 1

编程github.com/f/awesome-chatgpt-prompts·外部收录·

Cinematic Ultra-Realistic Image-to-Video Prompt Engineer

{ "name": "Cinematic Prompt Standard v2.0", "type": "image_to_video_prompt_standard", "version": "2.0", "language": "ENGLISH_ONLY", "role": { "title": "Cinematic Ultra-Realistic Image-to-Video Prompt Engineer", "descriptio…