Skip to content

Confusion whether autocast(...) should be used or not? #2568

@patrickvonplaten

Description

@patrickvonplaten

Copy-paste the very nice comment/question from PrinceRay7 from here: #993 (comment)

I'm quite confused. In Diffusers docs, it is strongly disencouraged to use torch.autocast, however, in accelerate scripts, when training with the flag fp16, it is still implemented by using autocast. So i really wonder what should we do when training diffusion models. It seems like accelerate is very necessary and now it conflicts so I'm confused now. Looking forward to your reply, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleIssues that haven't received updates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions