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(evaluator): Handle expection when input length is too long #19

Merged
merged 2 commits into from
Jan 25, 2025

Conversation

eggry
Copy link
Collaborator

@eggry eggry commented Jan 25, 2025

What does this PR do?
Make sure the input length will not exceed the classification model length.
Fix #16.

Please check all applicable items before submitting:

  • Did you read the guideline for contributing?
  • Does this PR fix a typo or improve the docs (you can dismiss the other checks if that's the case)?
  • Is this PR related to an GitHub issue, and added a link to it?
  • Did you write any new necessary tests?
  • Did all tests passed in your development environment, both for existing tests and new tests?
  • Did you update the documentation with your changes?
  • Did you run the pre-commit checks for the code quality?

@eggry eggry merged commit 4cce5d2 into main Jan 25, 2025
5 checks passed
@eggry eggry deleted the eggry-overflow branch February 17, 2025 14:16
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.

[BUG] Long context query crash when testing HFTextClassification-wang2023donotanswer-longformer-harmful
2 participants