Skip to content

Resetting Batch Loss #4

Description

@tolgadimli

Hello, and thanks for this clean implementation of Diloco.

It seems like loss_batch=0 at line 169 of pure_torch_diloco.py has incorrect indentation. The loss batch should be reset by all local ranks after the accumulated inner step is taken. Currently, it is only reset for rank 0; so loss_batch=0 should be outside the if block that starts at line 154.

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