Nodes/ComfyUI-Ollama-ImageList/Llama.cpp N-gram Speculative Config
ComfyUI Node

Llama.cpp N-gram Speculative Config

Produces the shared Compact speculative input using model-free prompt-history N-gram drafting.

By craftingmod·Created 19 days ago·Updated 9 days ago· 2
Llama.cpp N-gram Speculative Config
    • speculative
    speculative_modeoff
    ngram_size3
    num_pred_tokens10
    ngram_modek
    ngram_min_hits2
    ngram_max_entries_per_key8
    ngram_sync_check_tokens16
    CategoryOllama/llama_cpp/compact

    Inputs (7)

    NameTypeDefaultDescription
    speculative_modeCOMBOoff2 options: off, ngram
    ngram_sizeINT31–8
    num_pred_tokensINT101–32
    ngram_modeCOMBOk2 options: k, k4v
    ngram_min_hitsINT21–16
    ngram_max_entries_per_keyINT80–1024
    ngram_sync_check_tokensINT161–256

    Outputs (1)

    NameTypeDescription
    speculativeOLLAMA_IMAGE_LIST_LLAMA_CPP_SPECULATIVE_CONFIG