Skip to content

Support eval with deepspeed zero3 #435

@akshay18iitg

Description

@akshay18iitg

System Info

In-training simulation eval (eval_freq > 0 with a sim env) is not supported under parameter sharding (DeepSpeed ZeRO-3 or FSDP): each rank rolls out independently, so the sharded-param all-gathers in the eval forward desync across ranks and hang at NCCL. Use ZeRO-1/2 (params replicated), or run eval out-of-process on saved checkpoints.
  File "/fss/bot/OpenTau_main/src/opentau/scripts/train.py", line 1494, in <module>

Information

  • One of the scripts in the src/opentau/scripts/ folder of OpenTau
  • My own task or dataset (give details below)

Reproduction

Simpley running cosmos3 on multi node with zero3

Expected behavior

Should be able to run evals with zero3 sharding while training

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions