mlx-bun library API
    Preparing search index...
    • The causal mask of an N-position window over a maxSize ring holding offset positions, before the window's append: the fused kernel's causal mask while the window fits, the materialized sliding-window mask once it binds (makeMask(N, maxSize) of the plain and the affine ring). Leased from masks under one family, so plain and affine rings of one model share it.

      Parameters

      • masks: AttentionMasks
      • maxSize: number
      • offset: number
      • N: number

      Returns MaskLease