mlx-bun library API
    Preparing search index...
    • Tokenize prompt+response, returning (ids, promptLen) — port of dpo.py _tokenize_pair, including the left-truncation that preserves the response when prompt+response exceeds maxLength.

      Parameters

      Returns { ids: number[]; promptLen: number }