-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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 2 tests in FillMaskPipelineTests
#27889
Conversation
self.assertEqual( | ||
nested_simplify(outputs, decimals=6), | ||
[{"sequence": x["sequence"][:100]} for x in simplified], | ||
[ | ||
{"sequence": "My name is grouped", "score": 2.2e-05, "token": 38015, "token_str": " grouped"}, | ||
{"sequence": "My name is accuser", "score": 2.1e-05, "token": 25506, "token_str": " accuser"}, | ||
{"sequence": f"My name is,{dummy_str}"[:100]}, | ||
{"sequence": f"My name is:,{dummy_str}"[:100]}, | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The input ids are truncated in this (part of) test. The output is also truncated. Let's just compare the first 100 characters.
{"score": 0.2819, "token": 6, "token_str": ","}, | ||
{"score": 0.0954, "token": 46686, "token_str": ":,"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just update some values (contributor might have different env.)
What does this PR do?
The test is introduced in #26234 which doesn't work as expected.
This PR update the values.