mlx-bun library API
    Preparing search index...

    Stateless DeltaNet stand-in (same re-runnability contract as TrainingCache): state WRITES are discarded immediately, so a gradient- checkpoint recompute re-enters with the identical null-state conditions; reads always yield null (zeros inside the kernel) — a full-sequence forward from t=0, exactly the training/perplexity semantics. Before this existed, qwen3_5 routed its DeltaNet layers into plain TrainingCache and threw on the missing conv/recurrent/advance surface (the recorded "mlx-bun perplexity cannot score qwen3_5" gap).

    Its recurDecode and recurWindow run the recurrence with a backward attached (gatedDeltaUpdate's differentiable), since the inference kernel has no gradient; the DeltaNet block hands them its projections as it does to any recurrent cache.

    Implements

    Index
    offset: number = 0
    specRound: null
    • Drop the last n tokens (future writes overwrite them). bypass (default false → unchanged behavior) skips the isTrimmable guard for the speculative-decode rollback case (trim the last n ≤ γ tips right after a

      1 concat write); rotating caches then physically shrink the buffer tail.

      Parameters

      • _n: number

      Returns void