Nodes/ComfyUI-llama-multimodal/Ollama Options (images)
ComfyUI Node

Ollama Options (images)

Builds an Ollama options dictionary and JSON string from individually enabled runtime parameters. Disabled parameters are omitted.

By craftingmod·Created 2 months ago·Updated 5 days ago· 3
Ollama Options (images)
    • options
    • options_json
    ◄use_num_ctxfalse►
    ◄num_ctx2048►
    ◄use_num_predictfalse►
    ◄num_predict-1►
    ◄use_temperaturefalse►
    ◄temperature0.80►
    ◄use_top_pfalse►
    ◄top_p0.90►
    ◄use_top_kfalse►
    ◄top_k40►
    ◄use_min_pfalse►
    ◄min_p0.00►
    ◄use_repeat_penaltyfalse►
    ◄repeat_penalty1.10►
    ◄use_repeat_last_nfalse►
    ◄repeat_last_n64►
    ◄use_seedfalse►
    ◄seed0►
    ◄use_stopfalse►
    ◄stop►
    ◄use_draft_num_predictfalse►
    ◄draft_num_predict4►
    CategoryOllama/images

    Inputs (22)

    NameTypeDefaultDescription
    use_num_ctxBOOLEANfalseInclude num_ctx in the generated Ollama options object.
    num_ctxINT20481–2147483647Context window size in tokens. Ollama documented default: 2048.
    use_num_predictBOOLEANfalseInclude num_predict in the generated Ollama options object.
    num_predictINT-1-1–2147483647Maximum generated tokens. -1 means unlimited generation.
    use_temperatureBOOLEANfalseInclude temperature in the generated Ollama options object.
    temperatureFLOAT0.800–10Sampling temperature. Ollama documented default: 0.8.
    use_top_pBOOLEANfalseInclude top_p in the generated Ollama options object.
    top_pFLOAT0.900–1Nucleus sampling probability. Ollama documented default: 0.9.
    use_top_kBOOLEANfalseInclude top_k in the generated Ollama options object.
    top_kINT400–2147483647Number of highest-probability tokens considered during sampling.
    use_min_pBOOLEANfalseInclude min_p in the generated Ollama options object.
    min_pFLOAT0.000–1Minimum token probability relative to the most likely token.
    use_repeat_penaltyBOOLEANfalseInclude repeat_penalty in the generated Ollama options object.
    repeat_penaltyFLOAT1.100–10Penalty applied to repeated tokens. Ollama documented default: 1.1.
    use_repeat_last_nBOOLEANfalseInclude repeat_last_n in the generated Ollama options object.
    repeat_last_nINT64-1–2147483647Lookback for repetition penalties. 0 disables; -1 uses num_ctx.
    use_seedBOOLEANfalseInclude seed in the generated Ollama options object.
    seedINT00–2147483647Random seed. A fixed value makes identical prompts reproducible.
    use_stopBOOLEANfalseInclude stop in the generated Ollama options object.
    stopSTRINGSingle stop sequence. The JSON output converts this string to the array required by the Ollama API.
    use_draft_num_predictBOOLEANfalseInclude draft_num_predict in the generated Ollama options object.
    draft_num_predictINT40–2147483647Maximum speculative draft tokens per step. 0 disables speculative drafting.

    Outputs (2)

    NameTypeDescription
    optionsDICT—
    options_jsonSTRING—