Extensions/ComfyUI SmartLLM Nova
ComfyUI Extension

ComfyUI SmartLLM Nova

Compact configurable LLM, vision, tagging and detection panels for classic ComfyUI and Nodes 2.0, with registry-managed models and native or Docker backends.

By r-vage·Created about a month ago·Updated a day ago· 4
r-vage/ComfyUI_SmartLLM_Nova
Nodes—
On cloudLocal install
Stars4
Updateda day ago
Readme

ComfyUI SmartLLM Nova

The Nova editors use compact themed panels in classic ComfyUI and Nodes 2.0. Find the panels and native settings helpers under 🌒 SmartLLM Nova. See Nova panels for sections, connection overrides and seed handling. The design is inspired by DaSiWa and adapted from the Eclipse Nova panel approach.

Nova uses separate node IDs, /smartllm-nova/ routes and SmartLLMNova.* settings, so it can be installed alongside the original SmartLLM pack. Models and inference backends retain their existing loading and verification behavior. Choose Settings → SmartLLM Nova → Appearance → Node design for Neutral (default), the other built-in palettes or custom JSON themes. The setting and reload action belong only to this repo. Bundled themes are extracted once from .defaults/themes/ into the user-owned themes/ folder. Updates preserve edits and deletions.

One adaptive interface for vision-language models, text models, WD14 taggers, Florence grounding, and YOLO detection—plus a registry manager that keeps model identity, acquisition, and trust decisions explicit.

Version 1.0.0 is the initial Nova release. It includes five panel editors and runs independently of Eclipse.

ComfyUI tested on 0.42.1 Platform GPU License

Visual tour

Start with the visual tour for the model/task panel, chained tasks, detection, converters and Registry Manager, including its Docker Images walkthrough.

Smart LM Loader with its model, prompt and seed sections

Why use it?

  • One language-model node adapts to vision, text, and tagger families instead of exposing every backend control at once.
  • Independent image handling selects individual images or an ordered sequence, with longest-side resizing and frame stride. Scene tasks describe transferable motion or full scenes for text-to-video.
  • One detection node covers Florence and Qwen grounding tasks alongside YOLO bounding-box and segmentation models.
  • A matching postprocessor converts structured detections into selectable masks and SAM2-compatible bounding boxes without requiring Eclipse.
  • Several execution backends share one registry-driven model selector, including Transformers, GGUF, Ollama, vLLM, SGLang, and llama.cpp.
  • Verified acquisition records model source, immutable revision, integrity, and provenance before committing local files.
  • Less canvas work keeps each node's settings in one panel. Editing and lifecycle events update the relevant controls; the editors do not use repeated graph scans or native-widget visibility helpers.
  • Separate identity keeps the Nova node catalog and settings apart from the original pack. Replace original nodes explicitly when adopting the new editors.

Using the nodes

Start with Smart LM Loader

To reuse a model across repeated tasks or a loop, enable Keep loaded. Connect the final result through Smart LM Unload [SmartLLM Nova] before the next generation stage to release retained SmartLLM models. The node has one input and one output, passes data unchanged, and skips unloading when bypassed. For an external loop, place it after Loop End. See model lifetime.

Search for Smart LM Loader [SmartLLM Nova] in Add Node. Choose a registered model, then select the task it should perform. The interface responds to the model family: a vision model exposes image-aware tasks, while text-only and tagger models show their relevant inputs.

The selected task loads its task-specific system prompt automatically, so user_prompt is normally empty for tasks such as Detailed Description. Use it only for additional information, a question, or constraints that are not already expressed by the task. Supplying a nonblank system_prompt through pipe_opt switches supported models to Direct Chat and bypasses the default task prompt templates. The connected text becomes the complete system instruction, so it must contain every important role, objective, constraint, and output-format requirement. user_prompt then supplies the user message or source material for that custom instruction.

Use Smart LM Settings for native user/system prompt widgets, or connect STRING outputs to Smart LM Prompt Pipe and wire its settings output into the loader's pipe_opt. The prompt-only node can also pass through native settings while overriding their prompts.

Text tasks such as refinement and tag conversion work with text alone. With a vision-capable model, images can also provide context alongside the user prompt; the selected task's instructions remain active. Without images, image grouping, sizing and stride are inactive. Ordinary image inputs pass through to the output.

Some generative tasks intentionally use user_prompt as their source material:

  • For a Wan or LTX image-to-video task, connect the starting image and describe the intended motion, action, dialogue, style, or camera behavior in user_prompt.
  • For MiniMax H3, choose the T2VA, I2VA, FL2VA, or L2VA timeline task matching zero, one first-frame, one first-frame plus an optional last-frame reference, or one last-frame image. The explicit FL2VA task accepts the first frame alone because the downstream H3 encoder can enforce its separately connected last frame; attaching both frames also lets the VLM reason about endpoint differences. The compact, duration-neutral MiniMax H3 Scene task infers T2VA/I2VA/FL2VA from zero/one/two Legacy references. With Together off or Legacy, leave user_prompt empty to have SmartLLM create an original one-shot story, grounding it in one image or connecting two endpoint images when supplied. This automatic story mode adds suitable sound and music, and uses dialogue only when the scene supports it. You can instead provide a short description of what should happen and SmartLLM generates the required H3 format. You can request a shot count and views in natural language—for example, “tell this in 3 shots: side, POV, then overhead”—or ask for a Tracking Shot by naming the person or object to follow. For image-based H3 modes, the VLM uses the actual reference image as visual ground truth. A one-image FL2VA response briefly grounds the visible source state and then continues into the complete requested shot timeline; it does not stop at a caption or add exhaustive clothing, lighting, or scenery details. The image controls the subjects and available scene; a nonempty user_prompt controls what happens and prevents unrelated invention. Every H3 task returns the same three generator-ready fields. If you request no background music, no score, or no soundtrack, non_diegetic_music is set to N/A while dialogue, ambience, and action sounds remain in overall_soundscape unless you also request silence. Wan, LTX and H3 prompts leave duration to the downstream generation settings and describe action order without seconds or timestamps. The English Wan duration variants are consolidated into Wan 2.2, preserving old workflow selections and customized task files.
  • Short Story, Song Lyrics, MiniMax Music 3 and YuE2 Music can use an optional image or sequence as visual support on a vision-language model. Grid/VIDEO gather visual notes first, then write one complete story or song from the notes and your prompt. Output formats and retained lyrics stay intact.
  • For Song Lyrics, enter a short story, theme, mood, or song concept in user_prompt. Genre, language, tempo, or structural preferences can be added when they matter. The result is a structured lyric sheet that can be copied into Suno, Mureka, or another music-generation tool.
  • For MiniMax Music 3, use a text-capable LLM with a song concept or existing lyrics in user_prompt. You can also chain Song Lyrics → MiniMax Music 3. Concepts compose a complete song; structured lyrics and Song Lyrics output convert with sung words retained in code and only the caption generated. The result is one JSON string with caption and lyrics. Connect it to Split MiniMax Music 3 [SmartLLM Nova] → song_json, then connect its two STRING outputs to the native Music 3 encoder's caption and lyrics inputs. Alternatively, connect the JSON directly to Text Encode MiniMax Music 3 [Smart Model Loader] → song_json. Music 3 usage and output format.
  • For YuE2 Music, enter a song concept or chain Song Lyrics → YuE2 Music. Concepts compose style and complete lyrics; structured sheets and supplied song JSON retain lyrics in code. Connect the result to Split YuE2 [SmartLLM Nova], then connect style and lyrics to both native YuE2 generators. ABC planning stays native and optional. YuE2 usage, preservation and wiring.

These cases do not require a custom system_prompt; selecting the task still loads the appropriate instructions automatically.

H3 images connected here are visual references for the VLM that writes the prompt. They do not configure the downstream MiniMax H3 encoder. Connect the actual first/last keyframes to that encoder separately, in the order its workflow requires; the FL2VA prompt-writing task does not require its optional last-frame reference when the encoder already receives that frame. Enable Together in Image handling when supplying both endpoint images to the loader. Together also accepts longer sampled scenes for image-capable H3 tasks: all selected frames guide one H3 description, with the first and last samples as the observed endpoints. With images and Together on, an empty prompt describes the observed scene; automatic story invention is disabled. T2VA Timeline remains text-only, and existing Legacy reference counts are preserved.

Use the mode bar and sections

The top mode bar controls Cleanup, Keep loaded, Sampling, Thinking on supported backends, Scene JSON, Frames / Grid, and Local seed. Open Model for model/quantization selection, Registry, Delete and Refresh actions. Deletion requires confirmation.

Click Tasks below Model to open a resizable panel with the task list on the left and editor on the right. Selected loader tasks stay at the top in execution order; check compatible tasks to chain them. Available tasks use collapsible purpose groups: Chat & Text, Image Description, Video & Scenes, Tags, Stories & Music, and OCR. Each task shows whether images are required, optional or unused. Text-only models ignore connected images, video and disk frames, so media can stay connected when switching tasks. Detection uses one task. The library starts with the bundled task files; old prompt/training files are ignored. See Task library for editing, upgrades and prompt previews.

Open Image handling below Tasks for Together, Longest side and Every Nth frame. Together sends the ordered selection in one request; Off processes each image separately. Longest side 0 uses automatic model limits; a positive value reduces images within those limits. Stride applies to Together and keeps both endpoints. These settings remain available with Model collapsed and with Direct Chat selected. See image sequences for legacy frame limits and bounded sampling.

Frames is the default. Switch to Grid to build numbered contact sheets inside the loader. Grid uses Together without changing its saved setting. Supply one scene as IMAGE or disk frames. The default packs up to eight frames with 512px source tiles into a grid capped at 2048px; model limits still apply. Long inputs use overlapping windows, analyzed independently and then combined into one result. A single window needs no synthesis call.

The image / video socket accepts native ComfyUI VIDEO directly, preserving existing IMAGE connections. Video is decoded in bounded chunks, sampled at Sample FPS, and separated at detected cuts in either mode. Cut threshold = 0 treats a clip as continuous; concatenated video parts remain separate shots. Cut detection is a heuristic and can mistake fast camera movement for a cut. Video and disk sources return text without retaining an IMAGE output; ordinary IMAGE passthrough is unchanged. Audio is not analyzed.

Open Prompt, Generation, Sampling, Hardware, Tagging or Seed to edit the relevant settings. Pin sections to keep several open. Collapsing a section preserves its values and does not disable processing. Sampling controls whether custom sampling parameters are applied. Local seed can be turned off when seed_input is connected; the upstream value then takes priority.

Each task has one editable instruction set, with no Training/NSFW switches or example conversations. Visual instructions describe supported content directly while preserving the selected detail level and output format. Thinking defaults off and requests reasoning only where the model/backend supports it. Reasoning shares Max tokens with the answer, so allow enough output space for complete structured responses.

Describe scene motion

Use Together: On with an ordered frame selection and choose:

| Task | Output focus | | --- | --- | | Scene Motion Analysis | Framing, body and hand movement, gaze and non-mouth facial expression for lip-sync with a separate character reference | | Scene Description (T2V) | Visible appearance, setting, framing and movement for text-to-video |

Both tasks produce a generation paragraph and structured observations in the same call per window. Scene Motion Analysis asks for one or two short sentences about the opening framing and angle, an observed camera move or hold, and the main gesture. Additional movements stay in the observation fields. Scene Description (T2V) keeps the visible appearance and setting in the generation paragraph. Exactly black frames are filtered before inference; an all-black selection keeps a black-screen result. Usable descriptions with content warnings remain available for manual editing. Invalid JSON or missing required fields can trigger one correction attempt and still fail if the structure remains unusable.

Smart LM describes the supplied frames. For measured scene boundaries, bounded disk sampling and H3 part-prompt export, connect the optional Eclipse Nova scene-analysis nodes. Connect Scene Frame Sampler's frame_source to the loader's matching input to avoid retaining full image batches in the loop. This source works with every loader task that accepts images, including image-capable H3 tasks. Together on uses the selected sequence in one request; Off processes each frame separately. Florence and WD14 require individual processing for multiple frames. Text tasks keep their text instructions with optional image context. See scene motion and image handling for task contracts, frame limits and review guidance.

Chain tasks in one execution

Select compatible tasks in Tasks. Their numbered order is their execution order; use the arrows to reorder them or remove a selection with ×. The first task receives your prompt and any supplied images. Later tasks receive the preceding text result. The same loaded model handles the chain, and the final result remains the text output. Existing workflows with Task 2–4 retain their saved order. Florence uses one native task.

Prompt previews the selected task's system instructions. With Direct Chat, you can edit a local system prompt alongside the user message; editing the task file changes its reusable instructions instead. A connected nonblank system prompt still takes priority and selects Direct Chat. See Task library.

Switch to WD14 tagging

Selecting a WD14 registry entry replaces language-generation widgets with the tagger's general threshold, character threshold, and underscore-formatting controls.

Connect an image and consume the generated tags from the text socket. The image socket passes the source image through for downstream routing.

Run YOLO detection

Search for Smart Detection [SmartLLM Nova], select a YOLO registry model, and optionally filter among the classes that specific detector knows. For example, the face-specific face_yolov8m model can use face; other registered models specialize in regions such as eyes, faces, hands, or people. Detector-specific confidence, NMS, filtering, and region-selection controls appear automatically.

The node returns an annotated image, a combined mask, Impact-compatible SEGS, and structured detection data.

Ground phrases and adjust regions

Florence and compatible Qwen models expose language-directed tasks such as Caption to Phrase Grounding. Enter focused parts such as eye;face;mouth; the semicolon-separated phrases are run as individual targets and their regions are merged. Enable Preview boxes to annotate the result and open Adjustments for drop-size, crop-factor, and dilation controls.

Smart Detection modes are Cleanup, Keep loaded, Preview boxes and Local seed. Detection, Adjustments, Sampling, Hardware and Seed have their own sections. Registry and Delete are in Model. The selected model and task determine which controls are meaningful.

Convert detection data to masks and boxes

Connect Smart Detection's image and data outputs to Detection to Bboxes [SmartLLM Nova]. The converter accepts regular boxes, OCR quad boxes, and polygons; it can combine them into one mask or return selected regions separately, with optional inversion, grow/shrink, and blur processing. Its bbox output uses the established BBOXES structure for downstream tools such as SAM2 Ultra.

The converter also has an independent image-analysis mode. Enable From image to detect bright or color-channel regions directly with threshold and minimum-area controls instead of consuming JSON data.

Inspect and acquire models

Open Registry… in the Model section or use the SmartLLM Nova left-toolbar launcher. The Models tab groups fields into Model, Source, Files & runtime, Integrity and Notes. Both tabs follow this pack's selected theme, including custom palettes, with matching buttons, mode bars and dialog styling.

A registry entry can define its display name, backend, model family, repository or model ID, source, immutable revision, vision capability, local-only policy, expected SHA-256 digests, and description.

Use Inspect to validate the form, then Save Entry before Download. Download and verification use the saved entry; save edited fields first. Verify Local Files does not download anything. Delete Local Files and Remove Registry Entry are separate confirmed operations: removing an entry does not delete its local model files.

The Docker Images tab reports Docker Engine, daemon-access, user-group, and GPU runtime readiness, then lists the managed backend images for the selected platform. Expand System & GPU details for diagnostics and each image reference for its immutable digest. The linked installation guide covers terminal setup. Managed images can be installed, updated, removed, or have their SmartLLM-managed containers stopped from this tab. Stop and removal are refused while a SmartLLM model execution is active, so a running prompt is never interrupted; image removal is also refused while any container still references the selected image. Image operations report start, completion, and failure milestones in the ComfyUI console; select debug under SmartLLM's Log Level setting to also see filtered Docker pull progress and command output. Update / Repair pulls the configured immutable image; it does not automatically switch to the latest upstream release. The Ollama card also offers the supported recommended and legacy runtime versions. Install & Select changes the global Ollama runtime, not an individual registry entry. The existing managed container is recreated on its next start while the persistent Ollama model store is preserved.

Included nodes

| Node | Inputs | Outputs | Purpose | | --- | --- | --- | --- | | Smart LM Loader [SmartLLM Nova] | optional IMAGE/VIDEO or frame_source, seed and pipe_opt; panel configuration | image, text | Run vision-language, text or WD14 models; native VIDEO and lazy frame input return no image passthrough | | Smart Detection [SmartLLM Nova] | image; optional seed and pipe_opt for settings/query text; panel configuration | image, mask, SEGS, data | Run Florence/Qwen grounding or YOLO detection | | Smart LM Settings [SmartLLM Nova] | native model, task, quantization, user/system prompts and token controls | settings | Supply LM settings through pipe_opt, including promoted subgraph widgets | | Smart LM Prompt Pipe [SmartLLM Nova] | optional user/system prompt strings and existing settings pipe | settings | Supply external prompts through pipe_opt without native settings widgets | | Smart Detection Settings [SmartLLM Nova] | native model, task, quantization, query and detection controls | settings | Supply detection settings through pipe_opt, including promoted subgraph widgets | | Smart Detection Prompt Pipe [SmartLLM Nova] | optional query/class-filter string and existing settings pipe | settings | Supply external query text through pipe_opt with or without native settings | | Detection to Bboxes [SmartLLM Nova] | image, optional detection data, mask controls | mask, BBOXES | Convert Smart Detection data or image regions into masks and boxes | | Split MiniMax Music 3 [SmartLLM Nova] | optional song_json override; panel text | caption, lyrics (STRING) | Validate and split song JSON for the native Music 3 encoder | | Split YuE2 [SmartLLM Nova] | optional song_json override; panel text | style, lyrics (STRING) | Validate and split song JSON for both native YuE2 generators |

Nova owns these implementations and does not require Eclipse at runtime. Model nodes appear under 🌒 SmartLLM Nova → Loader, and converters under 🌒 SmartLLM Nova → Conversion. Native helpers appear under 🌒 SmartLLM Nova → Settings; the prompt-only helpers are under 🌒 SmartLLM Nova → IO. See subgraph settings for wiring and precedence. Nova uses its own node IDs; workflows made with the original pack need explicit node replacement to use Nova.

Supported backends and model families

| Path | Typical use | | --- | --- | | ComfyUI text encoders | Compatible local native text/vision encoders, including supported Qwen GGUF models with matching projectors | | Transformers | Local Hugging Face vision-language and text models, including Qwen, Florence, Mistral, and LLaVA-family models | | GGUF / llama.cpp | Quantized local language and vision-language execution | | Ollama | Models served by an Ollama runtime | | vLLM / native vLLM | High-throughput model serving, locally or through the managed Docker path | | SGLang | Structured high-throughput model serving | | WD14 | Image tagging with independent general and character thresholds | | YOLO | Bounding-box and segmentation detection |

Backend availability depends on the optional packages or services installed in your ComfyUI environment. The base installation does not force every compiled runtime onto the user.

Installation

Clone into ComfyUI's custom_nodes directory, then install dependencies using ComfyUI's Python environment:

git clone https://github.com/r-vage/ComfyUI_SmartLLM_Nova.git custom_nodes/ComfyUI_SmartLLM_Nova
cd custom_nodes/ComfyUI_SmartLLM_Nova
python -m pip install -r requirements.txt

Restart ComfyUI and refresh the browser. Settings appear under SmartLLM Nova → Configuration and Appearance, using SmartLLMNova.* IDs.

Install compiled or backend-specific integrations only when needed:

python -m pip install -e ".[sml]"

Docker backends require Docker separately. See the general Docker guide or Linux Docker guide.

Compatibility and ownership

  • SmartLLM registers the nine nodes listed above and owns the /smartllm-nova/... API namespace, registries, Registry Manager, model-acquisition state, Docker configuration, and private config.json.
  • Its model path, retry policy, log level, Hugging Face and ModelScope credentials, and SmartLLMNova.* settings belong to this repository.
  • Startup materializes bundled defaults while preserving local data. It does not import another pack's configuration or credentials.
  • Duplicate Nova providers or already registered Nova routes block registration. The original SmartLLM and Eclipse packs can remain installed independently.
  • Optional Eclipse utilities consume the image, text, mask, SEGS and data outputs.

Security defaults

Mutation routes are POST-only, same-origin protected, limited to bounded JSON objects, and loopback-only in ComfyUI multi-user mode. Credentials are write-only and stored with private permissions. Remote model acquisition resolves immutable revisions, verifies integrity, commits atomically, and writes provenance records. YOLO uses restricted loading, while managed Docker reuse is tied to immutable image and container-spec identity.

Repository-supplied Python model code is unsupported. Transformers Auto-class loads explicitly deny remote code, vLLM is never launched with its remote-code flag, and Florence uses SmartLLM's local vendored implementation. Read Security and model integrity before adding an untrusted model source.

Guides

For bugs and feature requests, use the GitHub issue tracker.

Licensed under Apache-2.0. See LICENSE and THIRD_PARTY_NOTICES.md.