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

RuntimeError: Expected query, key, and value to have the same dtype, but got query.dtype: c10::Half key.dtype: float and value.dtype: float instead. #1458

Closed
kmlcnclk opened this issue Feb 8, 2024 · 9 comments
Labels

Comments

@kmlcnclk
Copy link

kmlcnclk commented Feb 8, 2024

RuntimeError: Expected query, key, and value to have the same dtype, but got query.dtype: c10::Half key.dtype: float and value.dtype: float instead.

I am getting an error like above when ı train dreambooth modal on Stable Diffusion.

Can you help me about that?

Copy link

This issue is stale because it has been open for 14 days with no activity. Remove stale label or comment or this will be closed in 30 days

@github-actions github-actions bot added the Stale label Feb 23, 2024
@vanangelov
Copy link

I have the same issue on a M1 Mac. Neither using the "Upcast cross attention layer to float32" SD option, nor "--no-half" seem to fix it.

@kmlcnclk
Copy link
Author

I have the same issue on a M1 Mac. Neither using the "Upcast cross attention layer to float32" SD option, nor "--no-half" seem to fix it.

I am using Mac M1 too.

@vanangelov
Copy link

Changing Settings > Performance > Mixed Precision to NO seems to fix this

@github-actions github-actions bot removed the Stale label Mar 24, 2024
Copy link

github-actions bot commented Apr 7, 2024

This issue is stale because it has been open for 14 days with no activity. Remove stale label or comment or this will be closed in 30 days

@github-actions github-actions bot added the Stale label Apr 7, 2024
@malcolmacronis
Copy link

Using M1 Pro 32gb ram, nothing from above fixes this.

@github-actions github-actions bot removed the Stale label Apr 21, 2024
Copy link

github-actions bot commented May 5, 2024

This issue is stale because it has been open for 14 days with no activity. Remove stale label or comment or this will be closed in 30 days

@github-actions github-actions bot added the Stale label May 5, 2024
@carlokarton
Copy link

Did anyone find a solution ?

@github-actions github-actions bot removed the Stale label May 29, 2024
Copy link

This issue is stale because it has been open for 14 days with no activity. Remove stale label or comment or this will be closed in 30 days

@github-actions github-actions bot added the Stale label Jun 13, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants