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

String interpolation in antislop sampler #1186

Open
morbidCode opened this issue Oct 23, 2024 · 1 comment
Open

String interpolation in antislop sampler #1186

morbidCode opened this issue Oct 23, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@morbidCode
Copy link

morbidCode commented Oct 23, 2024

Hi,

I used the antislop sampler a lot, but sometimes the banning of phrases gets frustrating in how models keep getting around it. See the following:

shivers down his spine
shivers down her spine
shivers down their spines

I don't know how this sampler works or what backtracking really means, but is it possible to accept phrases with placeholders where we can substitute values? Just like how string interpolation in programming languages work (I.E. f"shivers down {word} spine" in python).

I imagine that the big challenge here is we're no longer identifying raw strings, instead we're identifying string templates, but then again I've no idea how this sampler works.

What do you think?

@LostRuins
Copy link
Owner

What you're looking for is wildcards, unfortunately, wildcard support is not available at this time. I'll keep it in mind for the future

@LostRuins LostRuins added the enhancement New feature or request label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants