Nodes/ComfyUI-cc_llama_vision/CC Llama Vision Advanced Options
ComfyUI Node

CC Llama Vision Advanced Options

A ComfyUI node in llama.cpp with 22 inputs and 1 output.

By cicalooo·Created 2 months ago·Updated about a month ago· 1
CC Llama Vision Advanced Options
    • advanced_options
    temperature0.90
    top_p0.90
    top_k64
    min_p0.00
    repeat_penalty1.00
    presence_penalty0.00
    frequency_penalty0.00
    seed0
    disable_thinkingtrue
    stop_sequences
    n_gpu_layers99
    ctx_size8192
    threads0
    threads_batch0
    extra_server_args
    keep_server_alivefalse
    idle_timeout_s60
    force_restartfalse
    startup_timeout_s60
    request_timeout_s300
    debugtrue
    server_log_path/root/Documents/ComfyUI/llama_server_debug.log
    Categoryllama.cpp

    Inputs (22)

    NameTypeDefaultDescription
    temperatureFLOAT0.900–2Sampling temperature. Higher = more random/creative, lower = more deterministic/focused.
    top_pFLOAT0.900–1Nucleus sampling threshold — only tokens within this cumulative probability mass are considered.
    top_kINT640–1000Only the top K most likely tokens are considered at each step. 0 disables this filter.
    min_pFLOAT0.000–1Minimum probability (relative to the top token) a token must have to be considered.
    repeat_penaltyFLOAT1.000–2Penalty applied to tokens that have already appeared, to discourage repetition.
    presence_penaltyFLOAT0.00-2–2Penalty applied per unique token already present in the output, encouraging new topics.
    frequency_penaltyFLOAT0.00-2–2Penalty scaled by how often a token has already appeared, discouraging repetition.
    seedINT0-1–18446744073709550000Random seed for generation. -1 for random each run; a fixed value makes output reproducible.
    disable_thinkingBOOLEANtrueIf enabled, disables the model's internal 'thinking'/reasoning mode (for models that support it) so it responds directly.
    stop_sequencesSTRINGOne stop string per line; generation halts early if any of these strings are produced.
    n_gpu_layersINT990–200Number of model layers to offload to GPU. Higher = faster but more VRAM; set to 0 for CPU-only.
    ctx_sizeINT8192512–131072Context window size (tokens) for the server. Larger allows longer prompts/images but uses more VRAM/RAM.
    threadsINT00–256Number of CPU threads for generation. 0 = let llama-server auto-detect.
    threads_batchINT00–256Number of CPU threads for batch/prompt processing. 0 = let llama-server auto-detect.
    extra_server_argsSTRINGAdditional raw command-line arguments passed through to llama-server (advanced use).
    keep_server_aliveBOOLEANfalseKeep llama-server running after this node finishes so future runs can reuse it instead of restarting (faster, but keeps VRAM occupied).
    idle_timeout_sINT600–3600If a kept-alive server has gone unused for this many seconds, it is killed to free VRAM. The check runs when a CC Llama Vision node next executes (there is no background timer). 0 disables auto-unload.
    force_restartBOOLEANfalseKill and restart any matching existing server before running, even if one is already alive and healthy.
    startup_timeout_sINT605–300How many seconds to wait for llama-server to report healthy before giving up on startup.
    request_timeout_sINT30030–1800How many seconds to wait for a response to the captioning request before timing out.
    debugBOOLEANtruePrint the raw JSON response from llama-server to the console for troubleshooting.
    server_log_pathSTRING/root/Documents/ComfyUI/llama_server_debug.logFile path where llama-server's stdout/stderr log will be written — check this file if startup fails.

    Outputs (1)

    NameTypeDescription
    advanced_optionsLLAMA_VISION_OPTS