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

Different approach to enum generation #41

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

jakubdulas
Copy link

Adds enum generation by allowing to generate only tokens from enums. Created with @trebacz626

@wassname
Copy link

wassname commented May 11, 2024

So the original method would add each enum to the prompt, and see what hindsight probability was given to it's tokens. This method generates them uses a logits transform that restricts generation to the tree of tokens in the enum values.

I get slightly different probs with the different methods, this one giving more extreme (and probably more correct since forward prediction is the task it was trained on) probs.

Check out my measurements here https://github.com/wassname/prob_jsonformer/blob/main/prob_dist.ipynb

image

image

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