Nodes/ComfyUI GLM-4 Wrapper/GLM-4 Prompt Enhancer
ComfyUI Node

GLM-4 Prompt Enhancer

A ComfyUI node in GLM4Wrapper with 10 inputs and 1 output.

By Nojahhh·Created 2 years ago·Updated about a year ago· 30
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)

NameTypeDefaultDescription
GLMPipelineGLMPipelineProvide a GLM-4 pipeline.
promptSTRINGProvide 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_tokensINT200Limit the number of output tokens
temperatureFLOAT0.10Temperature parameter for sampling
top_kINT40Top-k parameter for sampling
top_pFLOAT0.70Top-p parameter for sampling
repetition_penaltyFLOAT1.10Repetition penalty for sampling
unload_modelBOOLEANfalseUnload the model after use to free up memory
seedINT420–4294967295
imageoptIMAGEProvide 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)

NameTypeDescription
enhanced_promptSTRING