ComfyUI Node
GLM-4 Prompt Enhancer
A ComfyUI node in GLM4Wrapper with 10 inputs and 1 output.
GLM-4 Prompt Enhancer
- GLMPipeline
- image
- enhanced_prompt
◄prompt—►
◄max_new_tokens200►
◄temperature0.10►
◄top_k40►
◄top_p0.70►
◄repetition_penalty1.10►
◄unload_modelfalse►
◄seed42►
CategoryGLM4Wrapper
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| GLMPipeline | GLMPipeline | Provide a GLM-4 pipeline. | |
| prompt | STRING | Provide a base prompt to enhance. Can be empty if image is provided and glm-4v-9b, glm-4v-9b-gptq-4bit or glm-4v-9b-gptq-3bit model is chosen. | |
| max_new_tokens | INT | 200 | Limit the number of output tokens |
| temperature | FLOAT | 0.10 | Temperature parameter for sampling |
| top_k | INT | 40 | Top-k parameter for sampling |
| top_p | FLOAT | 0.70 | Top-p parameter for sampling |
| repetition_penalty | FLOAT | 1.10 | Repetition penalty for sampling |
| unload_model | BOOLEAN | false | Unload the model after use to free up memory |
| seed | INT | 420–4294967295 | — |
| imageopt | IMAGE | Provide an image to enhance the prompt. Only supported for glm-4v-9b, glm-4v-9b-gptq-4bit and glm-4v-9b-gptq-3bit models. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| enhanced_prompt | STRING | — |