Skip to content

[Bug] AssertionError: neat_packing + context_parallel alignment mismatch (sub-sequence length not aligned to 2 * cp_size) #325

@royzhang12

Description

@royzhang12

When training with Megatron Trainer’s backend in LLaMA-Factory, enabling both neat_packing and context_parallel_size (CP) results in an AssertionError: neat_packing + context_parallel alignment mismatch (sub-sequence length not aligned to 2 * cp_size)

config:
........
cut_off_len: 32768
sequence_packin: true
context_parallel_size: 4
.........

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions