lloyal.node API Reference - v1.0.7
    Preparing search index...

    Interface SamplingParams

    Sampling parameters for token generation

    Common presets:

    • Factual/Precise: { temperature: 0.1 }
    • Balanced: { temperature: 0.7 }
    • Creative: { temperature: 1.0 }
    interface SamplingParams {
        advanced?: AdvancedSamplingParams;
        grammar?: string;
        minP?: number;
        penalties?: PenaltyParams;
        seed?: number;
        temperature?: number;
        topK?: number;
        topP?: number;
    }
    Index

    Properties

    Advanced sampling parameters

    grammar?: string

    GBNF grammar string for constrained generation

    minP?: number

    Minimum probability threshold

    penalties?: PenaltyParams

    Penalty parameters for repetition control

    seed?: number

    Random seed for reproducible generation (-1 = random)

    temperature?: number

    Randomness (0.0 = always most likely, 2.0 = very random)

    topK?: number

    Only consider top K most likely tokens (0 = disabled)

    topP?: number

    Nucleus sampling threshold (1.0 = disabled)