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

Added banned_strings parameter to the generator. #756

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RaahimSiddiqi
Copy link

@RaahimSiddiqi RaahimSiddiqi commented Mar 21, 2025

While using exllamav2 for a project, I ran into an issue (that I'm still facing) where I need to ban certain words from the output during generation. However, the "generate" method does not take "banned_strings" as a parameter for some reason.

Only way of banning strings right now is to use ExLlamaV2DynamicJob and stream the output to completion.

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