mlx-bun library API
    Preparing search index...

    Interface SampledToken<Token, Metadata>

    Sampling owns score processing, token selection, and request-local history. Score/token representations and sync/device execution belong to the backend; this contract has no scheduling, cache, or tensor-runtime dependency.

    interface SampledToken<Token, Metadata> {
        extras: Metadata | null;
        token: Token;
    }

    Type Parameters

    • Token
    • Metadata
    Index
    extras: Metadata | null
    token: Token