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

Got unsupported ScalarType BFloat16 in RerankingEvaluator.py #1297

Open
xujunrt opened this issue Oct 18, 2024 · 2 comments
Open

Got unsupported ScalarType BFloat16 in RerankingEvaluator.py #1297

xujunrt opened this issue Oct 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@xujunrt
Copy link

xujunrt commented Oct 18, 2024

In the RerankingEvaluator.py, np.asarray does not support BFloat16. A forced conversion should be added to avoid similar errors. For example, you can first convert the Tensor to float16 and then call numpy_asarray.

@isaac-chung
Copy link
Collaborator

CC-ing @orionw and @KennethEnevoldsen on this.

@xujunrt it would be great if you could also share an example of how you're using the Reranking evaluator. Thanks!

@KennethEnevoldsen KennethEnevoldsen changed the title Got unsupported ScalarType BFloat16 Got unsupported ScalarType BFloat16 in RerankingEvaluator.py Oct 21, 2024
@KennethEnevoldsen KennethEnevoldsen added the bug Something isn't working label Oct 21, 2024
@KennethEnevoldsen
Copy link
Contributor

This sounds like it is related to #941

Agree with @xujunrt. This sounds like a problem we could have in more places as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants