Skip to content

AssertionError: MPI world size 16 does not match torch world size 8 #461

@szhengac

Description

@szhengac

When I use mpirun for Megatron-LM bert pretraining, I received
AssertionError: MPI world size 16 does not match torch world size 8"

For mpirun args, I use --allow-run-as-root -np 16 -N 8 --hostfile ${hostfile}. Is there something I miss for setting torch world size appropriately?

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