LongLive-2.0: 一个基于NVFP4的长视频生成并行基础设施
LongLive-2.0: An NVFP4 Parallel Infrastructure for Long Video Generation
AI总结:
本文提出LongLive-2.0,一个基于NVFP4的并行基础设施,用于长视频生成的整个训练和推理流程,解决了速度和内存瓶颈问题。通过引入序列并行自回归训练方法,结合NVFP4精度,显著降低了GPU内存消耗并加速了训练过程。同时,该系统能够将扩散模型转换为长视频生成的自回归扩散模型,并在不同GPU架构上实现了高效的推理和训练。
摘要:
我们提出了LongLive-2.0,一个基于NVFP4的并行基础设施,贯穿长视频生成的整个训练和推理流程,以解决速度和内存瓶颈问题。在训练过程中,我们引入了序列并行自回归(AR)训练,具体实现为平衡SP,通过在每个rank上配对干净历史和噪声目标时间片段,共同设计高效的教师强制布局与SP执行,从而实现自然的教师强制掩码和SP-aware分块VAE编码。结合NVFP4精度,它减少了GPU内存成本并加速了GEMM计算,随着视频长度的增加,其比例增加。此外,我们表明高质量的基础设施和数据集能够实现显著清洁的训练流程。与现有Self-Forcing系列方法不同,LongLive-2.0直接调节扩散模型,使其成为长、多镜头、交互式自回归(AR)扩散模型。它可以进一步转换为实时生成(4到2去噪步骤)通过独立LoRA权重。在Blackwell GPU上进行推理时,我们启用了W4A4 NVFP4推理,将KV缓存量化为NVFP4以节省内存,并通过异步流式VAE解码提高端到端吞吐量。在非Blackwell GPU架构上,我们部署SP推理以匹配Blackwell GPU的速度,同时量化后的KV缓存可以降低SP的跨GPU通信。实验显示训练速度提高了2.15倍,推理速度提高了1.84倍。LongLive-2.0-5B在45.7 FPS的推理速度下实现了在基准测试中的强大性能。据我们所知,LongLive-2.0是首个针对长视频生成的NVFP4训练和推理系统。
英文摘要:
We present LongLive-2.0, an NVFP4-based parallel infrastructure throughout the full training and inference workflow of long video generation, addressing speed and memory bottlenecks. For training, we introduce sequence-parallel autoregressive (AR) training, instantiated as Balanced SP, which co-designs the efficient teacher-forcing layout with SP execution by pairing clean-history and noisy-target temporal chunks on each rank, enabling a natural teacher-forcing mask with SP-aware chunked VAE encoding. Combined with NVFP4 precision, it reduces GPU memory cost and accelerates GEMM computation during training, the proportion of which increases as video length grows. Moreover, we show that a high-quality infrastructure and dataset enable a remarkably clean training pipeline. Unlike existing Self-Forcing series methods that rely on ODE initialization and subsequent distribution matching distillation (DMD), LongLive-2.0 directly tunes a diffusion model into a long, multi-shot, interactive auto-regressive (AR) diffusion model. It can be further converted to real-time generation (4 to 2 denoising steps) with standalone LoRA weights. For inference on Blackwell GPUs, we enable W4A4 NVFP4 inference, quantize KV cache into NVFP4 for memory savings, and boost end-to-end throughput with asynchronous streaming VAE decoding. On non-Blackwell GPU architectures, we deploy SP inference to match the speed on Blackwell GPUs, while the quantized KV cache can lower inter-GPU communication of SP. Experiments show up to 2.15x speedup in training, and 1.84x in inference. LongLive-2.0-5B achieves 45.7 FPS inference while attaining strong performance on benchmarks. To our knowledge, LongLive-2.0 is the first NVFP4 training and inference system for long video generation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。