NVIDIA / NVIDIA/Megatron-LM

[QUESTION]Are there more efficient implementations for sliding window in Megatron?

Open
#2,222 1 comment 1 reaction 0 assignees View on GitHub
question
Dominant language
Python
Stars
17.9k
Forks
4.5k
Avg merge
4d 3h
Merged PRs (30d)
272

Description

I'm working on long-text pre-training with context parallelism (CP) using Megatron. Are there more efficient implementations for sliding window training in this scenario? Currently, we're using the all_gather strategy, but the forward pass is extremely slow.it has even led to timeout issues. Could this be because the single-layer communication volume of all_gather is CP times that of full attention, leading to excessive communication overhead?

Environment details:
Megatron v0.12.0
Transformer Engine v1.12
CUDA 12.3
GPU: H100

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.