mlx-bun library API
    Preparing search index...
    interface LogitsProcessorOptions {
        frequencyContextSize?: number;
        frequencyPenalty?: number;
        logitBias?: Record<number, number>;
        presenceContextSize?: number;
        presencePenalty?: number;
        repetitionContextSize?: number;
        repetitionPenalty?: number;
    }

    Hierarchy (View Summary)

    Index
    frequencyContextSize?: number
    frequencyPenalty?: number

    OpenAI-style frequency penalty: subtracted once PER OCCURRENCE of the token in the recent window. May be negative.

    logitBias?: Record<number, number>

    Additive per-token-id logit bias, applied before any penalty (mlx-lm's logit_bias: {tokenId: bias}).

    presenceContextSize?: number
    presencePenalty?: number

    OpenAI-style presence penalty: subtracted ONCE from a token's logit if it occurred at all in the recent window. May be negative.

    repetitionContextSize?: number
    repetitionPenalty?: number