mlx-bun library API
    Preparing search index...
    interface SiglipPreprocessed {
        numReal: number;
        patches: Float32Array;
        poolWeights: Float32Array;
        posX: Float32Array;
        posY: Float32Array;
        pxIdx: Int32Array;
        pyIdx: Int32Array;
        softTokens: number;
    }
    Index
    numReal: number

    Real (unpadded) 16×16 patch count = pH·pW.

    patches: Float32Array

    [numReal, patchDim] f32 patch vectors, normalized 2*(x/255 - 0.5).

    poolWeights: Float32Array

    [softTokens, numReal] 3×3 avg-pool weights (1/9 in-block, else 0).

    posX: Float32Array

    [numReal] x grid position (column) of each patch, f32 — also the RoPE position for the first spatial dim.

    posY: Float32Array

    [numReal] y grid position (row) of each patch, f32 — RoPE second dim.

    pxIdx: Int32Array

    [numReal] x grid position as int32, for the position-embedding gather.

    pyIdx: Int32Array

    [numReal] y grid position as int32, for the position-embedding gather.

    softTokens: number

    Pooled soft-token count = (pH/3)·(pW/3).