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

[PoC] Select grammar in GPT-4 #841

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

amir-abdi
Copy link

@amir-abdi amir-abdi commented May 17, 2024

A proof of concept work on the possibility of supporting the select grammar for OpenAI models. The mini experiment was conducted on GPT-4.

Idea: The idea is to extremely boost the logit_bias of tokens of all select choices to discourage any other token.

Flaw: It is not a fool-proof idea because a mixture of those tokens can still be selected to generate a new word which may not be among the choices.

@riedgar-ms riedgar-ms requested a review from Harsha-Nori May 18, 2024 12:32
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.

1 participant