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(router): fix openapi and add jsonschema validation #1578

Merged
merged 7 commits into from
Feb 21, 2024

Conversation

OlivierDehaene
Copy link
Member

@OlivierDehaene OlivierDehaene commented Feb 19, 2024

@drbh, can you check the validation part?

@OlivierDehaene OlivierDehaene requested a review from drbh February 19, 2024 15:56
drbh
drbh previously approved these changes Feb 19, 2024
Copy link
Collaborator

@drbh drbh left a 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!

drbh
drbh previously approved these changes Feb 19, 2024
Copy link
Collaborator

@drbh drbh left a 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

Comment on lines +342 to +343
for warper in self.warpers:
_scores = warper(input_ids, _scores)
Copy link
Member Author

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)

Copy link
Collaborator

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!

@OlivierDehaene OlivierDehaene mentioned this pull request Feb 20, 2024
7 tasks
@OlivierDehaene OlivierDehaene merged commit fa8a8e0 into main Feb 21, 2024
7 checks passed
@OlivierDehaene OlivierDehaene deleted the fix/openapi branch February 21, 2024 10:05
kdamaszk pushed a commit to kdamaszk/tgi-gaudi that referenced this pull request Apr 29, 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.

2 participants