sequence-packing
OfficialManage Megatron-Bridge packed sequences.
Software Engineering#training-config#llm-finetuning#sequence-packing#megatron-bridge#vlm-training#packed-sequences#context-parallel
AuthorNVIDIA
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps users configure and validate packed sequence workflows in Megatron-Bridge, enabling stable long-context training by distinguishing offline packed SFT paths for LLMs from in-batch packing paths for VLMs, and applying the correct CP constraints.
Core Features & Use Cases
- Distinguish two packing paths: offline packed SFT for LLM finetuning and in-batch packing for VLM finetuning, with aligned CP settings.
- Provide configuration anchors and validation guidance to ensure pad lengths, sequence lengths, and mult requirements are respected during training.
- Typical use case includes planning or debugging Megatron-Bridge training runs that require long-context sequences and context-parallelism.
Quick Start
Configure Megatron-Bridge to enable offline packed SFT for LLM finetuning or in-batch packing for VLMs, and apply the correct CP constraints.
Dependency Matrix
Required Modules
None requiredComponents
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: sequence-packing Download link: https://github.com/NVIDIA/skills/archive/main.zip#sequence-packing Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.