mlx-bun library API
    Preparing search index...

    Acceptance is modeled per draft position: the probability that the draft at position i is accepted given that every draft before it was. Each position's decayed counts are shrunk toward the position before it (weight 1; position 1 toward the prior), so a position seldom reached follows the ones that are, and a drafter whose later positions fall off (a recurrent MTP head trained for two steps) and one that stays flat (a block drafter) are both modeled. A round decays the positions it drafted; with idleDecay a round without drafts decays them all, so what the gate observed ages with the text it decodes and not only with the rounds it drafts.

    Index
    probeDepth: number

    The depth of a probe drafted without a verify round.

    • Expected emitted tokens per sequence of a round drafting k for each of rows sequences, per unit of cost, where a round without drafts over those sequences costs 1 (a plain decode step emits 1 per 1).

      Parameters

      • k: number
      • rows: number = 1

      Returns number

    • The next round's depth: choose's, except that after a run of rounds without drafts it drafts one token, the cheapest round that observes acceptance, so the estimate keeps following the text (a round without drafts observes nothing). The run starts at probeInterval rounds and doubles after each probe that leaves the gate drafting nothing, up to maxProbeInterval: a probe costs more than the plain step it replaces, so text that stays hard to draft pays for fewer of them. rows: the sequences the round drafts for.

      Parameters

      • budget: number
      • rows: number = 1

      Returns number

    • One round's outcome: drafted proposals, the first accepted of them accepted. Positions 1..accepted count an acceptance and the first rejected position a rejection, after the counts decay: every position's when every draft was accepted (the text may have turned predictable, so the positions past the round follow the ones it accepted), only the drafted positions' otherwise (a rejected probe says nothing about deeper drafts). A round without drafts observes nothing.

      Parameters

      • drafted: number
      • accepted: number

      Returns void