mlx-bun library API
    Preparing search index...
    • Sample A anchors and gather them into a faithful DFlash batch. Each anchor at response position t contributes its full prefix context [0..t] (capped at maxCtx, keeping the most recent), left-padded. The final tapped layer (last in tapLayers = post-finalNorm) supplies the block's p^t hiddens.

      Parameters

      • shard: DflashShard
      • A: number
      • gamma: number
      • maxCtx: number
      • rng: () => number

      Returns DflashBatch | null