ComfyUI Node
Ollama Image List Options
Builds an Ollama options dictionary and JSON string from individually enabled runtime parameters. Disabled parameters are omitted.
Ollama Image List Options
- 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/Image List
Inputs (22)
| Name | Type | Default | Description |
|---|---|---|---|
| use_num_ctx | BOOLEAN | false | Include num_ctx in the generated Ollama options object. |
| num_ctx | INT | 20481–2147483647 | Context window size in tokens. Ollama documented default: 2048. |
| use_num_predict | BOOLEAN | false | Include num_predict in the generated Ollama options object. |
| num_predict | INT | -1-1–2147483647 | Maximum generated tokens. -1 means unlimited generation. |
| use_temperature | BOOLEAN | false | Include temperature in the generated Ollama options object. |
| temperature | FLOAT | 0.800–10 | Sampling temperature. Ollama documented default: 0.8. |
| use_top_p | BOOLEAN | false | Include top_p in the generated Ollama options object. |
| top_p | FLOAT | 0.900–1 | Nucleus sampling probability. Ollama documented default: 0.9. |
| use_top_k | BOOLEAN | false | Include top_k in the generated Ollama options object. |
| top_k | INT | 400–2147483647 | Number of highest-probability tokens considered during sampling. |
| use_min_p | BOOLEAN | false | Include min_p in the generated Ollama options object. |
| min_p | FLOAT | 0.000–1 | Minimum token probability relative to the most likely token. |
| use_repeat_penalty | BOOLEAN | false | Include repeat_penalty in the generated Ollama options object. |
| repeat_penalty | FLOAT | 1.100–10 | Penalty applied to repeated tokens. Ollama documented default: 1.1. |
| use_repeat_last_n | BOOLEAN | false | Include repeat_last_n in the generated Ollama options object. |
| repeat_last_n | INT | 64-1–2147483647 | Lookback for repetition penalties. 0 disables; -1 uses num_ctx. |
| use_seed | BOOLEAN | false | Include seed in the generated Ollama options object. |
| seed | INT | 00–2147483647 | Random seed. A fixed value makes identical prompts reproducible. |
| use_stop | BOOLEAN | false | Include stop in the generated Ollama options object. |
| stop | STRING | Single stop sequence. The JSON output converts this string to the array required by the Ollama API. | |
| use_draft_num_predict | BOOLEAN | false | Include draft_num_predict in the generated Ollama options object. |
| draft_num_predict | INT | 40–2147483647 | Maximum speculative draft tokens per step. 0 disables speculative drafting. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| options | DICT | — |
| options_json | STRING | — |