Skip to content

wait for model to move back to device when using .enable_model_cpu_offload() #7

@JohnnyStreet

Description

@JohnnyStreet

When using .enable_model_cpu_offload() if the model is currently offloaded to cpu, generating a normal image waits for the model to load back onto the gpu before generating. When using hypertile, it does not wait for the model and I get found at least two devices, cuda:0 and cpu! on the first generation. It works fine after that until offloading occurs and then once again the first generation will fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions