mlx-bun library API
    Preparing search index...
    interface GroupedDraftProvider {
        supportsExternalTokens?: boolean;
        supportsTargetAdapters?: boolean;
        checkpointNamespace?(): string;
        draftVocabulary?(target: TargetView): readonly number[] | null;
        open(
            options: {
                checkpoints: readonly DraftRowCheckpoint[];
                constraints?: DraftRowConstraints;
                sampling: DraftRowSampling;
                target: TargetView;
            },
        ): DraftRowGroup;
        openPrefill(
            options: {
                checkpoints: readonly (DraftRowCheckpoint | null)[];
                target: TargetView;
            },
        ): DraftPrefillGroup;
        targetTapLayers?(target: TargetView): readonly number[];
    }
    Index
    supportsExternalTokens?: boolean
    supportsTargetAdapters?: boolean

    Draft state remains valid when target forwards run under a mounted adapter context. Unqualified learned draft graphs leave this absent.

    • The frequency-ranked draft vocabulary (ascending token ids) this provider's rows can select over for this target, or null. The binding resolves it once for the bound target; a request whose draft sampler reproduces on it drafts over it (DraftSelection listed). Absent: none.

      Parameters

      Returns readonly number[] | null

    • Target hidden layers every row of this provider taps for this target, in capture order. A provider whose rows tap must implement it; rows opened for the target tap exactly this list. The binding resolves it once and admits the provider only when the target forward can capture these layers. Absent: no taps.

      Parameters

      Returns readonly number[]