Nodes Browser

ComfyDeploy: How SuperPrompter Node for ComfyUI works in ComfyUI?

What is SuperPrompter Node for ComfyUI?

The SuperPrompter node is a ComfyUI node that uses the SuperPrompt-v1 model from Hugging Face to generate text based on a given prompt. It provides various parameters to control the text generation process.

How to install it in ComfyDeploy?

Head over to the machine page

  1. Click on the "Create a new machine" button
  2. Select the Edit build steps
  3. Add a new step -> Custom Node
  4. Search for SuperPrompter Node for ComfyUI and select it
  5. Close the build step dialig and then click on the "Save" button to rebuild the machine

SuperPrompter

The SuperPrompter node is a ComfyUI node that uses the SuperPrompt-v1 model from Hugging Face to generate text based on a given prompt. It provides various parameters to control the text generation process. image

Installation

  1. Make sure you have ComfyUI installed. If not, follow the installation instructions from the ComfyUI documentation.

  2. Create a directory named superprompter inside the ComfyUI nodes directory.

  3. Place the __init__.py and superprompter_node.py files inside the superprompter directory.

  4. Install the required dependencies by running the following command:

pip install -r requirements.txt

Usage

  1. Launch ComfyUI.

  2. In the ComfyUI interface, you should see a new node called "SuperPrompter" under the "text" category.

  3. Add the SuperPrompter node to your workflow.

  4. Configure the input parameters:

  • prompt: The prompt or starting text for generating the text.
  • max_new_tokens: The maximum number of new tokens to generate.
  • repetition_penalty: The penalty for repeating tokens in the generated text.
  1. Connect the SuperPrompter node to other nodes in your workflow as needed.

  2. Execute the workflow to generate text based on the provided prompt and parameters.

Model

The SuperPrompter node uses the SuperPrompt-v1 model from Hugging Face. The model files will be automatically downloaded and saved in the ~/.models directory when the node is first used.

License

This node is released under the MIT License.

Credits

The SuperPrompter node is based on the SuperPrompt-v1 model and concept by roborovski on Hugging Face: