Skip to content

Added banned_strings parameter to the generator. #756

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

Merged
merged 1 commit into from
Apr 11, 2025

Conversation

RaahimSiddiqi
Copy link
Contributor

@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.

@turboderp
Copy link
Member

👍

@turboderp turboderp merged commit 09c18e9 into turboderp-org:master Apr 11, 2025
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