mlx-bun library API
    Preparing search index...

    A residual stream in another basis than the trained model's: the TurboQuant R1 fold (packages/quantize/src/rotate.ts) stores h·R1, R1 = diag(s)·M, with s the seed's lane-0 sign vector and M MLX's hadamard_transform/√n, and moves the final-norm gain into the head.

    interface ResidualBasis {
        finalGain: Float32Array;
        r1Seed: number;
    }
    Index
    finalGain: Float32Array

    The final-norm gain the fold moved into the head (effective, 1+w), one per hidden channel.

    r1Seed: number

    Seed of R1's sign vector.