Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to solve the error? torch_dtype=torch.float16 #2

Open
BobikTyzik opened this issue Oct 20, 2024 · 1 comment
Open

How to solve the error? torch_dtype=torch.float16 #2

BobikTyzik opened this issue Oct 20, 2024 · 1 comment

Comments

@BobikTyzik
Copy link

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. How to solve the error?

@BobikTyzik
Copy link
Author

And I was able to solve the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant