Skip to content

What is a softprompt? And how do I make one? #230

Answered by oobabooga
pbosh asked this question in Q&A
Discussion options

You must be logged in to vote

You can do it with an extension that defines an input_modifier like this:

def input_modifier(string):
    """
    This function is applied to your text inputs before
    they are fed into the model.
    """ 

    return "This AI is a party assassin.\n\n" + string

https://github.com/oobabooga/text-generation-webui/wiki/Extensions#how-to-write-an-extension

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pbosh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants