Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Xu, Hongtao, Shen, Wenting, Wei, Yuanxin, Wang, Ang, Runfan, Guo, Wang, Tianxing, Li, Yong, Li, Mingzhen, Jia, Weile
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2505.19609
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866911317460254720
author Xu, Hongtao
Shen, Wenting
Wei, Yuanxin
Wang, Ang
Runfan, Guo
Wang, Tianxing
Li, Yong
Li, Mingzhen
Jia, Weile
author_facet Xu, Hongtao
Shen, Wenting
Wei, Yuanxin
Wang, Ang
Runfan, Guo
Wang, Tianxing
Li, Yong
Li, Mingzhen
Jia, Weile
contents Long-context supervised fine-tuning (Long-SFT) plays a vital role in enhancing the performance of large language models (LLMs) on long-context tasks. To smoothly adapt LLMs to long-context scenarios, this process typically entails training on mixed datasets containing both long and short sequences. However, this heterogeneous sequence length distribution poses significant challenges for existing training systems, as they fail to simultaneously achieve high training efficiency for both long and short sequences, resulting in sub-optimal end-to-end system performance in Long-SFT. In this paper, we present a novel perspective on data scheduling to address the challenges posed by the heterogeneous data distributions in Long-SFT. We propose Skrull, a dynamic data scheduler specifically designed for efficient long-SFT. Through dynamic data scheduling, Skrull balances the computation requirements of long and short sequences, improving overall training efficiency. Furthermore, we formulate the scheduling process as a joint optimization problem and thoroughly analyze the trade-offs involved. Based on those analysis, Skrull employs a lightweight scheduling algorithm to achieve near-zero cost online scheduling in Long-SFT. Finally, we implement Skrull upon DeepSpeed, a state-of-the-art distributed training system for LLMs. Experimental results demonstrate that Skrull outperforms DeepSpeed by 3.76x on average (up to 7.54x) in real-world long-SFT scenarios.
format Preprint
id arxiv_https___arxiv_org_abs_2505_19609
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Skrull: Towards Efficient Long Context Fine-tuning through Dynamic Data Scheduling
Xu, Hongtao
Shen, Wenting
Wei, Yuanxin
Wang, Ang
Runfan, Guo
Wang, Tianxing
Li, Yong
Li, Mingzhen
Jia, Weile
Machine Learning
Artificial Intelligence
Long-context supervised fine-tuning (Long-SFT) plays a vital role in enhancing the performance of large language models (LLMs) on long-context tasks. To smoothly adapt LLMs to long-context scenarios, this process typically entails training on mixed datasets containing both long and short sequences. However, this heterogeneous sequence length distribution poses significant challenges for existing training systems, as they fail to simultaneously achieve high training efficiency for both long and short sequences, resulting in sub-optimal end-to-end system performance in Long-SFT. In this paper, we present a novel perspective on data scheduling to address the challenges posed by the heterogeneous data distributions in Long-SFT. We propose Skrull, a dynamic data scheduler specifically designed for efficient long-SFT. Through dynamic data scheduling, Skrull balances the computation requirements of long and short sequences, improving overall training efficiency. Furthermore, we formulate the scheduling process as a joint optimization problem and thoroughly analyze the trade-offs involved. Based on those analysis, Skrull employs a lightweight scheduling algorithm to achieve near-zero cost online scheduling in Long-SFT. Finally, we implement Skrull upon DeepSpeed, a state-of-the-art distributed training system for LLMs. Experimental results demonstrate that Skrull outperforms DeepSpeed by 3.76x on average (up to 7.54x) in real-world long-SFT scenarios.
title Skrull: Towards Efficient Long Context Fine-tuning through Dynamic Data Scheduling
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2505.19609