Skip to content

[rank0]: AssertionError: You can't use same Accelerator() instance with multiple models when using DeepSpeed #20

Description

@foreverpiano

How did you solve this [rank0]: AssertionError: You can't use same Accelerator() instance with multiple models when using DeepSpeed


    unet, optimizer, train_dataloader, lr_scheduler,KD_teacher_unet = accelerator.prepare(
        unet, optimizer, train_dataloader, lr_scheduler,KD_teacher_unet
    )

unet KD_teacher_unet are two different models

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