length-pool-sort-dataset

Official

Synchronize cross-rank lengths for faster training

AuthorEvolvingLMMs-Lab
Version1.0.0
Installs0

System Documentation

What problem does it solve?

LengthPoolSortDataset provides a cross-rank length synchronization mechanism to reduce idle time in multi-GPU training by aligning sample lengths across ranks, improving effective training throughput.

Core Features & Use Cases

  • Three-step pipeline: upstream dataset → accumulate pool_size samples → sort by sequence length → deterministic seed shuffle → yield samples, enabling cross-rank length consistency.
  • Activation and tuning: enabled via --length-sort-size N (N > 0); guidance on pool_size selection, impact of num_workers, and memory considerations for stronger synchronization.
  • Debugging and caveats: notes on pool internal state not being saved, behavior with multiple workers, and recommended checks for length distribution and step-time variance.

Quick Start

Enable LengthPoolSortDataset by setting --length-sort-pool-size to a positive value and monitor training step time variance for improvement.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: length-pool-sort-dataset
Download link: https://github.com/EvolvingLMMs-Lab/LLaVA-OneVision-2/archive/main.zip#length-pool-sort-dataset

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.