GitHub - mickr777/GPT2RandomPromptMaker

A node for InvokeAI utilizes the GPT-2 language model to generate random prompts based on a provided seed and context.

Fields:

Fields Description
seed The initial seed for the prompt generation.
context The context to provide additional information for the prompt.
max_length The maximum length of the generated text.
temperature Controls the randomness of predictions.
repetition_penalty Penalty for repeated content in the generated text.
model_name Hugging Face gpt2 model name to use.

Info:

  • on first use it should download the needed files.

Example:

Generated Prompt: An enchanted weapon will be usable by any character regardless of their alignment.

9acf5aef-7254-40dd-95b3-8eac431dfab0