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

Feature Request: Allow users to constrain model vocabulary with lexicons #1

Open
joehoover opened this issue Mar 21, 2023 · 2 comments

Comments

@joehoover
Copy link
Owner

joehoover commented Mar 21, 2023

As a user of bragi, I want to be able to generate text that only contains specific words. For example, I'd like to restrict available tokens to the 10k most common English words.

@joehoover
Copy link
Owner Author

joehoover commented Mar 21, 2023

This is implemented in the allow-lexical-vocab-constraints branch.

Feature is demonstrated in this notebook.

I'll merge after test are added.

@joehoover
Copy link
Owner Author

I tried this with Vicuna-13B and the output was nonsense. Need to determine why and, if possible, improve output quality.

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

No branches or pull requests

1 participant