Visit ComfyUI Online for ready-to-use ComfyUI environment
Efficient text generation node for AI artists, optimized with GPTQ for Int4 precision.
The MiniCPM3_4B_GPTQ_Int4 node is designed to facilitate advanced text generation tasks by leveraging the capabilities of the MiniCPM3-4B model, which is optimized using GPTQ (Generalized Quantization) for efficient performance with Int4 precision. This node is particularly beneficial for AI artists and creators who require high-quality text generation with reduced computational overhead. By utilizing this node, you can generate coherent and contextually relevant text outputs, making it an excellent tool for creative writing, dialogue generation, and other artistic applications. The model is designed to run efficiently on both CPU and GPU, automatically detecting the available hardware to optimize performance. This ensures that you can achieve fast and reliable results without needing extensive technical knowledge or resources.
This optional parameter allows you to input a string that serves as the initial prompt for the text generation process. It supports multiline text, enabling you to provide detailed and complex prompts to guide the model's output.
Similar to user_promptA
, this optional parameter accepts a string input for an additional prompt. It also supports multiline text, allowing you to provide supplementary context or instructions to refine the generated text further.
This required parameter specifies the maximum number of new tokens to be generated by the model. It accepts integer values ranging from 1 to 3000, with a default value of 300. Adjusting this parameter allows you to control the length of the generated text, with higher values producing longer outputs.
This required parameter controls the randomness of the text generation process. It accepts float values between 0.1 and 2.0, with a default of 0.5. Lower values make the output more deterministic and focused, while higher values introduce more randomness and creativity into the text.
This required parameter, also known as nucleus sampling, determines the cumulative probability threshold for token selection. It accepts float values from 0.1 to 1.0, with a default of 0.8. A lower value results in more conservative outputs, while a higher value allows for more diverse and creative text generation.
This required parameter limits the number of tokens considered for each step of the generation process. It accepts integer values from 1 to 1000, with a default of 50. Lower values restrict the model to a smaller set of potential tokens, leading to more focused outputs, while higher values increase diversity.
This required parameter sets the random seed for the text generation process, ensuring reproducibility of results. It accepts integer values from 0 to 0xffffffffffffffff, with a default of 0. By setting a specific seed, you can generate consistent outputs across different runs.
The output of this node is a string that contains the generated text based on the provided prompts and input parameters. This text is the result of the model's processing and reflects the influence of the input parameters such as temperature
, top_p
, and top_k
. The generated string can be used directly in creative projects or further refined as needed.
temperature
values to find the right balance between creativity and coherence for your specific project needs.max_new_tokens
to control the length of the output, especially when generating content for specific formats or constraints.top_p
and top_k
to fine-tune the diversity and focus of the generated text, depending on whether you need more creative or more deterministic outputs.local_path
and that the file paths are correctly configured.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.