-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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(router): fix openapi and add jsonschema validation #1578
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.
LGTM just tested and worked locally. Thank you!
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.
LGTM thanks for adding the draft202012
feat
for warper in self.warpers: | ||
_scores = warper(input_ids, _scores) |
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.
@drbh it's very important that logits processor are done BEFORE warpers. Otherwise you can generate nonsense. For example if top_k is set and you warp before the grammar processor, may remove all valid tokens and you cannot generate anything. See #1539 (comment)
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.
thank you for pointing out! this is very helpful and makes a lot of sense. Thanks for resolving!
@drbh, can you check the validation part?