mlx-bun library API
    Preparing search index...

    One request's exact-token speculative acceptance walk. The backend owns logits and sampling; this state owns only the accepted prefix and stop facts. A group advances each live walk independently, regardless of batch size.

    Index
    accepted: number = 0
    correction: number | null = null
    done: boolean = false
    drafts: readonly number[]
    emitted: number[] = []
    eosTokenIds: readonly number[]
    grammarDone: boolean = false
    position: number = 0
    remaining: number
    sawEos: boolean = false
    • Supply one target sample after its sampler has updated request history and grammar. Once done, this request needs no further target samples.

      Parameters

      • token: number
      • grammarDone: boolean = false

      Returns void