VidScribe MiniCPM Beta
A Local Vision Model That Tells You What's in the Frame — Then Gets Out of Your Way
- images
- response
- images
- vram_cleared
You've got a video and you need words for it: a caption for a training set, a scene description to feed a prompt writer, a quick "what's actually happening here" before you decide the next step. VidScribe MiniCPM Beta is a vision-language model that runs on your own GPU and answers that. No API key, no cloud, no per-call cost - the model downloads itself on first use and stays local. The "Beta" in the name is honest: it's the pack's experimental VLM, and it's also the centerpiece of a whole VRAM-management story (see below).
Where it earns its keep is the workflow it enables: describe a clip, then hand that description to a prompt generator and a diffusion model in the same graph. That's the exact "VLM-as-a-node" pattern that's become routine in ComfyUI - the captioner feeding the enhancer feeding the sampler.
How it works
Two backends, selectable with the model dropdown:
- minicpm_v4.5_int4 (default) - MiniCPM-V 4.5 in int4 quantization, roughly 6–8GB VRAM.
- mage_vl_4b - Microsoft's Mage-VL, ~10GB in bf16. It's billed as stronger on video, but it ignores
thinking_modeand needs a newer transformers.
Both auto-download on first use. The node smart-samples ~32 frames from longer clips (turn that off with use_all_frames at your own VRAM peril), runs inference, and then - this is the clever part - unloads the model and emits a vram_cleared signal. After 60 seconds idle it unloads by itself; if you're impatient there's a companion UnloadMiniCPM node. A ~7GB VLM sitting in VRAM next to a diffusion model is a recipe for OOM, and this node is designed so it doesn't stay resident.
The inputs that matter
- images - your batch (single image, several for comparison, or a frame sequence).
- prompt - what you ask the model.
- mode -
single_image,multi_image(compare several), orvideo_frames(temporal understanding). - system_prompt - presets from
defaultanddetailedtonarrator,technical,accessible,creative, plusnoneandcustom(your own text goes in custom_system_prompt). - thinking_mode -
fastvsdeep_thinking(MiniCPM only). - lock_output - returns the last cached answer without re-running inference. Hugely handy when you're iterating on downstream nodes and don't want to reload the model every run.
- max_tokens, temperature, seed - standard generation knobs.
Outputs
response (the text), images (passes your input through unchanged), and vram_cleared - a string that exists specifically to be wired into the pack's VRAM Gated loaders so they wait for the VLM to finish before loading a big checkpoint.
Troubleshooting
The most common failure is missing deps. MiniCPM needs transformers, accelerate, and bitsandbytes; Mage-VL needs transformers ≥ 5.7. The node tells you exactly what to pip install in the error string, which is more than most nodes do. First run downloads a few GB - do it when you're not mid-queue. And keep in mind the security shape of the category: any node that auto-downloads a model and runs it locally is arbitrary Python with your permissions, so install from the known repo and update it deliberately.
Installing
Part of TrentNodes (all under Trent/). ComfyUI Manager → "Trent Nodes" → Install; if Manager flags the pack (a day-one repo rename left a registry duplicate), clone it:
cd ComfyUI/custom_nodes
git clone https://github.com/TrentHunter82/TrentNodes
cd TrentNodes
pip install -r requirements.txt
Restart, and the pack's VLM requirements are satisfied by the same install.
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | — | |
| prompt | STRING | Describe what you see. | Question or instruction for the model |
| mode | COMBO | video_frames | single_image: analyze first image only. multi_image: compare multiple images. video_frames: understand as video sequence |
| system_promptopt | COMBO | default | Preset personalities: default (balanced), detailed (thorough), concise (brief), narrator (cinematic), technical (analytical), accessible (audio description), creative (artistic), none (no system prompt), custom (your own) |
| thinking_modeopt | COMBO | fast | fast: quick responses. deep_thinking: slower but more thorough analysis |
| use_all_framesopt | BOOLEAN | false | Process every frame instead of smart sampling. WARNING: Uses significantly more VRAM and time |
| max_tokensopt | INT | 5121–4096 | Maximum length of generated response |
| temperatureopt | FLOAT | 0.700–1 | Creativity level. 0.0 = deterministic, 1.0 = creative |
| seedopt | INT | 00–4294967295 | Random seed (0 = random) |
| custom_system_promptopt | STRING | Your custom system prompt. Only used when system_prompt is set to 'custom' | |
| lock_outputopt | BOOLEAN | false | When enabled, returns the last cached output without re-running inference. Useful for iterating on downstream nodes without reloading the model. |
| modelopt | COMBO | minicpm_v4.5_int4 | minicpm_v4.5_int4: original backend, ~6-8GB. mage_vl_4b: Microsoft Mage-VL (Jul 2026), ~10GB bf16, stronger on video; ignores thinking_mode. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| response | STRING | — |
| images | IMAGE | — |
| vram_cleared | STRING | — |