ComfyUI Node
LLM Model Config
A ComfyUI node in π SimpleQwenVL with 20 inputs and 1 output.
LLM Model Config
- config
βmodel_pathβΊ
βmmproj_pathβΊ
βn_ctx8192βΊ
βn_batch512βΊ
βn_ubatch512βΊ
βn_gpu_layers-1βΊ
βn_cpu_moe0βΊ
βn_threads8βΊ
βuse_mmaptrueβΊ
βuse_mlockfalseβΊ
βoffload_kqvtrueβΊ
βchat_handlernoneβΊ
βchat_formatnoneβΊ
βforce_mmprojfalseβΊ
βenable_thinkingfalseβΊ
βverbosefalseβΊ
βdebugtrueβΊ
βtype_kF16βΊ
βtype_vF16βΊ
βconfig_overrideββΊ
Categoryπ SimpleQwenVL
Inputs (20)
| Name | Type | Default | Description |
|---|---|---|---|
| model_path | STRING | Path to GGUF model file (relative to custom_nodes dir) | |
| mmproj_path | STRING | Path to multimodal projector (required for vision) | |
| n_ctx | INT | 8192512β1048576 | Context size: image_tokens + input_tokens + output_tokens <= n_ctx |
| n_batch | INT | 51232β8192 | Prompt processing batch. Lower = less VRAM, higher = faster. |
| n_ubatch | INT | 51232β8192 | Micro-batch size for advanced memory management |
| n_gpu_layers | INT | -1-1β256 | Layers to GPU: -1=all, 0=CPU only. Reduce if OOM. |
| n_cpu_moe | INT | 00β128 | MoE experts on CPU (VRAM saver). 0 = all on GPU. |
| n_threads | INT | 81β64 | CPU threads for inference. Match physical cores. |
| use_mmap | BOOLEAN | true | Memory mapping. set True if faster model loading. |
| use_mlock | BOOLEAN | false | Lock model in RAM (prevent swap). Uses more RAM. |
| offload_kqv | BOOLEAN | true | Offload KV Cache to GPU. Turn OFF (slow) for safe VRAM. |
| chat_handler | COMBO | none | Chat template for multimodal models. |
| chat_format | COMBO | none | Chat format for text-only models. |
| force_mmproj | BOOLEAN | false | Force load mmproj even without images (preserves template for enable_thinking). |
| enable_thinking | BOOLEAN | false | Enable 'thinking' mode for Qwen3.5/Gemma4 (requires more output tokens). |
| verbose | BOOLEAN | false | Verbose llama.cpp logging |
| debug | BOOLEAN | true | Output timing info to console |
| type_k | COMBO | F16 | 34 options: F32, F16, Q4_0, Q4_1, Q5_0, Q5_1, +28 |
| type_v | COMBO | F16 | 34 options: F32, F16, Q4_0, Q4_1, Q5_0, Q5_1, +28 |
| config_overrideopt | STRING | β |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| config | STRING | β |