VLM Prompt Advanced (GGUF)
The same local VLM prompt node, with the sampling panel turned up
- image
- video
- prompt
"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
-1means 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 -
autoorcpu. Leave it on auto unless you have a reason. - frame_count - how many evenly sampled frames from the
videoinput 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.jsonare 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_countand/orgpu_layersbefore you touch the sampler. - Repetitive output - nudge
repetition_penaltyup past 1.2 rather than cranking temperature. - First run seems frozen - it's downloading the GGUF plus its mmproj file. Wait it out.
Inputs (20)
| Name | Type | Default | Description |
|---|---|---|---|
| model_name | COMBO | Gemma4-E4B-uncensored-Q4_K_M | 4 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 |
| device | COMBO | auto | 2 options: auto, cpu |
| preset_prompt | COMBO | Wan I2V Prompt | 27 options: NSFW I2V Tease, Wan I2V Prompt, Describe for Video, Annotate Image, Enhance Prompt, 🖼️ Tags, +21 |
| system_prompt | STRING | System prompt — sets the model's role/behavior. Leave empty for default. | |
| custom_prompt | STRING | User prompt — your instructions. Overrides preset if filled. | |
| max_tokens | INT | 76864–4096 | — |
| temperature | FLOAT | 0.600–2 | — |
| top_p | FLOAT | 0.900–1 | — |
| repetition_penalty | FLOAT | 1.200.5–2 | — |
| frame_count | INT | 161–64 | — |
| ctx | INT | 81921024–131072 | — |
| n_batch | INT | 51264–32768 | — |
| gpu_layers | INT | -1-1–200 | — |
| image_max_tokens | INT | 4096256–1024000 | — |
| top_k | INT | 00–32768 | — |
| pool_size | INT | 41943041048576–10485760 | — |
| keep_model_loaded | BOOLEAN | false | — |
| seed | INT | 11–4294967295 | — |
| imageopt | IMAGE | — | |
| videoopt | IMAGE | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| prompt | STRING | — |