Vchitect / Latte

Latte: Latent Diffusion Transformer for Video Generation.
Apache License 2.0
1.65k stars 177 forks source link

Pipelines loaded with `dtype=torch.float16` cannot run with `cpu` device #23

Closed GeLink9999 closed 7 months ago

GeLink9999 commented 7 months ago

HI I have successfully loaded t2v model using bash sample/t2v.sh but it shows the model is running on cpu, how to set it to run on GPU, thanks

Loading checkpoint shards: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:01<00:00, 2.74it/s] Pipelines loaded with dtype=torch.float16 cannot run with cpu device. It is not recommended to move them to cpu as running them will fail. Please make sure to use an accelerator to run the pipeline in inference, due to the lack of support forfloat16 operations on this device in PyTorch. Please, remove the torch_dtype=torch.float16 argument, or use another device for inference. Pipelines loaded with dtype=torch.float16 cannot run with cpu device. It is not recommended to move them to cpu as running them will fail. Please make sure to use an accelerator to run the pipeline in inference, due to the lack of support forfloat16 operations on this device in PyTorch. Please, remove the torch_dtype=torch.float16 argument, or use another device for inference. Pipelines loaded with dtype=torch.float16 cannot run with cpu device. It is not recommended to move them to cpu as running them will fail. Please make sure to use an accelerator to run the pipeline in inference, due to the lack of support forfloat16 operations on this device in PyTorch. Please, remove the torch_dtype=torch.float16 argument, or use another device for inference. Processing the (Yellow and black tropical fish dart through the sea.) prompt

GeLink9999 commented 7 months ago

It seems cuda is not available. I will check it, thanks

wuleibegreat commented 7 months ago

I have the same problem. Have you solved it

GeLink9999 commented 7 months ago

You can try to change your pytorch-cup to pytorch-cuda.