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

Cannot do inference in float32 #595

Open
borisdayma opened this issue Apr 16, 2024 · 2 comments
Open

Cannot do inference in float32 #595

borisdayma opened this issue Apr 16, 2024 · 2 comments

Comments

@borisdayma
Copy link

If we try to perform inference in float32, we get the error:

AssertionError: Key and Value Dtypes should match

This error comes from this line.

The origin of the error is that the cache dtype is set to jnp.int8 if quantize_kvcache else jnp.bfloat16 but never to jnp.float32.

@rwitten
Copy link
Collaborator

rwitten commented Apr 18, 2024

What are you setting that triggets this? (Activations to float32?)

@borisdayma
Copy link
Author

borisdayma commented Apr 19, 2024

Yes it's the dtype:

dtype: "bfloat16"

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

2 participants