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

Using Badwords from a model's config.json #338

Closed
Seelukebair opened this issue Feb 18, 2025 · 5 comments
Closed

Using Badwords from a model's config.json #338

Seelukebair opened this issue Feb 18, 2025 · 5 comments

Comments

@Seelukebair
Copy link

Some models have their slop words mapped to the badwords section in the model's config file. I know there is a manual badwords section which i use extensively to combat slop, does your code ignore the badwords in the config? It seems like its just setup for the manual list, but my code-fu is lacking and I cant be sure. If it does skip it, would it be easy to include? Thanks for making this wonderful tool.

@jhc13
Copy link
Owner

jhc13 commented Feb 18, 2025

does your code ignore the badwords in the config?

No, it does not.

If it does skip it, would it be easy to include?

Can you show some examples of models you are using that have this in the config?

@Seelukebair
Copy link
Author

Sure here is one for joycaption. Essentially the slop phrases get converted into their tokens and added to the badwords section. I was looking for more but the ones Ive stumbled across have all been finetuned models. If its a pain dont spend a ton of time on it, the manual badwords works great. Im also not sure how much effort the authors put into these custom badwords.

config.json

@jhc13
Copy link
Owner

jhc13 commented Feb 19, 2025

Where did you get that from? The config.json on the model's Hugging Face page does not seem to have the bad words.

@Seelukebair
Copy link
Author

Think that one was shared on a discord, to a random hugging face finetune, Ive been using it over the base one as its a little less likely to produce some of the slop, its got the same name as the normal one but only slightly better if Im being honest. I tried doing a quick search but i never saved the original link.

@Seelukebair
Copy link
Author

The more i look at other models that field is not commonly used and I should have done some recon before opening a ticket. I saw it on on the one Ive been using and got excited. Yea I'll just close this one, though I wonder why more people dont dump known slop phrases into this field.

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

2 participants