Skip to content

adds available device to nlp tests #3335 #3385

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

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

BanzaiTokyo
Copy link
Collaborator

No description provided.

Comment on lines +135 to +140
cand_1 = to_float32_if_mps(corpus.cand_1, available_device)
cand_2a = to_float32_if_mps(corpus.cand_2a, available_device)
cand_2b = to_float32_if_mps(corpus.cand_2b, available_device)
cand_3 = to_float32_if_mps(corpus.cand_3, available_device)
ref_1 = to_float32_if_mps(corpus.references_1, available_device)
ref_2 = to_float32_if_mps(corpus.references_2, available_device)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this useful? All these variables are list of strings.
If you have a f64 computation somewhere, it may be possible that the metric should have a special route for f64 on mps (just use f32).

@github-actions github-actions bot added the module: metrics Metrics module label Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: metrics Metrics module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants