paper-with-me

Papers

KnapFormer: An Online Load Balancer for Efficient Diffusion Transformers Training

2025-08-08 · Kai Zhang, Peng Wang, Sai Bi, Jianming Zhang, Yuanjun Xiong arxiv

We present KnapFormer, an efficient and versatile framework to combine workload balancing and sequence parallelism in distributed training of Diffusion Transformers (DiT). KnapFormer builds on the insight that strong synergy exists between sequence parallelism and the need to address the significant token imbalance across ranks. This imbalance arises from variable-length text inputs and varying visual token counts in mixed-resolution and image-video joint training. KnapFormer redistributes tokens by first gathering sequence length metadata across all ranks in a balancing group and solving a global knapsack problem. The solver aims to minimize the variances of total workload per-GPU, while accounting for the effect of sequence parallelism. By integrating DeepSpeed-Ulysees-based sequence parallelism in the load-balancing decision process and utilizing a simple semi-empirical workload model, KnapFormers achieves minimal communication overhead and less than 1% workload discrepancy in real-world training workloads with sequence length varying from a few hundred to tens of thousands. It eliminates straggler effects and achieves 2x to 3x speedup when training state-of-the-art diffusion models like FLUX on mixed-resolution and image-video joint data corpora. We open-source the KnapFormer implementation at https://github.com/Kai-46/KnapFormer/

📄 PDF Abstract BibTeX arXiv:2508.06001

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Reinforced Workload Distribution Fairness

2021-10-29 · Zhiyuan Yao, Zihan Ding, Thomas Heide Clausen

Network load balancers are central components in data centers, that distributes workloads across multiple servers and thereby contribute to offering scalable services. However, when load balancers operate in dynamic envi…

FairnessReinforcement Learning (RL)

Towards Intelligent Load Balancing in Data Centers

2021-10-27 · Zhiyuan Yao, Yoann Desmouceaux, Mark Townsley, Thomas Heide Clausen

Network load balancers are important components in data centers to provide scalable services. Workload distribution algorithms are based on heuristics, e.g., Equal-Cost Multi-Path (ECMP), Weighted-Cost Multi-Path (WCMP) …

A Meta-Heuristic Load Balancer for Cloud Computing Systems

2025-11-13 · Leszek Sliwko, Vladimir Getov arxiv

This paper presents a strategy to allocate services on a Cloud system without overloading nodes and maintaining the system stability with minimum cost. We specify an abstract model of cloud resources utilization, includi…

Online Learning of Weakly Coupled MDP Policies for Load Balancing and Auto Scaling

2024-06-20 · S. R. Eshwar, Lucas Lopes Felipe, Alexandre Reiffers-Masson, Daniel Sadoc Menasché 외

Load balancing and auto scaling are at the core of scalable, contemporary systems, addressing dynamic resource allocation and service rate adjustments in response to workload changes. This paper introduces a novel model …

UltraEP: Unleash MoE Training and Inference on Rack-Scale Nodes with Near-Optimal Load Balancing

2026-06-02 · Xinming Wei, Chao Jin, Tuo Dai, Yinmin Zhong 외 arxiv

Large-scale expert parallelism (EP) is becoming pivotal for training and serving frontier MoE models, but it also amplifies device-level expert load imbalance into compute stragglers, token all-to-all bottlenecks, and ac…