-
-
Notifications
You must be signed in to change notification settings - Fork 12k
(Misc): add missing test for zero truncation size. #23457
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
Conversation
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.
Code Review
This pull request adds a test case for truncate_prompt_tokens with a value of 0, which is a good addition for coverage. However, the new asynchronous test function is missing the necessary @pytest.mark.asyncio decorator, which will prevent it from running correctly. This is a critical issue that needs to be addressed.
874bc1c to
e59a389
Compare
Signed-off-by: teekenl <[email protected]>
Head branch was pushed to by a user without write access
e59a389 to
46d69e5
Compare
Signed-off-by: teekenl <[email protected]> Signed-off-by: johnnynunez <[email protected]>
Signed-off-by: teekenl <[email protected]>
Signed-off-by: teekenl <[email protected]> Signed-off-by: Xiao Yu <[email protected]>
Signed-off-by: teekenl <[email protected]>
Signed-off-by: teekenl <[email protected]>
Signed-off-by: teekenl <[email protected]>
Signed-off-by: teekenl <[email protected]> Signed-off-by: Ekagra Ranjan <[email protected]>
Signed-off-by: teekenl <[email protected]>
Purpose
When going through
_validate_truncation_size, realised that we are missing a test case when the truncation size is set to0. Add a new test case to ensure no prompt tokens are truncated when it is actually0. It should raises error when input tokens are too long.Test Plan
Add "test_zero_truncation_size" new test case
Test Result
(Optional) Documentation Update
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.