Skip to content

nan loss with Context Parallel #14488

@leoleoasd

Description

@leoleoasd

Describe the bug

I'm testing long context processing so I padded a very short (less than 4k?) token dataset to 32k. I try to train it with context parallel but I got nan loss. Tensor parallel and Pipeline parallel works fine.

My suspicion is that context parallel didn't correctly handle when all the tokens on the same gpu are masked out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions