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

Generate text until condition #12348

Open
StellaAthena opened this issue Jun 24, 2021 · 3 comments
Open

Generate text until condition #12348

StellaAthena opened this issue Jun 24, 2021 · 3 comments
Labels
WIP Label your PR/Issue with WIP for some long outstanding Issues/PRs that are work in progress

Comments

@StellaAthena
Copy link
Contributor

Is there a simple way to have the model generate text until a condition is met? I'm interested in data memorization and want to prompt the model with some tokens from the training data and then have it generate text until it makes a mistake (aka deviates from the training data). The naive approach with a while loop has significant overhead, and I was wondering if there was something smarter I can be doing.

@LysandreJik
Copy link
Member

Maybe of interest to @patrickvonplaten @patil-suraj

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

@github-actions github-actions bot closed this as completed Aug 2, 2021
@patrickvonplaten
Copy link
Contributor

patrickvonplaten commented Aug 4, 2021

Related PR: #12219

@github-actions github-actions bot closed this as completed Sep 8, 2021
@huggingface huggingface deleted a comment from github-actions bot Sep 14, 2021
@patrickvonplaten patrickvonplaten added the WIP Label your PR/Issue with WIP for some long outstanding Issues/PRs that are work in progress label Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WIP Label your PR/Issue with WIP for some long outstanding Issues/PRs that are work in progress
Projects
None yet
Development

No branches or pull requests

3 participants