Skip to content

how to use device_map in diffusers.stablediffusionpipeline.from_pretrained #8646

Open
@chaowenguo

Description

❓ Questions and Help

https://huggingface.co/docs/accelerate/main/en/usage_guides/big_modeling#designing-a-device-map

i try device_map=auto. but it seems not recongize the xla device tpu all goto cpu. please help and provide the minimum working example. @JackCaoG

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