Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

some debug about use torch.utils.checkpoint.checkpoint #26

@ShiYaya

Description

@ShiYaya

When I try to use torch.utils.checkpoint.checkpoint as follows, and use apex to train the model, I found that the loss is so small as 0.4, but the normal loss is 2.x.

So, do you have some idea about this question?

        for blk in self.blocks:
            # x = blk(x)
            x = torch.utils.checkpoint.checkpoint(blk, x)

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