ComfyUI > Nodes > ComfyUI-MiniCPM-Plus > MiniCPM-Plus: 3-4B-GPTQ-Int4

ComfyUI Node: MiniCPM-Plus: 3-4B-GPTQ-Int4

Class Name

MiniCPM3_4B_GPTQ_Int4

Category
MiniCPM
Author
CY-CHENYUE (Account age: 521days)
Extension
ComfyUI-MiniCPM-Plus
Latest Updated
2024-10-09
Github Stars
0.02K

How to Install ComfyUI-MiniCPM-Plus

Install this extension via the ComfyUI Manager by searching for ComfyUI-MiniCPM-Plus
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-MiniCPM-Plus in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

MiniCPM-Plus: 3-4B-GPTQ-Int4 Description

Efficient text generation node for AI artists, optimized with GPTQ for Int4 precision.

MiniCPM-Plus: 3-4B-GPTQ-Int4:

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.

MiniCPM-Plus: 3-4B-GPTQ-Int4 Input Parameters:

user_promptA

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.

user_promptB

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.

max_new_tokens

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.

temperature

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.

top_p

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.

top_k

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.

seed

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.

MiniCPM-Plus: 3-4B-GPTQ-Int4 Output Parameters:

STRING

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.

MiniCPM-Plus: 3-4B-GPTQ-Int4 Usage Tips:

  • Experiment with different temperature values to find the right balance between creativity and coherence for your specific project needs.
  • Use max_new_tokens to control the length of the output, especially when generating content for specific formats or constraints.
  • Adjust 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.

MiniCPM-Plus: 3-4B-GPTQ-Int4 Common Errors and Solutions:

Model not loaded

  • Explanation: This error occurs when the model fails to load, possibly due to incorrect file paths or missing model files.
  • Solution: Ensure that the model files are correctly placed in the specified local_path and that the file paths are correctly configured.

CUDA device not available

  • Explanation: This error indicates that the node is attempting to use a GPU, but no compatible CUDA device is available.
  • Solution: Check your system's hardware to ensure a CUDA-compatible GPU is installed and that the necessary drivers are up to date. Alternatively, configure the node to run on CPU if a GPU is not available.

MiniCPM-Plus: 3-4B-GPTQ-Int4 Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-MiniCPM-Plus
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

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.