Skip to content

Maybe use reference stash to replace record stream to reduce mem peak #455

@junjzhang

Description

@junjzhang

Due to behavior of CudaCacheAllocator, record stream will lead to a late memory free, which has significant on memory peak. (Could refer to fsdp1's issue due to recordstream). In Pytorch 2.8 +,c10d has remove all recordStream in collective communication. Thus, I wonder if there are plans to remove record stream and use reference stash to handle multistream scenario?

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