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

fix tests #2380

Merged
merged 6 commits into from
Oct 4, 2024
Merged

fix tests #2380

merged 6 commits into from
Oct 4, 2024

Conversation

baberabb
Copy link
Contributor

@baberabb baberabb commented Oct 3, 2024

Updated and ran pre-commit. The main change in this PR is that there is an extra space in the generation string we check against due to huggingface/transformers#31938 (tokenizers >= 0.20.0)

@baberabb baberabb merged commit 5e0bc28 into main Oct 4, 2024
8 checks passed
@baberabb baberabb deleted the tests_up branch October 4, 2024 15:44
@@ -1511,7 +1511,7 @@ def process_results(self, doc, results):
# we expect multiple_targets to be a list.
elif self.multiple_target:
gold = list(gold)
elif type(gold) != type(result):
elif type(gold) is type(result):
Copy link
Contributor

Choose a reason for hiding this comment

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

is not may be supposed actually
@baberabb

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nice catch!

@baberabb baberabb mentioned this pull request Oct 5, 2024
mariagrandury pushed a commit to somosnlp/lm-evaluation-harness that referenced this pull request Oct 9, 2024
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

Successfully merging this pull request may close these issues.

3 participants