mlx-bun library API
    Preparing search index...

    One tokenized SFT example. promptLen marks where the response begins; loss is masked to positions in [promptLen, ids.length).

    interface SftExample {
        ids: number[];
        promptLen: number;
    }
    Index
    ids: number[]
    promptLen: number