-
Notifications
You must be signed in to change notification settings - Fork 11.8k
Negative prompt confusion #5709
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
Comments
The way to support negative prompts is not evident. You need to first convert words to logits and then pass and negative weight to remove them from completion. Server but not main benefits from a simpler solution that was not back ported by passing directly the words. |
Yes, but it is an important feature, for example, to control model ethics.
Is this implemented somewhere?
I am sorry, but I do not understand what you try to say here. |
More information is necessary.. Do you have an example? What's your command line arguments? |
Thank you all. We managed to invert the weight and get a negative prompt instead of the positive one outside of llama.cpp. |
I have the strong feeling that the negative prompt (cfg_negative_prompt) is confused in the implementation with a positive prompt (guidance). Could you please check this in the code? Thank you.
A negative prompt is an instruction to exclude elements from generated content. That could be bad ethical content, objects, styles, colors, effects, etc.
The text was updated successfully, but these errors were encountered: