Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions megatron/core/transformer/transformer_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1531,13 +1531,6 @@ def __post_init__(self):
if self.cp_partition_mode not in ("zigzag", "contiguous"):
raise ValueError(f"Unsupported cp_partition_mode: {self.cp_partition_mode}")

if self.experimental_attention_variant == "dsv4_hybrid" and (
self.context_parallel_size > 1 or self.dynamic_context_parallel
):
assert (
self.sequence_packing_scheduler is not None
), "DSv4 Hybrid with CP requires a sequence_packing_scheduler for THD inputs."

if self.context_parallel_size > 1:
if (
self.experimental_attention_variant == "dsv4_hybrid"
Expand Down
Loading