Skip to content

FSDP2 with offload for SFT #4218

@agenticgogogo

Description

@agenticgogogo

Hi authors, thank you so much for the contribution.

For fsdp2, should cpu_offload be CPUOffloadPolicy, instead of CPUOffload? It now reports "RuntimeError: attempting to assign a gradient with device type 'cuda' to a tensor with device type 'cpu'"

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