Nodes/ComfyUI-VLMPrompt/VLM Prompt Advanced (GGUF)
ComfyUI Node

VLM Prompt Advanced (GGUF)

The same local VLM prompt node, with the sampling panel turned up

By mexxmillion·Created 4 months ago·Updated 4 months ago· 2
VLM Prompt Advanced (GGUF)
  • image
  • video
  • prompt
model_nameGemma4-E4B-uncensored-Q4_K_M
deviceauto
preset_promptWan I2V Prompt
system_prompt
custom_prompt
max_tokens768
temperature0.60
top_p0.90
repetition_penalty1.20
frame_count16
ctx8192
n_batch512
gpu_layers-1
image_max_tokens4096
top_k0
pool_size4194304
keep_model_loadedfalse
seed1

"VLM Prompt Advanced (GGUF)" is the plain "VLM Prompt (GGUF)" node with the whole llama.cpp tuning panel exposed. Same local vision-language model, same base64 frames, same prompt output - but instead of a handful of knobs you get the full sampler, the context window, GPU layer control, and device selection. You reach for it when the simple node works but you need it to fit or behave differently.

The trigger cases are pretty concrete. You're on a 8GB card and the default model OOMs during generation, so you want to pull layers off the GPU. You're prompting a longer video and need more frames sampled. Or you're looping the node and want it snappier. That's this node's whole reason to exist.

What the extra knobs actually do

  • gpu_layers - how many model layers live on the GPU. Default -1 means all of them. Dropping it to 20–30 offloads work to CPU and trades speed for VRAM headroom. This is the one beginners end up touching.
  • device - auto or cpu. Leave it on auto unless you have a reason.
  • frame_count - how many evenly sampled frames from the video input get sent to the model (1–64, default 16). More frames = better motion description, slower run, more tokens.
  • ctx - the context window in tokens (default 8192). Bump it for long outputs or long video analysis; the Qwen defaults in models.json are 16384.
  • image_max_tokens - token budget for the vision side. Default 4096.
  • temperature / top_p / top_k / repetition_penalty - the usual sampler dials. Defaults are sane: temperature 0.6, top_p 0.9, repetition penalty 1.2. Lower temperature for more consistent describing, raise it if the model keeps writing the same sentence.
  • n_batch and pool_size - performance/threading settings. Genuinely leave these alone unless you know what you're doing.

Everything else matches the simple node: the same 4 GGUF models, the 27 system_prompts.json presets, system_prompt, custom_prompt (overrides the preset when filled), max_tokens, keep_model_loaded, and seed. The output is the single prompt STRING that feeds a Text Encode or a video model's prompt input.

Install and the one real gotcha

Install is the same as the whole pack - ComfyUI Manager, or:

cd ComfyUI/custom_nodes
git clone https://github.com/mexxmillion/ComfyUI-VLMPrompt.git
pip install -r ComfyUI-VLMPrompt/requirements.txt

Then restart ComfyUI. Model files auto-download to ComfyUI/models/llm/GGUF on first use.

The gotcha is shared with the whole GGUF side of this pack: llama-cpp-python isn't in requirements.txt. You need a multimodal build with the Qwen/Gemma VLM chat handlers - the stock PyPI wheel may not include them. If you haven't hit the GGUF nodes yet, install a compatible build first, or these nodes just won't register. Model settings themselves live in models.json, which is data-driven: you can add a new model entry without touching Python, as long as the backend supports its architecture.

Common issues

  • OOM during a video run - lower frame_count and/or gpu_layers before you touch the sampler.
  • Repetitive output - nudge repetition_penalty up past 1.2 rather than cranking temperature.
  • First run seems frozen - it's downloading the GGUF plus its mmproj file. Wait it out.
CategoryVLMPrompt

Inputs (20)

NameTypeDefaultDescription
model_nameCOMBOGemma4-E4B-uncensored-Q4_K_M4 options: Gemma4-E4B-uncensored-Q4_K_M, Qwen3-VL-8B-abliterated-Q4_K_M, Qwen3.5-4B-Uncensored-HauhauCS-Q4_K_M, Qwen3.5-9B-Uncensored-HauhauCS-Q4_K_M
deviceCOMBOauto2 options: auto, cpu
preset_promptCOMBOWan I2V Prompt27 options: NSFW I2V Tease, Wan I2V Prompt, Describe for Video, Annotate Image, Enhance Prompt, 🖼️ Tags, +21
system_promptSTRINGSystem prompt — sets the model's role/behavior. Leave empty for default.
custom_promptSTRINGUser prompt — your instructions. Overrides preset if filled.
max_tokensINT76864–4096
temperatureFLOAT0.600–2
top_pFLOAT0.900–1
repetition_penaltyFLOAT1.200.5–2
frame_countINT161–64
ctxINT81921024–131072
n_batchINT51264–32768
gpu_layersINT-1-1–200
image_max_tokensINT4096256–1024000
top_kINT00–32768
pool_sizeINT41943041048576–10485760
keep_model_loadedBOOLEANfalse
seedINT11–4294967295
imageoptIMAGE
videooptIMAGE

Outputs (1)

NameTypeDescription
promptSTRING