Skip to content

The train code not compatible with latest accelerate 1.8.1, please fix it to 1.6.0 #1111

Closed
@ILG2021

Description

@ILG2021

Checks

  • This template is only for bug reports, usage problems go with 'Help Wanted'.
  • I have thoroughly reviewed the project documentation but couldn't find information to solve my problem.
  • I have searched for existing issues, including closed ones, and couldn't find a solution.
  • I am using English to submit this issue to facilitate community communication.

Environment Details

not related

Steps to Reproduce

When the train goes to validate and save checkpoint it will crash by:
self.accelerator.unwrap_model(self.optimizer).state_dict()
it says that self.optimizer is not a nn.Module class

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions